10000 feat: Added support for PromQL queries · googleapis/googleapis@1742ec3 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1742ec3

Browse files
Google APIscopybara-github
authored andcommitted
feat: Added support for PromQL queries
PiperOrigin-RevId: 483996299
1 parent 88a4618 commit 1742ec3

File tree

4 files changed

+23
-11
lines changed

4 files changed

+23
-11
lines changed

google/monitoring/dashboard/v1/BUILD.bazel

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ java_gapic_library(
8585
srcs = [":dashboard_proto_with_info"],
8686
gapic_yaml = "monitoring_gapic.yaml",
8787
grpc_service_config = "dashboards_grpc_service_config.json",
88+
rest_numeric_enums = False,
8889
service_yaml = "monitoring.yaml",
8990
test_deps = [
9091
":dashboard_java_grpc",
@@ -108,6 +109,7 @@ java_gapic_test(
108109
# Open Source Packages
109110
java_gapic_assembly_gradle_pkg(
110111
name = "google-cloud-monitoring-dashboard-v1-java",
112+
include_samples = True,
111113
transport = "grpc+rest",
112114
deps = [
113115
":dashboard_java_gapic",
@@ -144,6 +146,7 @@ go_gapic_library(
144146
grpc_service_config = "dashboards_grpc_service_config.json",
145147
importpath = "cloud.google.com/go/monitoring/dashboard/apiv1;dashboard",
146148
metadata = True,
149+
rest_numeric_enums = False,
147150
service_yaml = "monitoring.yaml",
148151
transport = "grpc+rest",
149152
deps = [
@@ -184,7 +187,11 @@ py_gapic_library(
184187
name = "dashboard_py_gapic",
185188
srcs = [":dashboard_proto"],
186189
grpc_service_config = "dashboards_grpc_service_config.json",
190+
rest_numeric_enums = False,
191+
service_yaml = "monitoring.yaml",
187192
transport = "grpc",
193+
deps = [
194+
],
188195
)
189196

190197
py_test(
@@ -231,6 +238,7 @@ php_gapic_library(
231238
name = "dashboard_php_gapic",
232239
srcs = [":dashboard_proto_with_info"],
233240
grpc_service_config = "dashboards_grpc_service_config.json",
241+
rest_numeric_enums = False,
234242
service_yaml = "monitoring.yaml",
235243
deps = [
236244
":dashboard_php_grpc",
@@ -264,6 +272,7 @@ nodejs_gapic_library(
264272
extra_protoc_parameters = ["metadata"],
265273
grpc_service_config = "dashboards_grpc_service_config.json",
266274
package = "google.monitoring.dashboard.v1",
275+
rest_numeric_enums = False,
267276
service_yaml = "monitoring.yaml",
268277
deps = [],
269278
)
@@ -310,8 +319,10 @@ ruby_cloud_gapic_library(
310319
"ruby-cloud-wrapper-gem-override=google-cloud-monitoring",
311320
],
312321
grpc_service_config = "dashboards_grpc_service_config.json",
322+
rest_numeric_enums = False,
313323
ruby_cloud_description = "Cloud Monitoring collects metrics, events, and metadata from Google Cloud, Amazon Web Services (AWS), hosted uptime probes, and application instrumentation. The Dashboards API manages arrangements of display widgets.",
314324
ruby_cloud_title = "Cloud Monitoring Dashboards V1",
325+
service_yaml = "monitoring.yaml",
315326
deps = [
316327
":dashboard_ruby_grpc",
317328
":dashboard_ruby_proto",
@@ -355,6 +366,7 @@ csharp_gapic_library(
355366
srcs = [":dashboard_proto_with_info"],
356367
common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json",
357368
grpc_service_config = "dashboards_grpc_service_config.json",
369+
rest_numeric_enums = False,
358370
service_yaml = "monitoring.yaml",
359371
deps = [
360372
":dashboard_csharp_grpc",

google/monitoring/dashboard/v1/metrics.proto

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,11 @@ message TimeSeriesQuery {
3838
// Parameters to fetch a ratio between two time series filters.
3939
TimeSeriesFilterRatio time_series_filter_ratio = 2;
4040

41-
// A query used to fetch time series.
41+
// A query used to fetch time series with MQL.
4242
string time_series_query_language = 3;
43+
44+
// A query used to fetch time series with PromQL.
45+
string prometheus_query = 6;
4346
}
4447

4548
// The unit of data contained in fetched time series. If non-empty, this

google/monitoring/dashboard/v1/monitoring.yaml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,7 @@ apis:
77
- name: google.monitoring.dashboard.v1.DashboardsService
88

99
documentation:
10-
summary: |-
11-
Manages your Cloud Monitoring data and configurations. Most projects must
12-
be associated with a Workspace, with a few exceptions as noted on the
13-
individual method pages. The table entries below are presented in
14-
alphabetical order, not in order of common use. For explanations of the
15-
concepts found in the table entries, read the [Cloud Monitoring
16-
documentation](https://cloud.google.com/monitoring/docs).
10+
summary: Manages your Cloud Monitoring data and configurations.
1711

1812
authentication:
1913
rules:

google/monitoring/dashboard/v1/table_display_options.proto

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,10 @@ option ruby_package = "Google::Cloud::Monitoring::Dashboard::V1";
2828

2929
// Table display options that can be reused.
3030
message TableDisplayOptions {
31-
// Optional. Columns to display in the table. Leave empty to display all available
32-
// columns. Note: This field is for future features and is not currently used.
33-
repeated string shown_columns = 1 [(google.api.field_behavior) = OPTIONAL];
31+
// Optional. This field is unused and has been replaced by
32+
// TimeSeriesTable.column_settings
33+
repeated string shown_columns = 1 [
34+
deprecated = true,
35+
(google.api.field_behavior) = OPTIONAL
36+
];
3437
}

0 commit comments

Comments
 (0)
0