-
Notifications
You must be signed in to change notification settings - Fork 0
/
dynamic.proto
251 lines (191 loc) · 6.3 KB
/
dynamic.proto
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
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
syntax = "proto3";
import "google/protobuf/struct.proto";
import "google/protobuf/wrappers.proto";
import "scope.proto";
import "context.proto";
import "timeframe.proto";
import "performance_shared.proto";
option csharp_namespace = "SquaredUp.Dashboard.Schema";
package squaredup;
//-------------------------------------------------------------------------------------
//
// Dyanmic table (tile/dynamic-table)
//
//-------------------------------------------------------------------------------------
message DynamicTableTileConfig {
CommonContext context = 1;
DynamicTableTileConfig_Display display = 2;
}
message DynamicTableTileConfig_Display {
// Perspective to display (if any)
DynamicTableTileConfig_Display_Perspective perspective = 1;
// e.g. 'column'
string zoom = 2;
}
message DynamicTableTileConfig_Display_Perspective {
// ID of any related perspective
// Default is null, so this is string value rather than string
google.protobuf.StringValue id = 1;
}
//-------------------------------------------------------------------------------------
//
// Matrix tile
//
//-------------------------------------------------------------------------------------
// tile/matrix
message MatrixTileConfig {
CommonContext context = 1;
MatrixTileConfig_Display display = 2;
// Generally empty (source: {})
google.protobuf.Value source = 3;
}
message MatrixTileConfig_Display {
// e.g. "Large"
string mode = 1;
// e.g. "dyanmic"
string rendering = 2;
// whether to "always link to row object"
bool full_row_link = 3;
repeated MatrixTile_Column columns = 4;
MatrixTileConfig_Display_Perspective perspective = 5;
// e.g. 'column'
string zoom = 6;
}
message MatrixTileConfig_Display_Perspective {
// ID of the perspective to use for the matrix tile
string id = 1;
}
message MatrixTile_Column {
string _type = 1;
string title = 2;
// Config varying by type
google.protobuf.Value config = 3;
}
// Transform type - many celltiles have 'transforms' in common
// which cotnains this type
message MatrixTile_Transform {
string operator = 1;
map<string, google.protobuf.Value> parameters = 2;
}
//-------------------------------------------------------------------------------------
//
// Matrix tile columns
//
//-------------------------------------------------------------------------------------
// celltile/scomperf-as-sparkline
message CellTile_ScomPerfAsSparkline_Config {
CommonPerformanceSource source = 1;
CellTile_ScomPerfAsSparkline_Config_Display display = 2;
repeated MatrixTile_Transform transforms = 3;
}
message CellTile_ScomPerfAsSparkline_Config_Display {
string label_template = 1;
}
//-------------------------------------------------------------------------------------
// celltile/bar
message CellTile_Bar_Config {
CommonPerformanceSource source = 1;
CellTile_Bar_Config_Display display = 2;
repeated MatrixTile_Transform transforms = 3;
}
message CellTile_Bar_Config_Display {
string value_template = 1;
}
//-------------------------------------------------------------------------------------
// celltile/sla
message CellTile_Sla_Config {
CellTile_Sla_Config_Source source = 1;
repeated MatrixTile_Transform transforms = 2;
}
message CellTile_Sla_Config_Source {
// ID of the service level object to use for the SLA
string slo_id = 1;
CommonTimeframe timeframe = 2;
}
//-------------------------------------------------------------------------------------
// celltile/text
message CellTile_Text_Config {
CellTile_Text_Display display = 1;
repeated MatrixTile_Transform transforms = 3;
}
message CellTile_Text_Display {
string content_template = 1;
string cell_width = 3;
}
//-------------------------------------------------------------------------------------
// celltile/signalstrength
message CellTile_SignalStrength_Config {
CellTile_SignalStrength_Display display = 1;
repeated MatrixTile_Transform transforms = 3;
}
message CellTile_SignalStrength_Display {
// property accessor to execute and retrieve the numeric value.
string value_property = 1;
int32 height = 2;
int32 width = 3;
}
//-------------------------------------------------------------------------------------
// celltile/monitor
message CellTile_Monitor_Config {
CellTile_Monitor_Source source = 1;
CellTile_Monitor_Display display = 2;
repeated MatrixTile_Transform transforms = 3;
}
message CellTile_Monitor_Source {
repeated string monitor_ids = 1;
}
message CellTile_Monitor_Display {
bool show_label = 1;
}
//-------------------------------------------------------------------------------------
// celltile/status
message CellTile_Status_Config {
CellTile_Status_Display display = 2;
repeated MatrixTile_Transform transforms = 3;
}
message CellTile_Status_Display {
bool show_status_icon = 1;
string label_template = 2;
string cell_width = 3;
}
//-------------------------------------------------------------------------------------
// celltile/status-block
message CellTile_StatusBlock_Config {
CellTile_StatusBlock_Display display = 2;
repeated MatrixTile_Transform transforms = 3;
}
message CellTile_StatusBlock_Display {
bool full_width = 1;
string label_template = 2;
}
//-------------------------------------------------------------------------------------
// celltile/timeseriesblocks
message CellTile_TimeseriesBlocks_Config {
CellTile_TimeseriesBlocks_Source source = 1;
CellTile_TimeseriesBlocks_Display display = 2;
repeated MatrixTile_Transform transforms = 3;
}
message CellTile_TimeseriesBlocks_Display {
int32 width = 1;
bool full_width = 2;
string cell_width = 3;
}
message CellTile_TimeseriesBlocks_Source {
repeated string monitor_ids = 1;
CommonTimeframe timeframe = 4;
}
//-------------------------------------------------------------------------------------
// celltile/monitor-status
message CellTile_MonitorStatus_Config {
CellTile_MonitorStatus_Source source = 1;
CellTile_MonitorStatus_Display display = 2;
repeated MatrixTile_Transform transforms = 3;
}
message CellTile_MonitorStatus_Source {
repeated string monitor_ids = 1;
}
message CellTile_MonitorStatus_Display {
bool full_width = 1;
string link_template = 2;
string cell_width = 3;
}