Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
EventStatistic.cs
1using System;
3
5{
6 [CollectionName("EventStatistics")]
7 [TypeName(TypeNameSerialization.None)]
8 [ArchivingTime(731)]
9 [Index("Timestamp")]
10 public class EventStatistic
11 {
12 private Guid objectId = Guid.Empty;
13 private DateTime start = DateTime.MinValue;
14 private DateTime timestamp = DateTime.MinValue;
15 private Statistic[] perType = null;
16 private Statistic[] perLevel = null;
17 private Statistic[] perEventId = null;
18 private Statistic[] perActor = null;
19 private Statistic[] perModule = null;
20 private Statistic[] perFacility = null;
21 private Statistic[] perStackTrace = null;
22
23 public EventStatistic()
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 Statistic[] PerType
49 {
50 get => this.perType;
51 set => this.perType = value;
52 }
53
54 [DefaultValueNull]
55 public Statistic[] PerLevel
56 {
57 get => this.perLevel;
58 set => this.perLevel = value;
59 }
60
61 [DefaultValueNull]
62 public Statistic[] PerEventId
63 {
64 get => this.perEventId;
65 set => this.perEventId = value;
66 }
67
68 [DefaultValueNull]
69 public Statistic[] PerActor
70 {
71 get => this.perActor;
72 set => this.perActor = value;
73 }
74
75 [DefaultValueNull]
76 public Statistic[] PerModule
77 {
78 get => this.perModule;
79 set => this.perModule = value;
80 }
81
82 [DefaultValueNull]
83 public Statistic[] PerFacility
84 {
85 get => this.perFacility;
86 set => this.perFacility = value;
87 }
88
89 [DefaultValueNull]
90 public Statistic[] PerStackTrace
91 {
92 get => this.perStackTrace;
93 set => this.perStackTrace = value;
94 }
95
96 }
97}
TypeNameSerialization
How the type name should be serialized.