Skip to content

Commit

Permalink
feat: Added support for PromQL queries (#237)
Browse files Browse the repository at this point in the history
* feat: Added support for PromQL queries

PiperOrigin-RevId: 483996299

Source-Link: googleapis/googleapis@1742ec3

Source-Link: googleapis/googleapis-gen@0ef6832
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>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] authored Oct 27, 2022
1 parent a6146fa commit 18db3ce
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,12 @@ class TimeSeriesQuery(proto.Message):
This field is a member of `oneof`_ ``source``.
time_series_query_language (str):
A query used to fetch time series.
A query used to fetch time series with MQL.
This field is a member of `oneof`_ ``source``.
prometheus_query (str):
A query used to fetch time series with
PromQL.
This field is a member of `oneof`_ ``source``.
unit_override (str):
Expand Down Expand Up @@ -89,6 +94,11 @@ class TimeSeriesQuery(proto.Message):
number=3,
oneof="source",
)
prometheus_query = proto.Field(
proto.STRING,
number=6,
oneof="source",
)
unit_override = proto.Field(
proto.STRING,
number=5,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,8 @@ class TableDisplayOptions(proto.Message):
Attributes:
shown_columns (Sequence[str]):
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.
Optional. This field is unused and has been replaced by
TimeSeriesTable.column_settings
"""

shown_columns = proto.RepeatedField(
Expand Down

0 comments on commit 18db3ce

Please sign in to comment.