Skip to content

Commit e51e43c

Browse files
feat: Added support for evaluating missing data in AlertPolicy (#906)
- [ ] Regenerate this pull request now. PiperOrigin-RevId: 465650583 Source-Link: googleapis/googleapis@9f7c0ff Source-Link: https://github.com/googleapis/googleapis-gen/commit/5b7443170272800dbde8d6cd89af75f60e860d97 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNWI3NDQzMTcwMjcyODAwZGJkZThkNmNkODlhZjc1ZjYwZTg2MGQ5NyJ9
1 parent 1cb4d71 commit e51e43c

File tree

10 files changed

+837
-163
lines changed

10 files changed

+837
-163
lines changed

java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/AlertPolicyServiceClient.java

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,11 @@
4848
// AUTO-GENERATED DOCUMENTATION AND CLASS.
4949
/**
5050
* Service Description: The AlertPolicyService API is used to manage (list, create, delete, edit)
51-
* alert policies in Stackdriver Monitoring. An alerting policy is a description of the conditions
52-
* under which some aspect of your system is considered to be "unhealthy" and the ways to notify
53-
* people or services about this state. In addition to using this API, alert policies can also be
54-
* managed through [Stackdriver Monitoring](https://cloud.google.com/monitoring/docs/), which can be
55-
* reached by clicking the "Monitoring" tab in [Cloud Console](https://console.cloud.google.com/).
51+
* alert policies in Cloud Monitoring. An alerting policy is a description of the conditions under
52+
* which some aspect of your system is considered to be "unhealthy" and the ways to notify people or
53+
* services about this state. In addition to using this API, alert policies can also be managed
54+
* through [Cloud Monitoring](https://cloud.google.com/monitoring/docs/), which can be reached by
55+
* clicking the "Monitoring" tab in [Cloud console](https://console.cloud.google.com/).
5656
*
5757
* <p>This class provides the ability to make remote calls to the backing service through method
5858
* calls that map to API methods. Sample code to get started:
@@ -530,10 +530,10 @@ public final UnaryCallable<GetAlertPolicyRequest, AlertPolicy> getAlertPolicyCal
530530
* which to create the alerting policy. The format is:
531531
* <p>projects/[PROJECT_ID_OR_NUMBER]
532532
* <p>Note that this field names the parent container in which the alerting policy will be
533-
* written, not the name of the created policy. |name| must be a host project of a workspace,
534-
* otherwise INVALID_ARGUMENT error will return. The alerting policy that is returned will
535-
* have a name that contains a normalized representation of this name as a prefix but adds a
536-
* suffix of the form `/alertPolicies/[ALERT_POLICY_ID]`, identifying the policy in the
533+
* written, not the name of the created policy. |name| must be a host project of a Metrics
534+
* Scope, otherwise INVALID_ARGUMENT error will return. The alerting policy that is returned
535+
* will have a name that contains a normalized representation of this name as a prefix but
536+
* adds a suffix of the form `/alertPolicies/[ALERT_POLICY_ID]`, identifying the policy in the
537537
* container.
538538
* @param alertPolicy Required. The requested alerting policy. You should omit the `name` field in
539539
* this policy. The name will be returned in the new policy, including a new
@@ -569,10 +569,10 @@ public final AlertPolicy createAlertPolicy(ResourceName name, AlertPolicy alertP
569569
* which to create the alerting policy. The format is:
570570
* <p>projects/[PROJECT_ID_OR_NUMBER]
571571
* <p>Note that this field names the parent container in which the alerting policy will be
572-
* written, not the name of the created policy. |name| must be a host project of a workspace,
573-
* otherwise INVALID_ARGUMENT error will return. The alerting policy that is returned will
574-
* have a name that contains a normalized representation of this name as a prefix but adds a
575-
* suffix of the form `/alertPolicies/[ALERT_POLICY_ID]`, identifying the policy in the
572+
* written, not the name of the created policy. |name| must be a host project of a Metrics
573+
* Scope, otherwise INVALID_ARGUMENT error will return. The alerting policy that is returned
574+
* will have a name that contains a normalized representation of this name as a prefix but
575+
* adds a suffix of the form `/alertPolicies/[ALERT_POLICY_ID]`, identifying the policy in the
576576
* container.
577577
* @param alertPolicy Required. The requested alerting policy. You should omit the `name` field in
578578
* this policy. The name will be returned in the new policy, including a new
@@ -608,10 +608,10 @@ public final AlertPolicy createAlertPolicy(OrganizationName name, AlertPolicy al
608608
* which to create the alerting policy. The format is:
609609
* <p>projects/[PROJECT_ID_OR_NUMBER]
610610
* <p>Note that this field names the parent container in which the alerting policy will be
611-
* written, not the name of the created policy. |name| must be a host project of a workspace,
612-
* otherwise INVALID_ARGUMENT error will return. The alerting policy that is returned will
613-
* have a name that contains a normalized representation of this name as a prefix but adds a
614-
* suffix of the form `/alertPolicies/[ALERT_POLICY_ID]`, identifying the policy in the
611+
* written, not the name of the created policy. |name| must be a host project of a Metrics
612+
* Scope, otherwise INVALID_ARGUMENT error will return. The alerting policy that is returned
613+
* will have a name that contains a normalized representation of this name as a prefix but
614+
* adds a suffix of the form `/alertPolicies/[ALERT_POLICY_ID]`, identifying the policy in the
615615
* container.
616616
* @param alertPolicy Required. The requested alerting policy. You should omit the `name` field in
617617
* this policy. The name will be returned in the new policy, including a new
@@ -647,10 +647,10 @@ public final AlertPolicy createAlertPolicy(ProjectName name, AlertPolicy alertPo
647647
* which to create the alerting policy. The format is:
648648
* <p>projects/[PROJECT_ID_OR_NUMBER]
649649
* <p>Note that this field names the parent container in which the alerting policy will be
650-
* written, not the name of the created policy. |name| must be a host project of a workspace,
651-
* otherwise INVALID_ARGUMENT error will return. The alerting policy that is returned will
652-
* have a name that contains a normalized representation of this name as a prefix but adds a
653-
* suffix of the form `/alertPolicies/[ALERT_POLICY_ID]`, identifying the policy in the
650+
* written, not the name of the created policy. |name| must be a host project of a Metrics
651+
* Scope, otherwise INVALID_ARGUMENT error will return. The alerting policy that is returned
652+
* will have a name that contains a normalized representation of this name as a prefix but
653+
* adds a suffix of the form `/alertPolicies/[ALERT_POLICY_ID]`, identifying the policy in the
654654
* container.
655655
* @param alertPolicy Required. The requested alerting policy. You should omit the `name` field in
656656
* this policy. The name will be returned in the new policy, including a new

java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/package-info.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@
2222
* <p>======================= AlertPolicyServiceClient =======================
2323
*
2424
* <p>Service Description: The AlertPolicyService API is used to manage (list, create, delete, edit)
25-
* alert policies in Stackdriver Monitoring. An alerting policy is a description of the conditions
26-
* under which some aspect of your system is considered to be "unhealthy" and the ways to notify
27-
* people or services about this state. In addition to using this API, alert policies can also be
28-
* managed through [Stackdriver Monitoring](https://cloud.google.com/monitoring/docs/), which can be
29-
* reached by clicking the "Monitoring" tab in [Cloud Console](https://console.cloud.google.com/).
25+
* alert policies in Cloud Monitoring. An alerting policy is a description of the conditions under
26+
* which some aspect of your system is considered to be "unhealthy" and the ways to notify people or
27+
* services about this state. In addition to using this API, alert policies can also be managed
28+
* through [Cloud Monitoring](https://cloud.google.com/monitoring/docs/), which can be reached by
29+
* clicking the "Monitoring" tab in [Cloud console](https://console.cloud.google.com/).
3030
*
3131
* <p>Sample for AlertPolicyServiceClient:
3232
*

java-monitoring/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertPolicyServiceGrpc.java

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@
2222
*
2323
* <pre>
2424
* The AlertPolicyService API is used to manage (list, create, delete,
25-
* edit) alert policies in Stackdriver Monitoring. An alerting policy is
25+
* edit) alert policies in Cloud Monitoring. An alerting policy is
2626
* a description of the conditions under which some aspect of your
2727
* system is considered to be "unhealthy" and the ways to notify
2828
* people or services about this state. In addition to using this API, alert
2929
* policies can also be managed through
30-
* [Stackdriver Monitoring](https://cloud.google.com/monitoring/docs/),
30+
* [Cloud Monitoring](https://cloud.google.com/monitoring/docs/),
3131
* which can be reached by clicking the "Monitoring" tab in
32-
* [Cloud Console](https://console.cloud.google.com/).
32+
* [Cloud console](https://console.cloud.google.com/).
3333
* </pre>
3434
*/
3535
@javax.annotation.Generated(
@@ -311,14 +311,14 @@ public AlertPolicyServiceFutureStub newStub(
311311
*
312312
* <pre>
313313
* The AlertPolicyService API is used to manage (list, create, delete,
314-
* edit) alert policies in Stackdriver Monitoring. An alerting policy is
314+
* edit) alert policies in Cloud Monitoring. An alerting policy is
315315
* a description of the conditions under which some aspect of your
316316
* system is considered to be "unhealthy" and the ways to notify
317317
* people or services about this state. In addition to using this API, alert
318318
* policies can also be managed through
319-
* [Stackdriver Monitoring](https://cloud.google.com/monitoring/docs/),
319+
* [Cloud Monitoring](https://cloud.google.com/monitoring/docs/),
320320
* which can be reached by clicking the "Monitoring" tab in
321-
* [Cloud Console](https://console.cloud.google.com/).
321+
* [Cloud console](https://console.cloud.google.com/).
322322
* </pre>
323323
*/
324324
public abstract static class AlertPolicyServiceImplBase implements io.grpc.BindableService {
@@ -440,14 +440,14 @@ public final io.grpc.ServerServiceDefinition bindService() {
440440
*
441441
* <pre>
442442
* The AlertPolicyService API is used to manage (list, create, delete,
443-
* edit) alert policies in Stackdriver Monitoring. An alerting policy is
443+
* edit) alert policies in Cloud Monitoring. An alerting policy is
444444
* a description of the conditions under which some aspect of your
445445
* system is considered to be "unhealthy" and the ways to notify
446446
* people or services about this state. In addition to using this API, alert
447447
* policies can also be managed through
448-
* [Stackdriver Monitoring](https://cloud.google.com/monitoring/docs/),
448+
* [Cloud Monitoring](https://cloud.google.com/monitoring/docs/),
449449
* which can be reached by clicking the "Monitoring" tab in
450-
* [Cloud Console](https://console.cloud.google.com/).
450+
* [Cloud console](https://console.cloud.google.com/).
451451
* </pre>
452452
*/
453453
public static final class AlertPolicyServiceStub
@@ -552,14 +552,14 @@ public void updateAlertPolicy(
552552
*
553553
* <pre>
554554
* The AlertPolicyService API is used to manage (list, create, delete,
555-
* edit) alert policies in Stackdriver Monitoring. An alerting policy is
555+
* edit) alert policies in Cloud Monitoring. An alerting policy is
556556
* a description of the conditions under which some aspect of your
557557
* system is considered to be "unhealthy" and the ways to notify
558558
* people or services about this state. In addition to using this API, alert
559559
* policies can also be managed through
560-
* [Stackdriver Monitoring](https://cloud.google.com/monitoring/docs/),
560+
* [Cloud Monitoring](https://cloud.google.com/monitoring/docs/),
561561
* which can be reached by clicking the "Monitoring" tab in
562-
* [Cloud Console](https://console.cloud.google.com/).
562+
* [Cloud console](https://console.cloud.google.com/).
563563
* </pre>
564564
*/
565565
public static final class AlertPolicyServiceBlockingStub
@@ -649,14 +649,14 @@ public com.google.monitoring.v3.AlertPolicy updateAlertPolicy(
649649
*
650650
* <pre>
651651
* The AlertPolicyService API is used to manage (list, create, delete,
652-
* edit) alert policies in Stackdriver Monitoring. An alerting policy is
652+
* edit) alert policies in Cloud Monitoring. An alerting policy is
653653
* a description of the conditions under which some aspect of your
654654
* system is considered to be "unhealthy" and the ways to notify
655655
* people or services about this state. In addition to using this API, alert
656656
* policies can also be managed through
657-
* [Stackdriver Monitoring](https://cloud.google.com/monitoring/docs/),
657+
* [Cloud Monitoring](https://cloud.google.com/monitoring/docs/),
658658
* which can be reached by clicking the "Monitoring" tab in
659-
* [Cloud Console](https://console.cloud.google.com/).
659+
* [Cloud console](https://console.cloud.google.com/).
660660
* </pre>
661661
*/
662662
public static final class AlertPolicyServiceFutureStub

0 commit comments

Comments
 (0)