aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/yandex-cloud-api-protos/yandex/cloud/monitoring/v3/parametrization.proto
blob: e2305cd25d742a8808f703ba4be7c85b9d73ecc4 (plain) (blame)
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
syntax = "proto3";

package yandex.cloud.monitoring.v3;

import "yandex/cloud/monitoring/v3/unit_format.proto";

option go_package = "github.com/yandex-cloud/go-genproto/yandex/cloud/monitoring/v3;monitoring";
option java_package = "yandex.cloud.api.monitoring.v3";

// Label values parameter.
message LabelValuesParameter {
  reserved 3 to 18;
  // Container id
  oneof container {
    // Required. Folder ID.
    string folder_id = 2;
  }

  // Required. Selectors to select metric label values.
  string selectors = 19;

  // Required. Label key to list label values.
  string label_key = 20;

  // Specifies the multiselectable values of parameter.
  bool multiselectable = 21;

  // Default values.
  repeated string default_values = 22;
}

// Custom parameter.
message CustomParameter {
  // Required. List of parameter values.
  repeated string values = 1;

  // Specifies the multiselectable values of parameter.
  bool multiselectable = 2;

  // Default values.
  repeated string default_values = 3;
}

// Text parameter.
message TextParameter {
  // Default value.
  string default_value = 1;
}

// Double parameter.
message DoubleParameter {
  // Default value.
  double default_value = 1;

  // Parameter unit.
  UnitFormat unit_format = 2;
}

// Integer parameter.
message IntegerParameter {
  // Default value.
  int64 default_value = 1;

  // Parameter unit.
  UnitFormat unit_format = 2;
}

// Text multiple values parameter.
message TextValuesParameter {
  // Default value.
  repeated string default_values = 1;
}

// Parameter.
message Parameter {
  // Parameter identifier.
  string name = 1;

  // UI-visible title of the parameter.
  string title = 2;

  // Parameter data.
  oneof data {
    // Label values parameter.
    LabelValuesParameter label_values = 3;

    // Custom parameter.
    CustomParameter custom = 4;

    // Text parameter.
    TextParameter text = 5;

    // Integer parameter.
    IntegerParameter integer_parameter = 7;

    // Double parameter.
    DoubleParameter double_parameter = 8;

    // Integer parameter.
    TextValuesParameter text_values = 9;
  }

  // UI-visibility.
  bool hidden = 6;

  // Parameter description.
  string description = 10;
}

// Parametrization.
message Parametrization {
  // Parameters.
  repeated Parameter parameters = 1;

  // Predefined selectors.
  string selectors = 2;
}