aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/yandex-cloud-api-protos/yandex/cloud/monitoring/v3/chart_widget.proto
blob: 150f6a787509a97b5a7e6d8122534a464da7966e (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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
syntax = "proto3";

package yandex.cloud.monitoring.v3;

import "google/protobuf/wrappers.proto";
import "yandex/cloud/monitoring/v3/downsampling.proto";
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";

// Chart widget.
message ChartWidget {
    // Query settings.
    message Queries {
        // Query target.
        message Target {
            // Required. Query.
            string query = 1;

            // Text mode.
            bool text_mode = 2;

            // Checks that target is visible or invisible.
            bool hidden = 3;

            // Name of the query.
            string name = 4;
        }

        // Required. List of targets.
        repeated Target targets = 1;

        // Required. Downsampling settings.
        Downsampling downsampling = 2;
    }

    // Visualization settings.
    message VisualizationSettings {
        // Chart visualization type.
        enum VisualizationType {
            // Not specified (line by default).
            VISUALIZATION_TYPE_UNSPECIFIED = 0;

            // Line chart.
            VISUALIZATION_TYPE_LINE = 1;

            // Stack chart.
            VISUALIZATION_TYPE_STACK = 2;

            // Points as columns chart.
            VISUALIZATION_TYPE_COLUMN = 3;

            // Points.
            VISUALIZATION_TYPE_POINTS = 4;

            // Pie aggregation chart.
            VISUALIZATION_TYPE_PIE = 5;

            // Bars aggregation chart.
            VISUALIZATION_TYPE_BARS = 6;

            // Distribution aggregation chart.
            VISUALIZATION_TYPE_DISTRIBUTION = 7;

            // Heatmap aggregation chart.
            VISUALIZATION_TYPE_HEATMAP = 8;
        }

        enum Interpolate {
            // Not specified (linear by default).
            INTERPOLATE_UNSPECIFIED = 0;

            // Linear.
            INTERPOLATE_LINEAR = 1;

            // Left.
            INTERPOLATE_LEFT = 2;

            // Right.
            INTERPOLATE_RIGHT = 3;
        }

        message ColorSchemeSettings {
            message AutomaticColorScheme {
            }

            message StandardColorScheme {
            }

            message GradientColorScheme {
                // Gradient green value.
                string green_value = 2;

                // Gradient yellow value.
                string yellow_value = 3;

                // Gradient red value.
                string red_value = 4;

                // Gradient violet_value.
                string violet_value = 5;
            }

            oneof scheme {
                // Automatic color scheme.
                AutomaticColorScheme automatic = 1;

                // Standard color scheme.
                StandardColorScheme standard = 2;

                // Gradient color scheme.
                GradientColorScheme gradient = 3;
            }
        }

        message HeatmapSettings {
            // Heatmap green value.
            string green_value = 2;

            // Heatmap yellow value.
            string yellow_value = 3;

            // Heatmap red value.
            string red_value = 4;

            // Heatmap violet_value.
            string violet_value = 5;
        }

        // Y axis type.
        // N.B. _TYPE prefix is necessary to expect name clash with Interpolate LINEAR value.
        enum YaxisType {
            // Not specified (linear by default).
            YAXIS_TYPE_UNSPECIFIED = 0;

            // Linear.
            YAXIS_TYPE_LINEAR = 1;

            // Logarithmic.
            YAXIS_TYPE_LOGARITHMIC = 2;
        }

        // Y axis settings.
        message Yaxis {
            // Type.
            YaxisType type = 1;

            // Title or empty.
            string title = 2;

            // Min value in extended number format or empty.
            string min = 3;

            // Max value in extended number format or empty.
            string max = 4;

            // Unit format.
            UnitFormat unit_format = 5;

            // Tick value precision (null as default, 0-7 in other cases).
            google.protobuf.Int64Value precision = 6;
        }

        message YaxisSettings {
            // Left Y axis settings.
            Yaxis left = 1;
            // Right Y axis settings.
            Yaxis right = 2;
        }

        enum SeriesAggregation {
            // Not specified (avg by default).
            SERIES_AGGREGATION_UNSPECIFIED = 0;

            // Average.
            SERIES_AGGREGATION_AVG = 1;

            // Minimum.
            SERIES_AGGREGATION_MIN = 2;

            // Maximum.
            SERIES_AGGREGATION_MAX = 3;

            // Last non-NaN value.
            SERIES_AGGREGATION_LAST = 4;

            // Sum.
            SERIES_AGGREGATION_SUM = 5;
        }

        // Visualization type.
        VisualizationType type = 1;

        // Normalize.
        bool normalize = 2;

        // Interpolate.
        Interpolate interpolate = 3;

        // Aggregation.
        SeriesAggregation aggregation = 4;

        // Color scheme settings.
        ColorSchemeSettings color_scheme_settings = 5;

        // Heatmap settings.
        HeatmapSettings heatmap_settings = 6;

        // Y axis settings.
        YaxisSettings yaxis_settings = 7;

        // Inside chart title.
        string title = 8;

        // Show chart labels.
        bool show_labels = 9;
    }

    // Series override settings.
    message SeriesOverrides {
        enum YaxisPosition {
            // Not specified (left by default).
            YAXIS_POSITION_UNSPECIFIED = 0;

            // Left.
            YAXIS_POSITION_LEFT = 1;

            // Right.
            YAXIS_POSITION_RIGHT = 2;
        }

        enum SeriesVisualizationType {
            // Not specified (line by default).
            SERIES_VISUALIZATION_TYPE_UNSPECIFIED = 0;

            // Line chart.
            SERIES_VISUALIZATION_TYPE_LINE = 1;

            // Stack chart.
            SERIES_VISUALIZATION_TYPE_STACK = 2;

            // Points as columns chart.
            SERIES_VISUALIZATION_TYPE_COLUMN = 3;

            // Points.
            SERIES_VISUALIZATION_TYPE_POINTS = 4;
        }

        message SeriesOverrideSettings {
            // Series name or empty.
            string name = 1;

            // Series color or empty.
            string color = 2;

            // Type.
            SeriesVisualizationType type = 3;

            // Stack name or empty.
            string stack_name = 4;

            // Stack grow down.
            bool grow_down = 5;

            // Yaxis position.
            YaxisPosition yaxis_position = 6;
        }

        // Required. Series selection type.
        oneof type {
            // Series name.
            string name = 1;

            // Target index.
            string target_index = 2;
        }

        // Required. Override settings.
        SeriesOverrideSettings settings = 3;
    }

    // Name hiding settings.
    message NameHidingSettings {
        // True if we want to show concrete series names only, false if we want to hide concrete series names.
        bool positive = 1;

        // Series names to show or hide.
        repeated string names = 2;
    }

    enum FreezeDuration {
        FREEZE_DURATION_UNSPECIFIED = 0;

        // Last hour.
        FREEZE_DURATION_HOUR = 1;

        // Last day = last 24 hours.
        FREEZE_DURATION_DAY = 2;

        // Last 7 days.
        FREEZE_DURATION_WEEK = 3;

        // Last 31 days.
        FREEZE_DURATION_MONTH = 4;
    }

    // Required. Chart ID.
    string id = 1;

    // Queries.
    Queries queries = 2;

    // Visualization settings.
    VisualizationSettings visualization_settings = 3;

    // Override settings.
    repeated SeriesOverrides series_overrides = 4;

    // Name hiding settings.
    NameHidingSettings name_hiding_settings = 5;

    // Chart description in dashboard (not enabled in UI).
    string description = 6;

    // Chart widget title.
    string title = 7;

    // Enable legend under chart.
    bool display_legend = 8;

    // Fixed time interval for chart.
    FreezeDuration freeze = 9;
}