-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmonitor.proto
More file actions
90 lines (62 loc) · 2.04 KB
/
monitor.proto
File metadata and controls
90 lines (62 loc) · 2.04 KB
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
syntax = "proto3";
import "google/protobuf/struct.proto";
import "google/protobuf/wrappers.proto";
option csharp_namespace = "SquaredUp.Dashboard.Schema";
package squaredup;
//-------------------------------------------------------------------------------------
//
// Monitors
//
//-------------------------------------------------------------------------------------
// tile/monitorconfig
message MonitorConfigTileConfig {
MonitorConfigTileConfig_Source source = 1;
}
message MonitorConfigTileConfig_Source {
// ID of the monitor - typically 'inherit'
string monitor_id = 1;
// e.g. 'column'
string zoom = 2;
}
//-------------------------------------------------------------------------------------
// tile/monitordetails
message MonitorDetailsTileConfig {
MonitorDetailsTileConfig_Source source = 1;
MonitorDetailsTileConfig_Display display = 2;
}
message MonitorDetailsTileConfig_Source {
// ID of the monitor - typically 'inherit'
string monitor_id = 1;
}
message MonitorDetailsTileConfig_Display {
// Whether to display drilldowns
bool show_drilldown = 1;
// e.g. 'column'
string zoom = 2;
}
//-------------------------------------------------------------------------------------
// tile/monitors
message MonitorsTileConfig {
MonitorsTileConfig_Context context = 1;
MonitorsTileConfig_Display display = 2;
MonitorsTileConfig_Source source = 3;
}
message MonitorsTileConfig_Context {
// TODO: Generally unsued?
google.protobuf.Value scope = 1;
}
message MonitorsTileConfig_Display {
// Health states (e.g. warning, error) to display
repeated string health_states = 1;
// Zoom level (e.g. 'column')
string zoom = 2;
}
message MonitorsTileConfig_Source {
// Set of monitor IDs to actually use as the source
repeated string monitor_ids = 1;
}
//-------------------------------------------------------------------------------------
// tile/monitorstatechangehistory
message MonitorStateChangeHistoryTileConfig {
// TODO: No known configuration fields
}