summaryrefslogtreecommitdiffstats
path: root/aclk/aclk-schemas/proto/chart/v1/config.proto
blob: f0c5e3a35c14ea47bf5188405542834f91a95ee6 (plain)
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
syntax = "proto3";

package chart.v1;

option go_package = "chart/config/v1;chartconfig";

// UpdateChartConfigs command contains the list of missing chart configs from the cloud to agent
message UpdateChartConfigs {
  // claim_id, node_id pair is used to identify the Node Instance
  string claim_id = 1;
  string node_id = 2;
  // list of config hashes missing from cloud and requested from the agent
  repeated string config_hashes = 3;
}

message ChartConfigsUpdated {
  repeated ChartConfigUpdated configs = 1;
}

message ChartConfigUpdated {
  string type = 1;
  string family = 2;
  string context = 3;
  string title = 4;
  uint64 priority = 5;
  string plugin = 6;
  string module = 7;
  ChartType chart_type = 8;
  string units = 9;
  string config_hash = 10;
}

enum ChartType {
  LINE = 0;
  AREA = 1;
  STACKED = 2;
}