This repository has been archived by the owner on Sep 24, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
monitoring_data_spec.rb
162 lines (121 loc) · 3.93 KB
/
monitoring_data_spec.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
describe 'report' do
it 'must have a time'
it 'must have a node'
it 'can have 0 or more log entries'
it 'can have a metrics set'
describe 'metrics set' do
it 'can have metrics'
describe 'metrics' do
it 'must have a label'
it 'must have a name'
it 'must have a list of values'
describe 'values' do
it 'should have a name'
it 'should have a label'
it 'should have a number'
end
it 'can be a changes metric'
describe 'changes metric' do
it "should have the name 'changes'"
it "should have the label 'Changes'"
describe 'values' do
it 'can be a total value'
describe 'total value' do
it "should have a label of 'total'"
it "should have a name of Total"
end
end
end
it 'can be a resources metric'
describe 'resources metrics' do
it "should have the name 'resources'"
it "should have the label 'Resources'"
describe 'values' do
it 'can be an out of sync value'
describe 'out of sync value' do
it "should have a label of 'out_of_sync'"
it "should have a name of 'Out of sync'"
end
it 'can be an applied value'
describe 'applied value' do
it "should have a label of 'applied'"
it "should have a name of 'Applied'"
end
it 'can be a restarted value'
describe 'restarted value' do
it "should have a label of 'restarted'"
it "should have a name of 'Restarted'"
end
it 'can be a skipped value'
describe 'skipped value' do
it "should have a label of 'skipped'"
it "should have a name of 'Skipped'"
end
it 'can be a scheduled value'
describe 'scheduled value' do
it "should have a label of 'scheduled'"
it "should have a name of 'Scheduled'"
end
it 'can be a failed restarts value'
describe 'failed restarts value' do
it "should have a label of 'failed_restarts'"
it "should have a name of 'Failed restarts'"
end
it 'can be a failed value'
describe 'failed value' do
it "should have a label of 'failed'"
it "should have a name of 'Failed'"
end
end
end
it 'can be a times metric'
describe 'times metrics' do
it "should have the name 'times'"
it "should have the label 'Times'"
describe 'values' do
it 'can be a total value'
describe 'total value' do
it "should have a label of 'total'"
it "should have a name of 'Total'"
end
it 'can be a schedule value'
describe 'schedule value' do
it "should have a label of 'schedule'"
it "should have a name of 'Schedule'"
end
it 'can be a file bucket value'
describe 'file bucket value' do
it "should have a label of 'filebucket'"
it "should have a name of 'Filebucket'"
end
it 'can be a config retrieval value'
describe 'config retrieval value' do
it "should have a label of 'config_retrieval'"
it "should have a name of 'Config retrieval'"
end
end
end
end
end
describe 'unclear fields' do
it 'can have records' # these are empty in all the log files we have
end
end
describe 'log entries' do
it 'must have a level'
describe 'log level' do
it 'can be in {err, debug, info, notice, warning}'
end
it 'must have a message'
it 'must have a time'
describe 'unclear fields' do
it 'can have 0 or more tags'
it 'may be an objectsource'
end
end
describe 'nodes' do
it 'must have a name'
end
describe 'tags' do
it 'must have a label'
end