Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: [monitoring] Added support for retriggering notifications in AlertPolicy #9823

Merged
merged 2 commits into from Sep 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -556,6 +556,10 @@ public final UnaryCallable<GetAlertPolicyRequest, AlertPolicy> getAlertPolicyCal
/**
* Creates a new alerting policy.
*
* <p>Design your application to single-thread API calls that modify the state of alerting
* policies in a single project. This includes calls to CreateAlertPolicy, DeleteAlertPolicy and
* UpdateAlertPolicy.
*
* <p>Sample code:
*
* <pre>{@code
Expand Down Expand Up @@ -598,6 +602,10 @@ public final AlertPolicy createAlertPolicy(ResourceName name, AlertPolicy alertP
/**
* Creates a new alerting policy.
*
* <p>Design your application to single-thread API calls that modify the state of alerting
* policies in a single project. This includes calls to CreateAlertPolicy, DeleteAlertPolicy and
* UpdateAlertPolicy.
*
* <p>Sample code:
*
* <pre>{@code
Expand Down Expand Up @@ -640,6 +648,10 @@ public final AlertPolicy createAlertPolicy(OrganizationName name, AlertPolicy al
/**
* Creates a new alerting policy.
*
* <p>Design your application to single-thread API calls that modify the state of alerting
* policies in a single project. This includes calls to CreateAlertPolicy, DeleteAlertPolicy and
* UpdateAlertPolicy.
*
* <p>Sample code:
*
* <pre>{@code
Expand Down Expand Up @@ -682,6 +694,10 @@ public final AlertPolicy createAlertPolicy(ProjectName name, AlertPolicy alertPo
/**
* Creates a new alerting policy.
*
* <p>Design your application to single-thread API calls that modify the state of alerting
* policies in a single project. This includes calls to CreateAlertPolicy, DeleteAlertPolicy and
* UpdateAlertPolicy.
*
* <p>Sample code:
*
* <pre>{@code
Expand Down Expand Up @@ -721,6 +737,10 @@ public final AlertPolicy createAlertPolicy(String name, AlertPolicy alertPolicy)
/**
* Creates a new alerting policy.
*
* <p>Design your application to single-thread API calls that modify the state of alerting
* policies in a single project. This includes calls to CreateAlertPolicy, DeleteAlertPolicy and
* UpdateAlertPolicy.
*
* <p>Sample code:
*
* <pre>{@code
Expand Down Expand Up @@ -750,6 +770,10 @@ public final AlertPolicy createAlertPolicy(CreateAlertPolicyRequest request) {
/**
* Creates a new alerting policy.
*
* <p>Design your application to single-thread API calls that modify the state of alerting
* policies in a single project. This includes calls to CreateAlertPolicy, DeleteAlertPolicy and
* UpdateAlertPolicy.
*
* <p>Sample code:
*
* <pre>{@code
Expand Down Expand Up @@ -779,6 +803,10 @@ public final UnaryCallable<CreateAlertPolicyRequest, AlertPolicy> createAlertPol
/**
* Deletes an alerting policy.
*
* <p>Design your application to single-thread API calls that modify the state of alerting
* policies in a single project. This includes calls to CreateAlertPolicy, DeleteAlertPolicy and
* UpdateAlertPolicy.
*
* <p>Sample code:
*
* <pre>{@code
Expand Down Expand Up @@ -811,6 +839,10 @@ public final void deleteAlertPolicy(AlertPolicyName name) {
/**
* Deletes an alerting policy.
*
* <p>Design your application to single-thread API calls that modify the state of alerting
* policies in a single project. This includes calls to CreateAlertPolicy, DeleteAlertPolicy and
* UpdateAlertPolicy.
*
* <p>Sample code:
*
* <pre>{@code
Expand Down Expand Up @@ -840,6 +872,10 @@ public final void deleteAlertPolicy(String name) {
/**
* Deletes an alerting policy.
*
* <p>Design your application to single-thread API calls that modify the state of alerting
* policies in a single project. This includes calls to CreateAlertPolicy, DeleteAlertPolicy and
* UpdateAlertPolicy.
*
* <p>Sample code:
*
* <pre>{@code
Expand Down Expand Up @@ -870,6 +906,10 @@ public final void deleteAlertPolicy(DeleteAlertPolicyRequest request) {
/**
* Deletes an alerting policy.
*
* <p>Design your application to single-thread API calls that modify the state of alerting
* policies in a single project. This includes calls to CreateAlertPolicy, DeleteAlertPolicy and
* UpdateAlertPolicy.
*
* <p>Sample code:
*
* <pre>{@code
Expand Down Expand Up @@ -902,6 +942,10 @@ public final UnaryCallable<DeleteAlertPolicyRequest, Empty> deleteAlertPolicyCal
* only certain fields in the current alerting policy by specifying the fields to be updated via
* `updateMask`. Returns the updated alerting policy.
*
* <p>Design your application to single-thread API calls that modify the state of alerting
* policies in a single project. This includes calls to CreateAlertPolicy, DeleteAlertPolicy and
* UpdateAlertPolicy.
*
* <p>Sample code:
*
* <pre>{@code
Expand Down Expand Up @@ -952,6 +996,10 @@ public final AlertPolicy updateAlertPolicy(FieldMask updateMask, AlertPolicy ale
* only certain fields in the current alerting policy by specifying the fields to be updated via
* `updateMask`. Returns the updated alerting policy.
*
* <p>Design your application to single-thread API calls that modify the state of alerting
* policies in a single project. This includes calls to CreateAlertPolicy, DeleteAlertPolicy and
* UpdateAlertPolicy.
*
* <p>Sample code:
*
* <pre>{@code
Expand Down Expand Up @@ -983,6 +1031,10 @@ public final AlertPolicy updateAlertPolicy(UpdateAlertPolicyRequest request) {
* only certain fields in the current alerting policy by specifying the fields to be updated via
* `updateMask`. Returns the updated alerting policy.
*
* <p>Design your application to single-thread API calls that modify the state of alerting
* policies in a single project. This includes calls to CreateAlertPolicy, DeleteAlertPolicy and
* UpdateAlertPolicy.
*
* <p>Sample code:
*
* <pre>{@code
Expand Down
Expand Up @@ -620,7 +620,8 @@ public final NotificationChannelDescriptor getNotificationChannelDescriptor(

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Lists the notification channels that have been created for the project.
* Lists the notification channels that have been created for the project. To list the types of
* notification channels that are supported, use the `ListNotificationChannelDescriptors` method.
*
* <p>Sample code:
*
Expand Down Expand Up @@ -659,7 +660,8 @@ public final ListNotificationChannelsPagedResponse listNotificationChannels(Reso

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Lists the notification channels that have been created for the project.
* Lists the notification channels that have been created for the project. To list the types of
* notification channels that are supported, use the `ListNotificationChannelDescriptors` method.
*
* <p>Sample code:
*
Expand Down Expand Up @@ -699,7 +701,8 @@ public final ListNotificationChannelsPagedResponse listNotificationChannels(

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Lists the notification channels that have been created for the project.
* Lists the notification channels that have been created for the project. To list the types of
* notification channels that are supported, use the `ListNotificationChannelDescriptors` method.
*
* <p>Sample code:
*
Expand Down Expand Up @@ -738,7 +741,8 @@ public final ListNotificationChannelsPagedResponse listNotificationChannels(Proj

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Lists the notification channels that have been created for the project.
* Lists the notification channels that have been created for the project. To list the types of
* notification channels that are supported, use the `ListNotificationChannelDescriptors` method.
*
* <p>Sample code:
*
Expand Down Expand Up @@ -775,7 +779,8 @@ public final ListNotificationChannelsPagedResponse listNotificationChannels(Stri

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Lists the notification channels that have been created for the project.
* Lists the notification channels that have been created for the project. To list the types of
* notification channels that are supported, use the `ListNotificationChannelDescriptors` method.
*
* <p>Sample code:
*
Expand Down Expand Up @@ -812,7 +817,8 @@ public final ListNotificationChannelsPagedResponse listNotificationChannels(

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Lists the notification channels that have been created for the project.
* Lists the notification channels that have been created for the project. To list the types of
* notification channels that are supported, use the `ListNotificationChannelDescriptors` method.
*
* <p>Sample code:
*
Expand Down Expand Up @@ -850,7 +856,8 @@ public final ListNotificationChannelsPagedResponse listNotificationChannels(

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Lists the notification channels that have been created for the project.
* Lists the notification channels that have been created for the project. To list the types of
* notification channels that are supported, use the `ListNotificationChannelDescriptors` method.
*
* <p>Sample code:
*
Expand Down Expand Up @@ -1039,6 +1046,10 @@ public final NotificationChannel getNotificationChannel(GetNotificationChannelRe
* Creates a new notification channel, representing a single notification endpoint such as an
* email address, SMS number, or PagerDuty service.
*
* <p>Design your application to single-thread API calls that modify the state of notification
* channels in a single project. This includes calls to CreateNotificationChannel,
* DeleteNotificationChannel and UpdateNotificationChannel.
*
* <p>Sample code:
*
* <pre>{@code
Expand Down Expand Up @@ -1081,6 +1092,10 @@ public final NotificationChannel createNotificationChannel(
* Creates a new notification channel, representing a single notification endpoint such as an
* email address, SMS number, or PagerDuty service.
*
* <p>Design your application to single-thread API calls that modify the state of notification
* channels in a single project. This includes calls to CreateNotificationChannel,
* DeleteNotificationChannel and UpdateNotificationChannel.
*
* <p>Sample code:
*
* <pre>{@code
Expand Down Expand Up @@ -1123,6 +1138,10 @@ public final NotificationChannel createNotificationChannel(
* Creates a new notification channel, representing a single notification endpoint such as an
* email address, SMS number, or PagerDuty service.
*
* <p>Design your application to single-thread API calls that modify the state of notification
* channels in a single project. This includes calls to CreateNotificationChannel,
* DeleteNotificationChannel and UpdateNotificationChannel.
*
* <p>Sample code:
*
* <pre>{@code
Expand Down Expand Up @@ -1165,6 +1184,10 @@ public final NotificationChannel createNotificationChannel(
* Creates a new notification channel, representing a single notification endpoint such as an
* email address, SMS number, or PagerDuty service.
*
* <p>Design your application to single-thread API calls that modify the state of notification
* channels in a single project. This includes calls to CreateNotificationChannel,
* DeleteNotificationChannel and UpdateNotificationChannel.
*
* <p>Sample code:
*
* <pre>{@code
Expand Down Expand Up @@ -1207,6 +1230,10 @@ public final NotificationChannel createNotificationChannel(
* Creates a new notification channel, representing a single notification endpoint such as an
* email address, SMS number, or PagerDuty service.
*
* <p>Design your application to single-thread API calls that modify the state of notification
* channels in a single project. This includes calls to CreateNotificationChannel,
* DeleteNotificationChannel and UpdateNotificationChannel.
*
* <p>Sample code:
*
* <pre>{@code
Expand Down Expand Up @@ -1240,6 +1267,10 @@ public final NotificationChannel createNotificationChannel(
* Creates a new notification channel, representing a single notification endpoint such as an
* email address, SMS number, or PagerDuty service.
*
* <p>Design your application to single-thread API calls that modify the state of notification
* channels in a single project. This includes calls to CreateNotificationChannel,
* DeleteNotificationChannel and UpdateNotificationChannel.
*
* <p>Sample code:
*
* <pre>{@code
Expand Down Expand Up @@ -1271,6 +1302,10 @@ public final NotificationChannel createNotificationChannel(
/**
* Updates a notification channel. Fields not specified in the field mask remain unchanged.
*
* <p>Design your application to single-thread API calls that modify the state of notification
* channels in a single project. This includes calls to CreateNotificationChannel,
* DeleteNotificationChannel and UpdateNotificationChannel.
*
* <p>Sample code:
*
* <pre>{@code
Expand Down Expand Up @@ -1309,6 +1344,10 @@ public final NotificationChannel updateNotificationChannel(
/**
* Updates a notification channel. Fields not specified in the field mask remain unchanged.
*
* <p>Design your application to single-thread API calls that modify the state of notification
* channels in a single project. This includes calls to CreateNotificationChannel,
* DeleteNotificationChannel and UpdateNotificationChannel.
*
* <p>Sample code:
*
* <pre>{@code
Expand Down Expand Up @@ -1341,6 +1380,10 @@ public final NotificationChannel updateNotificationChannel(
/**
* Updates a notification channel. Fields not specified in the field mask remain unchanged.
*
* <p>Design your application to single-thread API calls that modify the state of notification
* channels in a single project. This includes calls to CreateNotificationChannel,
* DeleteNotificationChannel and UpdateNotificationChannel.
*
* <p>Sample code:
*
* <pre>{@code
Expand Down Expand Up @@ -1372,6 +1415,10 @@ public final NotificationChannel updateNotificationChannel(
/**
* Deletes a notification channel.
*
* <p>Design your application to single-thread API calls that modify the state of notification
* channels in a single project. This includes calls to CreateNotificationChannel,
* DeleteNotificationChannel and UpdateNotificationChannel.
*
* <p>Sample code:
*
* <pre>{@code
Expand Down Expand Up @@ -1411,6 +1458,10 @@ public final void deleteNotificationChannel(NotificationChannelName name, boolea
/**
* Deletes a notification channel.
*
* <p>Design your application to single-thread API calls that modify the state of notification
* channels in a single project. This includes calls to CreateNotificationChannel,
* DeleteNotificationChannel and UpdateNotificationChannel.
*
* <p>Sample code:
*
* <pre>{@code
Expand Down Expand Up @@ -1448,6 +1499,10 @@ public final void deleteNotificationChannel(String name, boolean force) {
/**
* Deletes a notification channel.
*
* <p>Design your application to single-thread API calls that modify the state of notification
* channels in a single project. This includes calls to CreateNotificationChannel,
* DeleteNotificationChannel and UpdateNotificationChannel.
*
* <p>Sample code:
*
* <pre>{@code
Expand Down Expand Up @@ -1481,6 +1536,10 @@ public final void deleteNotificationChannel(DeleteNotificationChannelRequest req
/**
* Deletes a notification channel.
*
* <p>Design your application to single-thread API calls that modify the state of notification
* channels in a single project. This includes calls to CreateNotificationChannel,
* DeleteNotificationChannel and UpdateNotificationChannel.
*
* <p>Sample code:
*
* <pre>{@code
Expand Down