-
Notifications
You must be signed in to change notification settings - Fork 0
/
image.proto
60 lines (43 loc) · 1.27 KB
/
image.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
syntax = "proto3";
import "google/protobuf/struct.proto";
import "google/protobuf/wrappers.proto";
import "context.proto";
option csharp_namespace = "SquaredUp.Dashboard.Schema";
package squaredup;
//-------------------------------------------------------------------------------------
//
// Image and diagram tiles
//
//-------------------------------------------------------------------------------------
// tile/image
message ImageTileConfig {
CommonContext context = 1;
ImageTileConfig_Display display = 2;
// Generally empty (source: {})
//
// Unlike other tiles, the scope ends up in context for this tile
google.protobuf.Value source = 3;
}
message ImageTileConfig_Display {
double size = 1;
// Relative URL of the image (relative to the host)
string src = 2;
// e.g. circle
string shape = 3;
// Can be name, path, custom
string label = 4;
// Custom label template, if supplied
string custom_label = 5;
// e.g. 'column'
string zoom = 6;
}
message ImageTileConfig_Scope {
// Group ID of the scope
string group_id = 1;
// Multiple specific object IDs
repeated string object_ids = 2;
// A specific class ID
string classId = 3;
// Criteria (such as severity)
string criteria = 4;
}