Skip to content

Commit b1910b1

Browse files
feat: [monitoring] Added support for retriggering notifications in AlertPolicy (#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>
1 parent 09dbd85 commit b1910b1

27 files changed

Lines changed: 16603 additions & 9147 deletions

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

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -556,6 +556,10 @@ public final UnaryCallable<GetAlertPolicyRequest, AlertPolicy> getAlertPolicyCal
556556
/**
557557
* Creates a new alerting policy.
558558
*
559+
* <p>Design your application to single-thread API calls that modify the state of alerting
560+
* policies in a single project. This includes calls to CreateAlertPolicy, DeleteAlertPolicy and
561+
* UpdateAlertPolicy.
562+
*
559563
* <p>Sample code:
560564
*
561565
* <pre>{@code
@@ -598,6 +602,10 @@ public final AlertPolicy createAlertPolicy(ResourceName name, AlertPolicy alertP
598602
/**
599603
* Creates a new alerting policy.
600604
*
605+
* <p>Design your application to single-thread API calls that modify the state of alerting
606+
* policies in a single project. This includes calls to CreateAlertPolicy, DeleteAlertPolicy and
607+
* UpdateAlertPolicy.
608+
*
601609
* <p>Sample code:
602610
*
603611
* <pre>{@code
@@ -640,6 +648,10 @@ public final AlertPolicy createAlertPolicy(OrganizationName name, AlertPolicy al
640648
/**
641649
* Creates a new alerting policy.
642650
*
651+
* <p>Design your application to single-thread API calls that modify the state of alerting
652+
* policies in a single project. This includes calls to CreateAlertPolicy, DeleteAlertPolicy and
653+
* UpdateAlertPolicy.
654+
*
643655
* <p>Sample code:
644656
*
645657
* <pre>{@code
@@ -682,6 +694,10 @@ public final AlertPolicy createAlertPolicy(ProjectName name, AlertPolicy alertPo
682694
/**
683695
* Creates a new alerting policy.
684696
*
697+
* <p>Design your application to single-thread API calls that modify the state of alerting
698+
* policies in a single project. This includes calls to CreateAlertPolicy, DeleteAlertPolicy and
699+
* UpdateAlertPolicy.
700+
*
685701
* <p>Sample code:
686702
*
687703
* <pre>{@code
@@ -721,6 +737,10 @@ public final AlertPolicy createAlertPolicy(String name, AlertPolicy alertPolicy)
721737
/**
722738
* Creates a new alerting policy.
723739
*
740+
* <p>Design your application to single-thread API calls that modify the state of alerting
741+
* policies in a single project. This includes calls to CreateAlertPolicy, DeleteAlertPolicy and
742+
* UpdateAlertPolicy.
743+
*
724744
* <p>Sample code:
725745
*
726746
* <pre>{@code
@@ -750,6 +770,10 @@ public final AlertPolicy createAlertPolicy(CreateAlertPolicyRequest request) {
750770
/**
751771
* Creates a new alerting policy.
752772
*
773+
* <p>Design your application to single-thread API calls that modify the state of alerting
774+
* policies in a single project. This includes calls to CreateAlertPolicy, DeleteAlertPolicy and
775+
* UpdateAlertPolicy.
776+
*
753777
* <p>Sample code:
754778
*
755779
* <pre>{@code
@@ -779,6 +803,10 @@ public final UnaryCallable<CreateAlertPolicyRequest, AlertPolicy> createAlertPol
779803
/**
780804
* Deletes an alerting policy.
781805
*
806+
* <p>Design your application to single-thread API calls that modify the state of alerting
807+
* policies in a single project. This includes calls to CreateAlertPolicy, DeleteAlertPolicy and
808+
* UpdateAlertPolicy.
809+
*
782810
* <p>Sample code:
783811
*
784812
* <pre>{@code
@@ -811,6 +839,10 @@ public final void deleteAlertPolicy(AlertPolicyName name) {
811839
/**
812840
* Deletes an alerting policy.
813841
*
842+
* <p>Design your application to single-thread API calls that modify the state of alerting
843+
* policies in a single project. This includes calls to CreateAlertPolicy, DeleteAlertPolicy and
844+
* UpdateAlertPolicy.
845+
*
814846
* <p>Sample code:
815847
*
816848
* <pre>{@code
@@ -840,6 +872,10 @@ public final void deleteAlertPolicy(String name) {
840872
/**
841873
* Deletes an alerting policy.
842874
*
875+
* <p>Design your application to single-thread API calls that modify the state of alerting
876+
* policies in a single project. This includes calls to CreateAlertPolicy, DeleteAlertPolicy and
877+
* UpdateAlertPolicy.
878+
*
843879
* <p>Sample code:
844880
*
845881
* <pre>{@code
@@ -870,6 +906,10 @@ public final void deleteAlertPolicy(DeleteAlertPolicyRequest request) {
870906
/**
871907
* Deletes an alerting policy.
872908
*
909+
* <p>Design your application to single-thread API calls that modify the state of alerting
910+
* policies in a single project. This includes calls to CreateAlertPolicy, DeleteAlertPolicy and
911+
* UpdateAlertPolicy.
912+
*
873913
* <p>Sample code:
874914
*
875915
* <pre>{@code
@@ -902,6 +942,10 @@ public final UnaryCallable<DeleteAlertPolicyRequest, Empty> deleteAlertPolicyCal
902942
* only certain fields in the current alerting policy by specifying the fields to be updated via
903943
* `updateMask`. Returns the updated alerting policy.
904944
*
945+
* <p>Design your application to single-thread API calls that modify the state of alerting
946+
* policies in a single project. This includes calls to CreateAlertPolicy, DeleteAlertPolicy and
947+
* UpdateAlertPolicy.
948+
*
905949
* <p>Sample code:
906950
*
907951
* <pre>{@code
@@ -952,6 +996,10 @@ public final AlertPolicy updateAlertPolicy(FieldMask updateMask, AlertPolicy ale
952996
* only certain fields in the current alerting policy by specifying the fields to be updated via
953997
* `updateMask`. Returns the updated alerting policy.
954998
*
999+
* <p>Design your application to single-thread API calls that modify the state of alerting
1000+
* policies in a single project. This includes calls to CreateAlertPolicy, DeleteAlertPolicy and
1001+
* UpdateAlertPolicy.
1002+
*
9551003
* <p>Sample code:
9561004
*
9571005
* <pre>{@code
@@ -983,6 +1031,10 @@ public final AlertPolicy updateAlertPolicy(UpdateAlertPolicyRequest request) {
9831031
* only certain fields in the current alerting policy by specifying the fields to be updated via
9841032
* `updateMask`. Returns the updated alerting policy.
9851033
*
1034+
* <p>Design your application to single-thread API calls that modify the state of alerting
1035+
* policies in a single project. This includes calls to CreateAlertPolicy, DeleteAlertPolicy and
1036+
* UpdateAlertPolicy.
1037+
*
9861038
* <p>Sample code:
9871039
*
9881040
* <pre>{@code

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

Lines changed: 66 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -620,7 +620,8 @@ public final NotificationChannelDescriptor getNotificationChannelDescriptor(
620620

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

660661
// AUTO-GENERATED DOCUMENTATION AND METHOD.
661662
/**
662-
* Lists the notification channels that have been created for the project.
663+
* Lists the notification channels that have been created for the project. To list the types of
664+
* notification channels that are supported, use the `ListNotificationChannelDescriptors` method.
663665
*
664666
* <p>Sample code:
665667
*
@@ -699,7 +701,8 @@ public final ListNotificationChannelsPagedResponse listNotificationChannels(
699701

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

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

776780
// AUTO-GENERATED DOCUMENTATION AND METHOD.
777781
/**
778-
* Lists the notification channels that have been created for the project.
782+
* Lists the notification channels that have been created for the project. To list the types of
783+
* notification channels that are supported, use the `ListNotificationChannelDescriptors` method.
779784
*
780785
* <p>Sample code:
781786
*
@@ -812,7 +817,8 @@ public final ListNotificationChannelsPagedResponse listNotificationChannels(
812817

813818
// AUTO-GENERATED DOCUMENTATION AND METHOD.
814819
/**
815-
* Lists the notification channels that have been created for the project.
820+
* Lists the notification channels that have been created for the project. To list the types of
821+
* notification channels that are supported, use the `ListNotificationChannelDescriptors` method.
816822
*
817823
* <p>Sample code:
818824
*
@@ -850,7 +856,8 @@ public final ListNotificationChannelsPagedResponse listNotificationChannels(
850856

851857
// AUTO-GENERATED DOCUMENTATION AND METHOD.
852858
/**
853-
* Lists the notification channels that have been created for the project.
859+
* Lists the notification channels that have been created for the project. To list the types of
860+
* notification channels that are supported, use the `ListNotificationChannelDescriptors` method.
854861
*
855862
* <p>Sample code:
856863
*
@@ -1039,6 +1046,10 @@ public final NotificationChannel getNotificationChannel(GetNotificationChannelRe
10391046
* Creates a new notification channel, representing a single notification endpoint such as an
10401047
* email address, SMS number, or PagerDuty service.
10411048
*
1049+
* <p>Design your application to single-thread API calls that modify the state of notification
1050+
* channels in a single project. This includes calls to CreateNotificationChannel,
1051+
* DeleteNotificationChannel and UpdateNotificationChannel.
1052+
*
10421053
* <p>Sample code:
10431054
*
10441055
* <pre>{@code
@@ -1081,6 +1092,10 @@ public final NotificationChannel createNotificationChannel(
10811092
* Creates a new notification channel, representing a single notification endpoint such as an
10821093
* email address, SMS number, or PagerDuty service.
10831094
*
1095+
* <p>Design your application to single-thread API calls that modify the state of notification
1096+
* channels in a single project. This includes calls to CreateNotificationChannel,
1097+
* DeleteNotificationChannel and UpdateNotificationChannel.
1098+
*
10841099
* <p>Sample code:
10851100
*
10861101
* <pre>{@code
@@ -1123,6 +1138,10 @@ public final NotificationChannel createNotificationChannel(
11231138
* Creates a new notification channel, representing a single notification endpoint such as an
11241139
* email address, SMS number, or PagerDuty service.
11251140
*
1141+
* <p>Design your application to single-thread API calls that modify the state of notification
1142+
* channels in a single project. This includes calls to CreateNotificationChannel,
1143+
* DeleteNotificationChannel and UpdateNotificationChannel.
1144+
*
11261145
* <p>Sample code:
11271146
*
11281147
* <pre>{@code
@@ -1165,6 +1184,10 @@ public final NotificationChannel createNotificationChannel(
11651184
* Creates a new notification channel, representing a single notification endpoint such as an
11661185
* email address, SMS number, or PagerDuty service.
11671186
*
1187+
* <p>Design your application to single-thread API calls that modify the state of notification
1188+
* channels in a single project. This includes calls to CreateNotificationChannel,
1189+
* DeleteNotificationChannel and UpdateNotificationChannel.
1190+
*
11681191
* <p>Sample code:
11691192
*
11701193
* <pre>{@code
@@ -1207,6 +1230,10 @@ public final NotificationChannel createNotificationChannel(
12071230
* Creates a new notification channel, representing a single notification endpoint such as an
12081231
* email address, SMS number, or PagerDuty service.
12091232
*
1233+
* <p>Design your application to single-thread API calls that modify the state of notification
1234+
* channels in a single project. This includes calls to CreateNotificationChannel,
1235+
* DeleteNotificationChannel and UpdateNotificationChannel.
1236+
*
12101237
* <p>Sample code:
12111238
*
12121239
* <pre>{@code
@@ -1240,6 +1267,10 @@ public final NotificationChannel createNotificationChannel(
12401267
* Creates a new notification channel, representing a single notification endpoint such as an
12411268
* email address, SMS number, or PagerDuty service.
12421269
*
1270+
* <p>Design your application to single-thread API calls that modify the state of notification
1271+
* channels in a single project. This includes calls to CreateNotificationChannel,
1272+
* DeleteNotificationChannel and UpdateNotificationChannel.
1273+
*
12431274
* <p>Sample code:
12441275
*
12451276
* <pre>{@code
@@ -1271,6 +1302,10 @@ public final NotificationChannel createNotificationChannel(
12711302
/**
12721303
* Updates a notification channel. Fields not specified in the field mask remain unchanged.
12731304
*
1305+
* <p>Design your application to single-thread API calls that modify the state of notification
1306+
* channels in a single project. This includes calls to CreateNotificationChannel,
1307+
* DeleteNotificationChannel and UpdateNotificationChannel.
1308+
*
12741309
* <p>Sample code:
12751310
*
12761311
* <pre>{@code
@@ -1309,6 +1344,10 @@ public final NotificationChannel updateNotificationChannel(
13091344
/**
13101345
* Updates a notification channel. Fields not specified in the field mask remain unchanged.
13111346
*
1347+
* <p>Design your application to single-thread API calls that modify the state of notification
1348+
* channels in a single project. This includes calls to CreateNotificationChannel,
1349+
* DeleteNotificationChannel and UpdateNotificationChannel.
1350+
*
13121351
* <p>Sample code:
13131352
*
13141353
* <pre>{@code
@@ -1341,6 +1380,10 @@ public final NotificationChannel updateNotificationChannel(
13411380
/**
13421381
* Updates a notification channel. Fields not specified in the field mask remain unchanged.
13431382
*
1383+
* <p>Design your application to single-thread API calls that modify the state of notification
1384+
* channels in a single project. This includes calls to CreateNotificationChannel,
1385+
* DeleteNotificationChannel and UpdateNotificationChannel.
1386+
*
13441387
* <p>Sample code:
13451388
*
13461389
* <pre>{@code
@@ -1372,6 +1415,10 @@ public final NotificationChannel updateNotificationChannel(
13721415
/**
13731416
* Deletes a notification channel.
13741417
*
1418+
* <p>Design your application to single-thread API calls that modify the state of notification
1419+
* channels in a single project. This includes calls to CreateNotificationChannel,
1420+
* DeleteNotificationChannel and UpdateNotificationChannel.
1421+
*
13751422
* <p>Sample code:
13761423
*
13771424
* <pre>{@code
@@ -1411,6 +1458,10 @@ public final void deleteNotificationChannel(NotificationChannelName name, boolea
14111458
/**
14121459
* Deletes a notification channel.
14131460
*
1461+
* <p>Design your application to single-thread API calls that modify the state of notification
1462+
* channels in a single project. This includes calls to CreateNotificationChannel,
1463+
* DeleteNotificationChannel and UpdateNotificationChannel.
1464+
*
14141465
* <p>Sample code:
14151466
*
14161467
* <pre>{@code
@@ -1448,6 +1499,10 @@ public final void deleteNotificationChannel(String name, boolean force) {
14481499
/**
14491500
* Deletes a notification channel.
14501501
*
1502+
* <p>Design your application to single-thread API calls that modify the state of notification
1503+
* channels in a single project. This includes calls to CreateNotificationChannel,
1504+
* DeleteNotificationChannel and UpdateNotificationChannel.
1505+
*
14511506
* <p>Sample code:
14521507
*
14531508
* <pre>{@code
@@ -1481,6 +1536,10 @@ public final void deleteNotificationChannel(DeleteNotificationChannelRequest req
14811536
/**
14821537
* Deletes a notification channel.
14831538
*
1539+
* <p>Design your application to single-thread API calls that modify the state of notification
1540+
* channels in a single project. This includes calls to CreateNotificationChannel,
1541+
* DeleteNotificationChannel and UpdateNotificationChannel.
1542+
*
14841543
* <p>Sample code:
14851544
*
14861545
* <pre>{@code

0 commit comments

Comments
 (0)