Skip to content

Commit

Permalink
feat: Added support for evaluating missing data in AlertPolicy (#906)
Browse files Browse the repository at this point in the history
- [ ] 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
  • Loading branch information
gcf-owl-bot[bot] authored Aug 6, 2022
1 parent 1cb4d71 commit e51e43c
Show file tree
Hide file tree
Showing 10 changed files with 837 additions and 163 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@
// AUTO-GENERATED DOCUMENTATION AND CLASS.
/**
* Service Description: The AlertPolicyService API is used to manage (list, create, delete, edit)
* alert policies in Stackdriver Monitoring. An alerting policy is a description of the conditions
* under which some aspect of your system is considered to be "unhealthy" and the ways to notify
* people or services about this state. In addition to using this API, alert policies can also be
* managed through [Stackdriver Monitoring](https://cloud.google.com/monitoring/docs/), which can be
* reached by clicking the "Monitoring" tab in [Cloud Console](https://console.cloud.google.com/).
* alert policies in Cloud Monitoring. An alerting policy is a description of the conditions under
* which some aspect of your system is considered to be "unhealthy" and the ways to notify people or
* services about this state. In addition to using this API, alert policies can also be managed
* through [Cloud Monitoring](https://cloud.google.com/monitoring/docs/), which can be reached by
* clicking the "Monitoring" tab in [Cloud console](https://console.cloud.google.com/).
*
* <p>This class provides the ability to make remote calls to the backing service through method
* calls that map to API methods. Sample code to get started:
Expand Down Expand Up @@ -530,10 +530,10 @@ public final UnaryCallable<GetAlertPolicyRequest, AlertPolicy> getAlertPolicyCal
* which to create the alerting policy. The format is:
* <p>projects/[PROJECT_ID_OR_NUMBER]
* <p>Note that this field names the parent container in which the alerting policy will be
* written, not the name of the created policy. |name| must be a host project of a workspace,
* otherwise INVALID_ARGUMENT error will return. The alerting policy that is returned will
* have a name that contains a normalized representation of this name as a prefix but adds a
* suffix of the form `/alertPolicies/[ALERT_POLICY_ID]`, identifying the policy in the
* written, not the name of the created policy. |name| must be a host project of a Metrics
* Scope, otherwise INVALID_ARGUMENT error will return. The alerting policy that is returned
* will have a name that contains a normalized representation of this name as a prefix but
* adds a suffix of the form `/alertPolicies/[ALERT_POLICY_ID]`, identifying the policy in the
* container.
* @param alertPolicy Required. The requested alerting policy. You should omit the `name` field in
* this policy. The name will be returned in the new policy, including a new
Expand Down Expand Up @@ -569,10 +569,10 @@ public final AlertPolicy createAlertPolicy(ResourceName name, AlertPolicy alertP
* which to create the alerting policy. The format is:
* <p>projects/[PROJECT_ID_OR_NUMBER]
* <p>Note that this field names the parent container in which the alerting policy will be
* written, not the name of the created policy. |name| must be a host project of a workspace,
* otherwise INVALID_ARGUMENT error will return. The alerting policy that is returned will
* have a name that contains a normalized representation of this name as a prefix but adds a
* suffix of the form `/alertPolicies/[ALERT_POLICY_ID]`, identifying the policy in the
* written, not the name of the created policy. |name| must be a host project of a Metrics
* Scope, otherwise INVALID_ARGUMENT error will return. The alerting policy that is returned
* will have a name that contains a normalized representation of this name as a prefix but
* adds a suffix of the form `/alertPolicies/[ALERT_POLICY_ID]`, identifying the policy in the
* container.
* @param alertPolicy Required. The requested alerting policy. You should omit the `name` field in
* this policy. The name will be returned in the new policy, including a new
Expand Down Expand Up @@ -608,10 +608,10 @@ public final AlertPolicy createAlertPolicy(OrganizationName name, AlertPolicy al
* which to create the alerting policy. The format is:
* <p>projects/[PROJECT_ID_OR_NUMBER]
* <p>Note that this field names the parent container in which the alerting policy will be
* written, not the name of the created policy. |name| must be a host project of a workspace,
* otherwise INVALID_ARGUMENT error will return. The alerting policy that is returned will
* have a name that contains a normalized representation of this name as a prefix but adds a
* suffix of the form `/alertPolicies/[ALERT_POLICY_ID]`, identifying the policy in the
* written, not the name of the created policy. |name| must be a host project of a Metrics
* Scope, otherwise INVALID_ARGUMENT error will return. The alerting policy that is returned
* will have a name that contains a normalized representation of this name as a prefix but
* adds a suffix of the form `/alertPolicies/[ALERT_POLICY_ID]`, identifying the policy in the
* container.
* @param alertPolicy Required. The requested alerting policy. You should omit the `name` field in
* this policy. The name will be returned in the new policy, including a new
Expand Down Expand Up @@ -647,10 +647,10 @@ public final AlertPolicy createAlertPolicy(ProjectName name, AlertPolicy alertPo
* which to create the alerting policy. The format is:
* <p>projects/[PROJECT_ID_OR_NUMBER]
* <p>Note that this field names the parent container in which the alerting policy will be
* written, not the name of the created policy. |name| must be a host project of a workspace,
* otherwise INVALID_ARGUMENT error will return. The alerting policy that is returned will
* have a name that contains a normalized representation of this name as a prefix but adds a
* suffix of the form `/alertPolicies/[ALERT_POLICY_ID]`, identifying the policy in the
* written, not the name of the created policy. |name| must be a host project of a Metrics
* Scope, otherwise INVALID_ARGUMENT error will return. The alerting policy that is returned
* will have a name that contains a normalized representation of this name as a prefix but
* adds a suffix of the form `/alertPolicies/[ALERT_POLICY_ID]`, identifying the policy in the
* container.
* @param alertPolicy Required. The requested alerting policy. You should omit the `name` field in
* this policy. The name will be returned in the new policy, including a new
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@
* <p>======================= AlertPolicyServiceClient =======================
*
* <p>Service Description: The AlertPolicyService API is used to manage (list, create, delete, edit)
* alert policies in Stackdriver Monitoring. An alerting policy is a description of the conditions
* under which some aspect of your system is considered to be "unhealthy" and the ways to notify
* people or services about this state. In addition to using this API, alert policies can also be
* managed through [Stackdriver Monitoring](https://cloud.google.com/monitoring/docs/), which can be
* reached by clicking the "Monitoring" tab in [Cloud Console](https://console.cloud.google.com/).
* alert policies in Cloud Monitoring. An alerting policy is a description of the conditions under
* which some aspect of your system is considered to be "unhealthy" and the ways to notify people or
* services about this state. In addition to using this API, alert policies can also be managed
* through [Cloud Monitoring](https://cloud.google.com/monitoring/docs/), which can be reached by
* clicking the "Monitoring" tab in [Cloud console](https://console.cloud.google.com/).
*
* <p>Sample for AlertPolicyServiceClient:
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@
*
* <pre>
* The AlertPolicyService API is used to manage (list, create, delete,
* edit) alert policies in Stackdriver Monitoring. An alerting policy is
* edit) alert policies in Cloud Monitoring. An alerting policy is
* a description of the conditions under which some aspect of your
* system is considered to be "unhealthy" and the ways to notify
* people or services about this state. In addition to using this API, alert
* policies can also be managed through
* [Stackdriver Monitoring](https://cloud.google.com/monitoring/docs/),
* [Cloud Monitoring](https://cloud.google.com/monitoring/docs/),
* which can be reached by clicking the "Monitoring" tab in
* [Cloud Console](https://console.cloud.google.com/).
* [Cloud console](https://console.cloud.google.com/).
* </pre>
*/
@javax.annotation.Generated(
Expand Down Expand Up @@ -311,14 +311,14 @@ public AlertPolicyServiceFutureStub newStub(
*
* <pre>
* The AlertPolicyService API is used to manage (list, create, delete,
* edit) alert policies in Stackdriver Monitoring. An alerting policy is
* edit) alert policies in Cloud Monitoring. An alerting policy is
* a description of the conditions under which some aspect of your
* system is considered to be "unhealthy" and the ways to notify
* people or services about this state. In addition to using this API, alert
* policies can also be managed through
* [Stackdriver Monitoring](https://cloud.google.com/monitoring/docs/),
* [Cloud Monitoring](https://cloud.google.com/monitoring/docs/),
* which can be reached by clicking the "Monitoring" tab in
* [Cloud Console](https://console.cloud.google.com/).
* [Cloud console](https://console.cloud.google.com/).
* </pre>
*/
public abstract static class AlertPolicyServiceImplBase implements io.grpc.BindableService {
Expand Down Expand Up @@ -440,14 +440,14 @@ public final io.grpc.ServerServiceDefinition bindService() {
*
* <pre>
* The AlertPolicyService API is used to manage (list, create, delete,
* edit) alert policies in Stackdriver Monitoring. An alerting policy is
* edit) alert policies in Cloud Monitoring. An alerting policy is
* a description of the conditions under which some aspect of your
* system is considered to be "unhealthy" and the ways to notify
* people or services about this state. In addition to using this API, alert
* policies can also be managed through
* [Stackdriver Monitoring](https://cloud.google.com/monitoring/docs/),
* [Cloud Monitoring](https://cloud.google.com/monitoring/docs/),
* which can be reached by clicking the "Monitoring" tab in
* [Cloud Console](https://console.cloud.google.com/).
* [Cloud console](https://console.cloud.google.com/).
* </pre>
*/
public static final class AlertPolicyServiceStub
Expand Down Expand Up @@ -552,14 +552,14 @@ public void updateAlertPolicy(
*
* <pre>
* The AlertPolicyService API is used to manage (list, create, delete,
* edit) alert policies in Stackdriver Monitoring. An alerting policy is
* edit) alert policies in Cloud Monitoring. An alerting policy is
* a description of the conditions under which some aspect of your
* system is considered to be "unhealthy" and the ways to notify
* people or services about this state. In addition to using this API, alert
* policies can also be managed through
* [Stackdriver Monitoring](https://cloud.google.com/monitoring/docs/),
* [Cloud Monitoring](https://cloud.google.com/monitoring/docs/),
* which can be reached by clicking the "Monitoring" tab in
* [Cloud Console](https://console.cloud.google.com/).
* [Cloud console](https://console.cloud.google.com/).
* </pre>
*/
public static final class AlertPolicyServiceBlockingStub
Expand Down Expand Up @@ -649,14 +649,14 @@ public com.google.monitoring.v3.AlertPolicy updateAlertPolicy(
*
* <pre>
* The AlertPolicyService API is used to manage (list, create, delete,
* edit) alert policies in Stackdriver Monitoring. An alerting policy is
* edit) alert policies in Cloud Monitoring. An alerting policy is
* a description of the conditions under which some aspect of your
* system is considered to be "unhealthy" and the ways to notify
* people or services about this state. In addition to using this API, alert
* policies can also be managed through
* [Stackdriver Monitoring](https://cloud.google.com/monitoring/docs/),
* [Cloud Monitoring](https://cloud.google.com/monitoring/docs/),
* which can be reached by clicking the "Monitoring" tab in
* [Cloud Console](https://console.cloud.google.com/).
* [Cloud console](https://console.cloud.google.com/).
* </pre>
*/
public static final class AlertPolicyServiceFutureStub
Expand Down
Loading

0 comments on commit e51e43c

Please sign in to comment.