123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195 |
- syntax = "proto3";
- package google.monitoring.dashboard.v1;
- import "google/api/field_behavior.proto";
- import "google/monitoring/dashboard/v1/common.proto";
- option csharp_namespace = "Google.Cloud.Monitoring.Dashboard.V1";
- option go_package = "google.golang.org/genproto/googleapis/monitoring/dashboard/v1;dashboard";
- option java_multiple_files = true;
- option java_outer_classname = "MetricsProto";
- option java_package = "com.google.monitoring.dashboard.v1";
- option php_namespace = "Google\\Cloud\\Monitoring\\Dashboard\\V1";
- option ruby_package = "Google::Cloud::Monitoring::Dashboard::V1";
- message TimeSeriesQuery {
-
- oneof source {
-
- TimeSeriesFilter time_series_filter = 1;
-
- TimeSeriesFilterRatio time_series_filter_ratio = 2;
-
- string time_series_query_language = 3;
-
- string prometheus_query = 6;
- }
-
-
-
-
-
- string unit_override = 5;
- }
- message TimeSeriesFilter {
-
-
- string filter = 1 [(google.api.field_behavior) = REQUIRED];
-
-
-
- Aggregation aggregation = 2;
-
- Aggregation secondary_aggregation = 3;
-
- oneof output_filter {
-
- PickTimeSeriesFilter pick_time_series_filter = 4;
-
-
- StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true];
- }
- }
- message TimeSeriesFilterRatio {
-
-
- message RatioPart {
-
-
-
- string filter = 1 [(google.api.field_behavior) = REQUIRED];
-
-
-
- Aggregation aggregation = 2;
- }
-
- RatioPart numerator = 1;
-
- RatioPart denominator = 2;
-
- Aggregation secondary_aggregation = 3;
-
-
- oneof output_filter {
-
- PickTimeSeriesFilter pick_time_series_filter = 4;
-
-
- StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true];
- }
- }
- message Threshold {
-
-
-
- enum Color {
-
- COLOR_UNSPECIFIED = 0;
-
- YELLOW = 4;
-
- RED = 6;
- }
-
-
- enum Direction {
-
- DIRECTION_UNSPECIFIED = 0;
-
-
- ABOVE = 1;
-
-
- BELOW = 2;
- }
-
- enum TargetAxis {
-
- TARGET_AXIS_UNSPECIFIED = 0;
-
- Y1 = 1;
-
- Y2 = 2;
- }
-
- string label = 1;
-
-
- double value = 2;
-
- Color color = 3;
-
-
- Direction direction = 4;
-
-
- TargetAxis target_axis = 5;
- }
- enum SparkChartType {
-
- SPARK_CHART_TYPE_UNSPECIFIED = 0;
-
- SPARK_LINE = 1;
-
- SPARK_BAR = 2;
- }
|