Skip to content

Commit

Permalink
feat: [monitoring] Added support for retriggering notifications in Al…
Browse files Browse the repository at this point in the history
…ertPolicy (#9823)

* feat: Added support for retriggering notifications in AlertPolicy
feat: Added support for forecast options in AlertPolicy
feat: Added support for promQL condition type in AlertPolicy

PiperOrigin-RevId: 564411592

Source-Link: googleapis/googleapis@babab51

Source-Link: https://github.com/googleapis/googleapis-gen/commit/b282e012db0f0036bff22300d3fc101d258baca7
Copy-Tag: eyJwIjoiamF2YS1tb25pdG9yaW5nLy5Pd2xCb3QueWFtbCIsImgiOiJiMjgyZTAxMmRiMGYwMDM2YmZmMjIzMDBkM2ZjMTAxZDI1OGJhY2E3In0=

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] authored Sep 11, 2023
1 parent 09dbd85 commit b1910b1
Show file tree
Hide file tree
Showing 27 changed files with 16,603 additions and 9,147 deletions.
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Loading

0 comments on commit b1910b1

Please sign in to comment.