|
| 1 | +// Copyright 2022 Google LLC |
| 2 | +// |
| 3 | +// Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | +// you may not use this file except in compliance with the License. |
| 5 | +// You may obtain a copy of the License at |
| 6 | +// |
| 7 | +// http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | +// |
| 9 | +// Unless required by applicable law or agreed to in writing, software |
| 10 | +// distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | +// See the License for the specific language governing permissions and |
| 13 | +// limitations under the License. |
| 14 | + |
| 15 | +syntax = "proto3"; |
| 16 | + |
| 17 | +package google.monitoring.dashboard.v1; |
| 18 | + |
| 19 | +import "google/api/field_behavior.proto"; |
| 20 | + |
| 21 | +option csharp_namespace = "Google.Cloud.Monitoring.Dashboard.V1"; |
| 22 | +option go_package = "google.golang.org/genproto/googleapis/monitoring/dashboard/v1;dashboard"; |
| 23 | +option java_multiple_files = true; |
| 24 | +option java_outer_classname = "DashboardFilterProto"; |
| 25 | +option java_package = "com.google.monitoring.dashboard.v1"; |
| 26 | +option php_namespace = "Google\\Cloud\\Monitoring\\Dashboard\\V1"; |
| 27 | +option ruby_package = "Google::Cloud::Monitoring::Dashboard::V1"; |
| 28 | + |
| 29 | +// A filter to reduce the amount of data charted in relevant widgets. |
| 30 | +message DashboardFilter { |
| 31 | + // The type for the dashboard filter |
| 32 | + enum FilterType { |
| 33 | + // Filter type is unspecified. This is not valid in a well-formed request. |
| 34 | + FILTER_TYPE_UNSPECIFIED = 0; |
| 35 | + |
| 36 | + // Filter on a resource label value |
| 37 | + RESOURCE_LABEL = 1; |
| 38 | + |
| 39 | + // Filter on a metrics label value |
| 40 | + METRIC_LABEL = 2; |
| 41 | + |
| 42 | + // Filter on a user metadata label value |
| 43 | + USER_METADATA_LABEL = 3; |
| 44 | + |
| 45 | + // Filter on a system metadata label value |
| 46 | + SYSTEM_METADATA_LABEL = 4; |
| 47 | + |
| 48 | + // Filter on a group id |
| 49 | + GROUP = 5; |
| 50 | + } |
| 51 | + |
| 52 | + // Required. The key for the label |
| 53 | + string label_key = 1 [(google.api.field_behavior) = REQUIRED]; |
| 54 | + |
| 55 | + // The placeholder text that can be referenced in a filter string or MQL |
| 56 | + // query. If omitted, the dashboard filter will be applied to all relevant |
| 57 | + // widgets in the dashboard. |
| 58 | + string template_variable = 3; |
| 59 | + |
| 60 | + // The default value used in the filter comparison |
| 61 | + oneof default_value { |
| 62 | + // A variable-length string value. |
| 63 | + string string_value = 4; |
| 64 | + } |
| 65 | + |
| 66 | + // The specified filter type |
| 67 | + FilterType filter_type = 5; |
| 68 | +} |
0 commit comments