Skip to content

Commit

Permalink
feat: added support for horizontal bar rendering and column settings …
Browse files Browse the repository at this point in the history
…on time series tables (#248)

* feat: added support for horizontal bar rendering and column settings on time series tables

PiperOrigin-RevId: 501316608

Source-Link: googleapis/googleapis@09d97e0

Source-Link: googleapis/googleapis-gen@8085bab
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiODA4NWJhYjFiZGY0YjlkNzAwN2RkOTRmNWQ2Yzk3NTg4OGExNGQ3MyJ9

* 🦉 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
gcf-owl-bot[bot] and gcf-owl-bot[bot] authored Jan 12, 2023
1 parent 29363d1 commit 70974d0
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,19 @@ class TimeSeriesTable(proto.Message):
Attributes:
data_sets (MutableSequence[google.cloud.monitoring_dashboard_v1.types.TimeSeriesTable.TableDataSet]):
Required. The data displayed in this table.
metric_visualization (google.cloud.monitoring_dashboard_v1.types.TimeSeriesTable.MetricVisualization):
Optional. Store rendering strategy
column_settings (MutableSequence[google.cloud.monitoring_dashboard_v1.types.TimeSeriesTable.ColumnSettings]):
Optional. The list of the persistent column
settings for the table.
"""

class MetricVisualization(proto.Enum):
r"""Enum for metric metric_visualization"""
METRIC_VISUALIZATION_UNSPECIFIED = 0
NUMBER = 1
BAR = 2

class TableDataSet(proto.Message):
r"""Groups a time series query definition with table options.
Expand Down Expand Up @@ -88,11 +99,41 @@ class TableDataSet(proto.Message):
)
)

class ColumnSettings(proto.Message):
r"""The persistent settings for a table's columns.
Attributes:
column (str):
Required. The id of the column.
visible (bool):
Required. Whether the column should be
visible on page load.
"""

column: str = proto.Field(
proto.STRING,
number=1,
)
visible: bool = proto.Field(
proto.BOOL,
number=2,
)

data_sets: MutableSequence[TableDataSet] = proto.RepeatedField(
proto.MESSAGE,
number=1,
message=TableDataSet,
)
metric_visualization: MetricVisualization = proto.Field(
proto.ENUM,
number=2,
enum=MetricVisualization,
)
column_settings: MutableSequence[ColumnSettings] = proto.RepeatedField(
proto.MESSAGE,
number=4,
message=ColumnSettings,
)


__all__ = tuple(sorted(__protobuf__.manifest))
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
],
"language": "PYTHON",
"name": "google-cloud-monitoring-dashboards",
"version": "2.10.0"
"version": "0.1.0"
},
"snippets": [
{
Expand Down

0 comments on commit 70974d0

Please sign in to comment.