-
Notifications
You must be signed in to change notification settings - Fork 602
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Sync public protos with latests public api state. This adds sup…
…port for collapsible groups, filters, labels, drilldowns, logs panels and tables (#257) * feat: Sync public protos with latests public api state. This adds support for collapsible groups, filters, labels, drilldowns, logs panels and tables PiperOrigin-RevId: 440139643 Source-Link: googleapis/googleapis@2bff0f3 Source-Link: googleapis/googleapis-gen@8c92aa7 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiOGM5MmFhNzc0NjZhMWZlNTAxNmUyNWQ4MDZkZDRlYjQ1YjYyZTVhMiJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
- Loading branch information
1 parent
07e029c
commit 45747a8
Showing
21 changed files
with
3,036 additions
and
144 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
packages/google-monitoring-dashboard/protos/google/monitoring/dashboard/v1/alertchart.proto
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
...google-monitoring-dashboard/protos/google/monitoring/dashboard/v1/collapsible_group.proto
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
// Copyright 2022 Google LLC | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
syntax = "proto3"; | ||
|
||
package google.monitoring.dashboard.v1; | ||
|
||
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 = "CollapsibleGroupProto"; | ||
option java_package = "com.google.monitoring.dashboard.v1"; | ||
option php_namespace = "Google\\Cloud\\Monitoring\\Dashboard\\V1"; | ||
option ruby_package = "Google::Cloud::Monitoring::Dashboard::V1"; | ||
|
||
// A widget that groups the other widgets. All widgets that are within | ||
// the area spanned by the grouping widget are considered member widgets. | ||
message CollapsibleGroup { | ||
// The collapsed state of the widget on first page load. | ||
bool collapsed = 1; | ||
} |
2 changes: 1 addition & 1 deletion
2
packages/google-monitoring-dashboard/protos/google/monitoring/dashboard/v1/common.proto
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
68 changes: 68 additions & 0 deletions
68
.../google-monitoring-dashboard/protos/google/monitoring/dashboard/v1/dashboard_filter.proto
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
// Copyright 2022 Google LLC | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
syntax = "proto3"; | ||
|
||
package google.monitoring.dashboard.v1; | ||
|
||
import "google/api/field_behavior.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 = "DashboardFilterProto"; | ||
option java_package = "com.google.monitoring.dashboard.v1"; | ||
option php_namespace = "Google\\Cloud\\Monitoring\\Dashboard\\V1"; | ||
option ruby_package = "Google::Cloud::Monitoring::Dashboard::V1"; | ||
|
||
// A filter to reduce the amount of data charted in relevant widgets. | ||
message DashboardFilter { | ||
// The type for the dashboard filter | ||
enum FilterType { | ||
// Filter type is unspecified. This is not valid in a well-formed request. | ||
FILTER_TYPE_UNSPECIFIED = 0; | ||
|
||
// Filter on a resource label value | ||
RESOURCE_LABEL = 1; | ||
|
||
// Filter on a metrics label value | ||
METRIC_LABEL = 2; | ||
|
||
// Filter on a user metadata label value | ||
USER_METADATA_LABEL = 3; | ||
|
||
// Filter on a system metadata label value | ||
SYSTEM_METADATA_LABEL = 4; | ||
|
||
// Filter on a group id | ||
GROUP = 5; | ||
} | ||
|
||
// Required. The key for the label | ||
string label_key = 1 [(google.api.field_behavior) = REQUIRED]; | ||
|
||
// The placeholder text that can be referenced in a filter string or MQL | ||
// query. If omitted, the dashboard filter will be applied to all relevant | ||
// widgets in the dashboard. | ||
string template_variable = 3; | ||
|
||
// The default value used in the filter comparison | ||
oneof default_value { | ||
// A variable-length string value. | ||
string string_value = 4; | ||
} | ||
|
||
// The specified filter type | ||
FilterType filter_type = 5; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/google-monitoring-dashboard/protos/google/monitoring/dashboard/v1/drilldowns.proto
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/google-monitoring-dashboard/protos/google/monitoring/dashboard/v1/layouts.proto
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
packages/google-monitoring-dashboard/protos/google/monitoring/dashboard/v1/logs_panel.proto
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
// Copyright 2022 Google LLC | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
syntax = "proto3"; | ||
|
||
package google.monitoring.dashboard.v1; | ||
|
||
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 = "LogsPanelProto"; | ||
option java_package = "com.google.monitoring.dashboard.v1"; | ||
option php_namespace = "Google\\Cloud\\Monitoring\\Dashboard\\V1"; | ||
option ruby_package = "Google::Cloud::Monitoring::Dashboard::V1"; | ||
|
||
// A widget that displays a stream of log. | ||
message LogsPanel { | ||
// A filter that chooses which log entries to return. See [Advanced Logs | ||
// Queries](https://cloud.google.com/logging/docs/view/advanced-queries). | ||
// Only log entries that match the filter are returned. An empty filter | ||
// matches all log entries. | ||
string filter = 1; | ||
|
||
// The names of logging resources to collect logs for. Currently only projects | ||
// are supported. If empty, the widget will default to the host project. | ||
repeated string resource_names = 2; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/google-monitoring-dashboard/protos/google/monitoring/dashboard/v1/scorecard.proto
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/google-monitoring-dashboard/protos/google/monitoring/dashboard/v1/service.proto
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
59 changes: 59 additions & 0 deletions
59
packages/google-monitoring-dashboard/protos/google/monitoring/dashboard/v1/table.proto
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
// Copyright 2022 Google LLC | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
syntax = "proto3"; | ||
|
||
package google.monitoring.dashboard.v1; | ||
|
||
import "google/api/field_behavior.proto"; | ||
import "google/monitoring/dashboard/v1/metrics.proto"; | ||
import "google/monitoring/dashboard/v1/table_display_options.proto"; | ||
import "google/protobuf/duration.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 = "TableProto"; | ||
option java_package = "com.google.monitoring.dashboard.v1"; | ||
option php_namespace = "Google\\Cloud\\Monitoring\\Dashboard\\V1"; | ||
option ruby_package = "Google::Cloud::Monitoring::Dashboard::V1"; | ||
|
||
// A table that displays time series data. | ||
message TimeSeriesTable { | ||
// Groups a time series query definition with table options. | ||
message TableDataSet { | ||
// Required. Fields for querying time series data from the | ||
// Stackdriver metrics API. | ||
TimeSeriesQuery time_series_query = 1 [(google.api.field_behavior) = REQUIRED]; | ||
|
||
// Optional. A template string for naming `TimeSeries` in the resulting data set. | ||
// This should be a string with interpolations of the form `${label_name}`, | ||
// which will resolve to the label's value i.e. | ||
// "${resource.labels.project_id}." | ||
string table_template = 2 [(google.api.field_behavior) = OPTIONAL]; | ||
|
||
// Optional. The lower bound on data point frequency for this data set, implemented by | ||
// specifying the minimum alignment period to use in a time series query | ||
// For example, if the data is published once every 10 minutes, the | ||
// `min_alignment_period` should be at least 10 minutes. It would not | ||
// make sense to fetch and align data at one minute intervals. | ||
google.protobuf.Duration min_alignment_period = 3 [(google.api.field_behavior) = OPTIONAL]; | ||
|
||
// Optional. Table display options for configuring how the table is rendered. | ||
TableDisplayOptions table_display_options = 4 [(google.api.field_behavior) = OPTIONAL]; | ||
} | ||
|
||
// Required. The data displayed in this table. | ||
repeated TableDataSet data_sets = 1 [(google.api.field_behavior) = REQUIRED]; | ||
} |
34 changes: 34 additions & 0 deletions
34
...le-monitoring-dashboard/protos/google/monitoring/dashboard/v1/table_display_options.proto
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
// Copyright 2022 Google LLC | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
syntax = "proto3"; | ||
|
||
package google.monitoring.dashboard.v1; | ||
|
||
import "google/api/field_behavior.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 = "TableDisplayOptionsProto"; | ||
option java_package = "com.google.monitoring.dashboard.v1"; | ||
option php_namespace = "Google\\Cloud\\Monitoring\\Dashboard\\V1"; | ||
option ruby_package = "Google::Cloud::Monitoring::Dashboard::V1"; | ||
|
||
// Table display options that can be reused. | ||
message TableDisplayOptions { | ||
// Optional. Columns to display in the table. Leave empty to display all available | ||
// columns. Note: This field is for future features and is not currently used. | ||
repeated string shown_columns = 1 [(google.api.field_behavior) = OPTIONAL]; | ||
} |
2 changes: 1 addition & 1 deletion
2
packages/google-monitoring-dashboard/protos/google/monitoring/dashboard/v1/text.proto
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.