-
Notifications
You must be signed in to change notification settings - Fork 0
/
status.proto
109 lines (87 loc) · 2.45 KB
/
status.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
syntax = "proto3";
import "google/protobuf/struct.proto";
import "scope.proto";
import "context.proto";
option csharp_namespace = "SquaredUp.Dashboard.Schema";
package squaredup;
//-------------------------------------------------------------------------------------
//
// Status tile
//
//-------------------------------------------------------------------------------------
// tile/status
message StatusTileConfg {
CommonContext context = 1;
StatusTileConfg_Source source = 2;
StatusTileConfg_Display display = 3;
}
message StatusTileConfg_Source {
CommonScope scope = 1;
bool alerts = 2;
bool extendedProperties = 3;
}
message StatusTileConfg_Display {
string label = 1;
string sublabel = 2;
StatusTileConfg_Display_SortKey group = 3;
StatusTileConfg_Display_SortKey sort = 4;
string custom_label = 5;
// e.g. 'column'
string zoom = 6;
}
message StatusTileConfg_Display_SortKey {
string property = 1;
// e.g. asc, desc
string order = 2;
}
//-------------------------------------------------------------------------------------
// tile/status-block
message StatusBlockTileConfig {
CommonContext context = 1;
StatusBlockTileConfig_Source source = 2;
StatusBlockTileConfig_Display display = 3;
}
message StatusBlockTileConfig_Source {
CommonScope scope = 1;
bool alerts = 2;
bool extendedProperties = 3;
}
message StatusBlockTileConfig_Display {
string label = 1;
int32 columns = 2;
int32 height = 3;
double fontsize = 4;
string sublabel = 5;
StatusBlockTileConfig_Display_SortKey group = 6;
StatusBlockTileConfig_Display_SortKey sort = 7;
string custom_label = 8;
string sublabel_custom_label = 9;
// e.g. 'column'
string zoom = 10;
}
message StatusBlockTileConfig_Display_SortKey {
string property = 1;
// e.g. asc, desc
string order = 2;
}
//-------------------------------------------------------------------------------------
// tile/status-donut
message StatusDonutTileConfig {
CommonContext context = 1;
StatusDonutTileConfig_Source source = 2;
StatusDonutTileConfig_Display display = 3;
}
message StatusDonutTileConfig_Source {
CommonScope scope = 1;
bool alerts = 2;
bool extendedProperties = 3;
}
message StatusDonutTileConfig_Display {
// e.g. fill
string size_mode = 1;
double legend_scale = 2;
bool show_legend = 3;
string legend_position = 4;
// e.g. 'column'
string zoom = 5;
}