-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtask.proto
116 lines (81 loc) · 2.88 KB
/
task.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
syntax = "proto3";
import "google/protobuf/struct.proto";
import "scope.proto";
option csharp_namespace = "SquaredUp.Dashboard.Schema";
package squaredup;
//-------------------------------------------------------------------------------------
//
// SCOM task related tiles
//
//-------------------------------------------------------------------------------------
// tile/scomtask-as-text
message ScomTaskAsTextTileConfig {
ScomTaskAsTextTileConfig_Context context = 1;
ScomTaskAsTextTileConfig_Source source = 2;
}
message ScomTaskAsTextTileConfig_Context {
string object_id = 1;
// This scope is not actually used because the tile only supports a single
// monitored object
ScomTaskAsTextTileConfig_Context_Scope scope = 2;
}
message ScomTaskAsTextTileConfig_Context_Scope {
// TODO: May contain redudnant class ID etc. that is ignored?
}
message ScomTaskAsTextTileConfig_Source {
// ID of the task to execute
string task_id = 1;
repeated ScomTaskAsTextTileConfig_Source_Parameter parameters = 2;
}
message ScomTaskAsTextTileConfig_Source_Parameter {
string key = 1;
// Assumed to be arbitrary type although often string in practice
google.protobuf.Value value = 2;
}
//-------------------------------------------------------------------------------------
// tile/scomtask-as-table
message ScomTaskAsTableTileConfig {
ScomTaskAsTableTileConfig_Context context = 1;
ScomTaskAsTableTileConfig_Source source = 2;
ScomTaskAsTableTileConfig_Display display = 3;
}
message ScomTaskAsTableTileConfig_Context {
string object_id = 1;
// This scope is not actually used because the tile only supports a single
// monitored object
ScomTaskAsTableTileConfig_Context_Scope scope = 2;
}
message ScomTaskAsTableTileConfig_Context_Scope {
// TODO: May contain redudnant class ID etc. that is ignored?
}
message ScomTaskAsTableTileConfig_Source {
// eg. powershell/table
string format = 1;
int32 skip_lines = 2;
string task_id = 3;
repeated ScomTaskAsTableTileConfig_Source_Parameter parameters = 4;
}
message ScomTaskAsTableTileConfig_Source_Parameter {
string key = 1;
// Assumed to be arbitrary type although often string in practice
google.protobuf.Value value = 2;
}
message ScomTaskAsTableTileConfig_Display {
// !! Property inconsistent with naming scheme !!
bool autohide = 1;
string row_link = 2;
bool show_headers = 3;
// Column template overrides
// name -> override data
map<string, ScomTaskAsTableTileConfig_ColumnOverride> column_overrides = 4;
// Custom columns
// internal name (e.g. custom_column) -> data key path
map<string, string> custom_columns = 5;
// List/order of each column
repeated string columns = 6;
// e.g. 'column'
string zoom = 7;
}
message ScomTaskAsTableTileConfig_ColumnOverride {
string template = 1;
}