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