Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
XmppStatistic.cs
1using System;
4
6{
7 [CollectionName("XmppStatistics")]
8 [TypeName(TypeNameSerialization.None)]
9 [ArchivingTime(731)]
10 [Index("Timestamp")]
11 public class XmppStatistic
12 {
13 private Guid objectId = Guid.Empty;
14 private DateTime start = DateTime.MinValue;
15 private DateTime timestamp = DateTime.MinValue;
16 private Statistic[] stanzasPerStanzaType = null;
17 private Statistic[] stanzasPerFromDomain = null;
18 private Statistic[] stanzasPerToDomain = null;
19 private Statistic[] stanzasPerFromBareJid = null;
20 private Statistic[] stanzasPerToBareJid = null;
21 private Statistic[] stanzasPerNamespace = null;
22 private Statistic[] stanzasPerFqn = null;
23 private long nrBytesRx = 0;
24 private long nrBytesTx = 0;
25 private long nrStanzas = 0;
26
27 public XmppStatistic()
28 {
29 }
30
31 [ObjectId]
32 public Guid ObjectId
33 {
34 get => this.objectId;
35 set => this.objectId = value;
36 }
37
38 [DefaultValueDateTimeMinValue]
39 public DateTime Start
40 {
41 get => this.start;
42 set => this.start = value;
43 }
44
45 public DateTime Timestamp
46 {
47 get => this.timestamp;
48 set => this.timestamp = value;
49 }
50
51 [DefaultValueNull]
52 public Statistic[] StanzasPerStanzaType
53 {
54 get => this.stanzasPerStanzaType;
55 set => this.stanzasPerStanzaType = value;
56 }
57
58 [DefaultValueNull]
59 public Statistic[] StanzasPerFromDomain
60 {
61 get => this.stanzasPerFromDomain;
62 set => this.stanzasPerFromDomain = value;
63 }
64
65 [DefaultValueNull]
66 public Statistic[] StanzasPerToDomain
67 {
68 get => this.stanzasPerToDomain;
69 set => this.stanzasPerToDomain = value;
70 }
71
72 [DefaultValueNull]
73 public Statistic[] StanzasPerFromBareJid
74 {
75 get => this.stanzasPerFromBareJid;
76 set => this.stanzasPerFromBareJid = value;
77 }
78
79 [DefaultValueNull]
80 public Statistic[] StanzasPerToBareJid
81 {
82 get => this.stanzasPerToBareJid;
83 set => this.stanzasPerToBareJid = value;
84 }
85
86 [DefaultValueNull]
87 public Statistic[] StanzasPerNamespace
88 {
89 get => this.stanzasPerNamespace;
90 set => this.stanzasPerNamespace = value;
91 }
92
93 [DefaultValueNull]
94 public Statistic[] StanzasPerFqn
95 {
96 get => this.stanzasPerFqn;
97 set => this.stanzasPerFqn = value;
98 }
99
100 [DefaultValue(0L)]
101 public long NrBytesRx
102 {
103 get => this.nrBytesRx;
104 set => this.nrBytesRx = value;
105 }
106
107 [DefaultValue(0L)]
108 public long NrBytesTx
109 {
110 get => this.nrBytesTx;
111 set => this.nrBytesTx = value;
112 }
113
114 [DefaultValue(0L)]
115 public long NrStanzas
116 {
117 get => this.nrStanzas;
118 set => this.nrStanzas = value;
119 }
120 }
121}
TypeNameSerialization
How the type name should be serialized.