-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add CollapsibleGroup, DashboardFilter, LogsPanel, TableDisplayO…
…ptions, TimeSeriesTable (#175) * fix: fix type in docstring for map fields PiperOrigin-RevId: 440107808 Source-Link: googleapis/googleapis@258ddb2 Source-Link: googleapis/googleapis-gen@df0d09a Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZGYwZDA5YTJjMzZmZjViYWY5ODY0OGVlZmU1MDI5YzE3MzkwNWQwYiJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 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
69fd2f0
commit 83f7892
Showing
15 changed files
with
516 additions
and
24 deletions.
There are no files selected for viewing
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
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
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
44 changes: 44 additions & 0 deletions
44
...oud-monitoring-dashboards/google/cloud/monitoring_dashboard_v1/types/collapsible_group.py
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,44 @@ | ||
# -*- coding: utf-8 -*- | ||
# 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. | ||
# | ||
import proto # type: ignore | ||
|
||
|
||
__protobuf__ = proto.module( | ||
package="google.monitoring.dashboard.v1", | ||
manifest={ | ||
"CollapsibleGroup", | ||
}, | ||
) | ||
|
||
|
||
class CollapsibleGroup(proto.Message): | ||
r"""A widget that groups the other widgets. All widgets that are | ||
within the area spanned by the grouping widget are considered | ||
member widgets. | ||
Attributes: | ||
collapsed (bool): | ||
The collapsed state of the widget on first | ||
page load. | ||
""" | ||
|
||
collapsed = proto.Field( | ||
proto.BOOL, | ||
number=1, | ||
) | ||
|
||
|
||
__all__ = tuple(sorted(__protobuf__.manifest)) |
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
79 changes: 79 additions & 0 deletions
79
...loud-monitoring-dashboards/google/cloud/monitoring_dashboard_v1/types/dashboard_filter.py
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,79 @@ | ||
# -*- coding: utf-8 -*- | ||
# 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. | ||
# | ||
import proto # type: ignore | ||
|
||
|
||
__protobuf__ = proto.module( | ||
package="google.monitoring.dashboard.v1", | ||
manifest={ | ||
"DashboardFilter", | ||
}, | ||
) | ||
|
||
|
||
class DashboardFilter(proto.Message): | ||
r"""A filter to reduce the amount of data charted in relevant | ||
widgets. | ||
.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields | ||
Attributes: | ||
label_key (str): | ||
Required. The key for the label | ||
template_variable (str): | ||
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_value (str): | ||
A variable-length string value. | ||
This field is a member of `oneof`_ ``default_value``. | ||
filter_type (google.cloud.monitoring_dashboard_v1.types.DashboardFilter.FilterType): | ||
The specified filter type | ||
""" | ||
|
||
class FilterType(proto.Enum): | ||
r"""The type for the dashboard filter""" | ||
FILTER_TYPE_UNSPECIFIED = 0 | ||
RESOURCE_LABEL = 1 | ||
METRIC_LABEL = 2 | ||
USER_METADATA_LABEL = 3 | ||
SYSTEM_METADATA_LABEL = 4 | ||
GROUP = 5 | ||
|
||
label_key = proto.Field( | ||
proto.STRING, | ||
number=1, | ||
) | ||
template_variable = proto.Field( | ||
proto.STRING, | ||
number=3, | ||
) | ||
string_value = proto.Field( | ||
proto.STRING, | ||
number=4, | ||
oneof="default_value", | ||
) | ||
filter_type = proto.Field( | ||
proto.ENUM, | ||
number=5, | ||
enum=FilterType, | ||
) | ||
|
||
|
||
__all__ = tuple(sorted(__protobuf__.manifest)) |
Oops, something went wrong.