@@ -90,14 +90,16 @@ def render_GET(self, request):
90
90
'value' : {
91
91
'status' : 'pass' ,
92
92
'description' : 'Hathor-core v0.56.0' ,
93
- 'components' : [
94
- {
95
- 'componentName' : 'sync' ,
96
- 'componentType' : 'internal' ,
97
- 'status' : 'pass' ,
98
- 'output' : 'Healthy'
99
- }
100
- ]
93
+ 'checks' : {
94
+ 'sync' : [
95
+ {
96
+ 'componentName' : 'sync' ,
97
+ 'componentType' : 'internal' ,
98
+ 'status' : 'pass' ,
99
+ 'output' : 'Healthy'
100
+ }
101
+ ]
102
+ }
101
103
}
102
104
}
103
105
}
@@ -114,44 +116,50 @@ def render_GET(self, request):
114
116
'value' : {
115
117
'status' : 'fail' ,
116
118
'description' : 'Hathor-core v0.56.0' ,
117
- 'components' : [
118
- {
119
- 'componentName' : 'sync' ,
120
- 'componentType' : 'internal' ,
121
- 'status' : 'fail' ,
122
- 'output' : 'Node doesn\' t have recent blocks'
123
- }
124
- ]
119
+ 'checks' : {
120
+ 'sync' : [
121
+ {
122
+ 'componentName' : 'sync' ,
123
+ 'componentType' : 'internal' ,
124
+ 'status' : 'fail' ,
125
+ 'output' : 'Node doesn\' t have recent blocks'
126
+ }
127
+ ]
128
+ }
125
129
}
126
130
},
127
131
'no_synced_peer' : {
128
132
'summary' : 'Node with no synced peer' ,
129
133
'value' : {
130
134
'status' : 'fail' ,
131
135
'description' : 'Hathor-core v0.56.0' ,
132
- 'components' : [
133
- {
134
- 'componentName' : 'sync' ,
135
- 'componentType' : 'internal' ,
136
- 'status' : 'fail' ,
137
- 'output' : 'Node doesn\' t have a synced peer'
138
- }
139
- ]
136
+ 'checks' : {
137
+ 'sync' : [
138
+ {
139
+ 'componentName' : 'sync' ,
140
+ 'componentType' : 'internal' ,
141
+ 'status' : 'fail' ,
142
+ 'output' : 'Node doesn\' t have a synced peer'
143
+ }
144
+ ]
145
+ }
140
146
}
141
147
},
142
148
'peer_best_block_far_ahead' : {
143
149
'summary' : 'Peer with best block too far ahead' ,
144
150
'value' : {
145
151
'status' : 'fail' ,
146
152
'description' : 'Hathor-core v0.56.0' ,
147
- 'components' : [
148
- {
149
- 'componentName' : 'sync' ,
150
- 'componentType' : 'internal' ,
151
- 'status' : 'fail' ,
152
- 'output' : 'Node\' s peer with highest height is too far ahead.'
153
- }
154
- ]
153
+ 'checks' : {
154
+ 'sync' : [
155
+ {
156
+ 'componentName' : 'sync' ,
157
+ 'componentType' : 'internal' ,
158
+ 'status' : 'fail' ,
159
+ 'output' : 'Node\' s peer with highest height is too far ahead.'
160
+ }
161
+ ]
162
+ }
155
163
}
156
164
}
157
165
}
0 commit comments