Skip to content

Commit 11e309d

Browse files
Google APIscopybara-github
authored andcommitted
feat: Added support for auto-close configurations
PiperOrigin-RevId: 410253233
1 parent 490aa30 commit 11e309d

7 files changed

Lines changed: 36 additions & 32 deletions

File tree

google/monitoring/dashboard/v1/BUILD.bazel

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,13 @@ java_gapic_library(
8282
srcs = [":dashboard_proto_with_info"],
8383
gapic_yaml = "monitoring_gapic.yaml",
8484
grpc_service_config = "dashboards_grpc_service_config.json",
85+
service_yaml = "monitoring.yaml",
8586
test_deps = [
8687
":dashboard_java_grpc",
8788
],
8889
deps = [
8990
":dashboard_java_proto",
91+
"//google/api:api_java_proto",
9092
],
9193
)
9294

google/monitoring/metricsscope/v1/BUILD.bazel

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,15 @@ java_grpc_library(
6868
java_gapic_library(
6969
name = "metricsscope_java_gapic",
7070
srcs = [":metricsscope_proto_with_info"],
71+
gapic_yaml = "monitoring_gapic.yaml",
7172
grpc_service_config = "metricsscopes_grpc_service_config.json",
73+
service_yaml = "monitoring.yaml",
7274
test_deps = [
7375
":metricsscope_java_grpc",
7476
],
7577
deps = [
7678
":metricsscope_java_proto",
79+
"//google/api:api_java_proto",
7780
],
7881
)
7982

@@ -165,9 +168,9 @@ py_gapic_library(
165168
srcs = [":metricsscope_proto"],
166169
grpc_service_config = "metricsscopes_grpc_service_config.json",
167170
opt_args = [
168-
"python-gapic-namespace=google.cloud",
169-
"python-gapic-name=monitoring_metrics_scope",
170-
"ware-house-package-name=google-cloud-monitoring-metrics-scopes"
171+
"python-gapic-name=monitoring_metrics_scope",
172+
"python-gapic-namespace=google.cloud",
173+
"ware-house-package-name=google-cloud-monitoring-metrics-scopes",
171174
],
172175
)
173176

google/monitoring/v3/BUILD.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ java_gapic_library(
9797
srcs = [":monitoring_proto_with_info"],
9898
gapic_yaml = "monitoring_gapic.yaml",
9999
grpc_service_config = "monitoring_grpc_service_config.json",
100+
service_yaml = "monitoring.yaml",
100101
test_deps = [
101102
":monitoring_java_grpc",
102103
],

google/monitoring/v3/alert.proto

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,10 @@ message AlertPolicy {
334334
//
335335
// This limit is not implemented for alert policies that are not log-based.
336336
NotificationRateLimit notification_rate_limit = 1;
337+
338+
// If an alert policy that was active has no data for this long, any open
339+
// incidents will close
340+
google.protobuf.Duration auto_close = 3;
337341
}
338342

339343
// Operators for combining conditions.

google/monitoring/v3/common.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ message TypedValue {
6868
// of the previous interval.
6969
//
7070
// * For `CUMULATIVE` metrics, the start time and end time must specify a
71-
// a non-zero interval, with subsequent points specifying the same
71+
// non-zero interval, with subsequent points specifying the same
7272
// start time and increasing end times, until an event resets the
7373
// cumulative value to zero and sets a new start time for the following
7474
// points. The new start time must be at least a millisecond after the

google/monitoring/v3/monitoring.yaml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,7 @@ types:
1717
- name: google.monitoring.v3.SpanContext
1818

1919
documentation:
20-
summary: |-
21-
Manages your Cloud Monitoring data and configurations. Most projects must
22-
be associated with a Workspace, with a few exceptions as noted on the
23-
individual method pages. The table entries below are presented in
24-
alphabetical order, not in order of common use. For explanations of the
25-
concepts found in the table entries, read the [Cloud Monitoring
26-
documentation](https://cloud.google.com/monitoring/docs).
20+
summary: Manages your Cloud Monitoring data and configurations.
2721

2822
backend:
2923
rules:

google/monitoring/v3/uptime.proto

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -28,27 +28,6 @@ option java_package = "com.google.monitoring.v3";
2828
option php_namespace = "Google\\Cloud\\Monitoring\\V3";
2929
option ruby_package = "Google::Cloud::Monitoring::V3";
3030

31-
// The regions from which an Uptime check can be run.
32-
enum UptimeCheckRegion {
33-
// Default value if no region is specified. Will result in Uptime checks
34-
// running from all regions.
35-
REGION_UNSPECIFIED = 0;
36-
37-
// Allows checks to run from locations within the United States of America.
38-
USA = 1;
39-
40-
// Allows checks to run from locations within the continent of Europe.
41-
EUROPE = 2;
42-
43-
// Allows checks to run from locations within the continent of South
44-
// America.
45-
SOUTH_AMERICA = 3;
46-
47-
// Allows checks to run from locations within the Asia Pacific area (ex:
48-
// Singapore).
49-
ASIA_PACIFIC = 4;
50-
}
51-
5231
// An internal checker allows Uptime checks to run on private/internal GCP
5332
// resources.
5433
message InternalChecker {
@@ -105,6 +84,27 @@ message InternalChecker {
10584
State state = 7;
10685
}
10786

87+
// The regions from which an Uptime check can be run.
88+
enum UptimeCheckRegion {
89+
// Default value if no region is specified. Will result in Uptime checks
90+
// running from all regions.
91+
REGION_UNSPECIFIED = 0;
92+
93+
// Allows checks to run from locations within the United States of America.
94+
USA = 1;
95+
96+
// Allows checks to run from locations within the continent of Europe.
97+
EUROPE = 2;
98+
99+
// Allows checks to run from locations within the continent of South
100+
// America.
101+
SOUTH_AMERICA = 3;
102+
103+
// Allows checks to run from locations within the Asia Pacific area (ex:
104+
// Singapore).
105+
ASIA_PACIFIC = 4;
106+
}
107+
108108
// This message configures which resources and services to monitor for
109109
// availability.
110110
message UptimeCheckConfig {

0 commit comments

Comments
 (0)