Skip to content
This repository was archived by the owner on Jan 17, 2024. It is now read-only.

Commit 8b11cdc

Browse files
feat: Added support for PromQL queries (#237)
* feat: Added support for PromQL queries PiperOrigin-RevId: 483996299 Source-Link: googleapis/googleapis@1742ec3 Source-Link: https://github.com/googleapis/googleapis-gen/commit/0ef68325a5074d0a5c54a34757b1204f927fa855 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMGVmNjgzMjVhNTA3NGQwYTVjNTRhMzQ3NTdiMTIwNGY5MjdmYTg1NSJ9 * 🦉 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>
1 parent 54b6854 commit 8b11cdc

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

google/cloud/monitoring_dashboard_v1/types/metrics.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,12 @@ class TimeSeriesQuery(proto.Message):
6161
6262
This field is a member of `oneof`_ ``source``.
6363
time_series_query_language (str):
64-
A query used to fetch time series.
64+
A query used to fetch time series with MQL.
65+
66+
This field is a member of `oneof`_ ``source``.
67+
prometheus_query (str):
68+
A query used to fetch time series with
69+
PromQL.
6570
6671
This field is a member of `oneof`_ ``source``.
6772
unit_override (str):
@@ -89,6 +94,11 @@ class TimeSeriesQuery(proto.Message):
8994
number=3,
9095
oneof="source",
9196
)
97+
prometheus_query = proto.Field(
98+
proto.STRING,
99+
number=6,
100+
oneof="source",
101+
)
92102
unit_override = proto.Field(
93103
proto.STRING,
94104
number=5,

google/cloud/monitoring_dashboard_v1/types/table_display_options.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,8 @@ class TableDisplayOptions(proto.Message):
2929
3030
Attributes:
3131
shown_columns (Sequence[str]):
32-
Optional. Columns to display in the table.
33-
Leave empty to display all available columns.
34-
Note: This field is for future features and is
35-
not currently used.
32+
Optional. This field is unused and has been replaced by
33+
TimeSeriesTable.column_settings
3634
"""
3735

3836
shown_columns = proto.RepeatedField(

0 commit comments

Comments
 (0)