Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
HttpStatistic.cs
1using System;
3
5{
6 [CollectionName("HttpStatistics")]
7 [TypeName(TypeNameSerialization.None)]
8 [ArchivingTime(731)]
9 [Index("Timestamp")]
10 public class HttpStatistic
11 {
12 private Guid objectId = Guid.Empty;
13 private DateTime start = DateTime.MinValue;
14 private DateTime timestamp = DateTime.MinValue;
15 private PersistedData.Commands.Statistic[] callsPerMethod = null;
16 private PersistedData.Commands.Statistic[] callsPerUserAgent = null;
17 private PersistedData.Commands.Statistic[] callsPerFrom = null;
18 private PersistedData.Commands.Statistic[] callsPerResource = null;
19 private long nrBytesRx = 0;
20 private long nrBytesTx = 0;
21 private long nrCalls = 0;
22
23 public HttpStatistic()
24 {
25 }
26
27 [ObjectId]
28 public Guid ObjectId
29 {
30 get => this.objectId;
31 set => this.objectId = value;
32 }
33
34 [DefaultValueDateTimeMinValue]
35 public DateTime Start
36 {
37 get => this.start;
38 set => this.start = value;
39 }
40
41 public DateTime Timestamp
42 {
43 get => this.timestamp;
44 set => this.timestamp = value;
45 }
46
47 [DefaultValueNull]
48 public PersistedData.Commands.Statistic[] CallsPerMethod
49 {
50 get => this.callsPerMethod;
51 set => this.callsPerMethod = value;
52 }
53
54 [DefaultValueNull]
55 public PersistedData.Commands.Statistic[] CallsPerUserAgent
56 {
57 get => this.callsPerUserAgent;
58 set => this.callsPerUserAgent = value;
59 }
60
61 [DefaultValueNull]
62 public PersistedData.Commands.Statistic[] CallsPerFrom
63 {
64 get => this.callsPerFrom;
65 set => this.callsPerFrom = value;
66 }
67
68 [DefaultValueNull]
69 public PersistedData.Commands.Statistic[] CallsPerResource
70 {
71 get => this.callsPerResource;
72 set => this.callsPerResource = value;
73 }
74
75 [DefaultValue(0L)]
76 public long NrBytesRx
77 {
78 get => this.nrBytesRx;
79 set => this.nrBytesRx = value;
80 }
81
82 [DefaultValue(0L)]
83 public long NrBytesTx
84 {
85 get => this.nrBytesTx;
86 set => this.nrBytesTx = value;
87 }
88
89 [DefaultValue(0L)]
90 public long NrCalls
91 {
92 get => this.nrCalls;
93 set => this.nrCalls = value;
94 }
95
96 }
97}
TypeNameSerialization
How the type name should be serialized.