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