Skip to content
This repository was archived by the owner on Oct 2, 2023. It is now read-only.

Commit bdfc556

Browse files
feat: Added support for user-defined labels on cloud monitoring's Service and ServiceLevelObjective objects (#663)
This PR was generated using Autosynth. 🌈 Synth log will be available here: https://source.cloud.google.com/results/invocations/4d3ccb2e-d627-413c-8553-abfae39b7ca7/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) PiperOrigin-RevId: 393200011 Source-Link: googleapis/googleapis@354d076 feat: Added support for logs-based alerts: https://cloud.google.com/logging/docs/alerting/log-based-alerts fix: mark required fields in QueryTimeSeriesRequest as required feat: add CreateServiceTimeSeries RPC docs: fix typo in alert.proto fix: Reintroduce deprecated field/enum for backward compatibility
1 parent 706b654 commit bdfc556

File tree

136 files changed

+9017
-3592
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

136 files changed

+9017
-3592
lines changed

README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file
1919
<dependency>
2020
<groupId>com.google.cloud</groupId>
2121
<artifactId>libraries-bom</artifactId>
22-
<version>22.0.0</version>
22+
<version>23.0.0</version>
2323
<type>pom</type>
2424
<scope>import</scope>
2525
</dependency>
@@ -42,28 +42,28 @@ If you are using Maven without BOM, add this to your dependencies:
4242
<dependency>
4343
<groupId>com.google.cloud</groupId>
4444
<artifactId>google-cloud-monitoring</artifactId>
45-
<version>3.0.4-SNAPSHOT</version>
45+
<version>3.0.5-SNAPSHOT</version>
4646
</dependency>
4747

4848
```
4949

5050
If you are using Gradle 5.x or later, add this to your dependencies
5151

5252
```Groovy
53-
implementation platform('com.google.cloud:libraries-bom:22.0.0')
53+
implementation platform('com.google.cloud:libraries-bom:23.1.0')
5454
5555
implementation 'com.google.cloud:google-cloud-monitoring'
5656
```
5757
If you are using Gradle without BOM, add this to your dependencies
5858

5959
```Groovy
60-
implementation 'com.google.cloud:google-cloud-monitoring:3.0.3'
60+
implementation 'com.google.cloud:google-cloud-monitoring:3.0.7'
6161
```
6262

6363
If you are using SBT, add this to your dependencies
6464

6565
```Scala
66-
libraryDependencies += "com.google.cloud" % "google-cloud-monitoring" % "3.0.3"
66+
libraryDependencies += "com.google.cloud" % "google-cloud-monitoring" % "3.0.7"
6767
```
6868

6969
## Authentication

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

+16-8
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,8 @@ public AlertPolicyServiceStub getStub() {
183183
* }
184184
* }</pre>
185185
*
186-
* @param name Required. The project whose alert policies are to be listed. The format is:
186+
* @param name Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name)
187+
* whose alert policies are to be listed. The format is:
187188
* <p>projects/[PROJECT_ID_OR_NUMBER]
188189
* <p>Note that this field names the parent container in which the alerting policies to be
189190
* listed are stored. To retrieve a single alerting policy by name, use the
@@ -214,7 +215,8 @@ public final ListAlertPoliciesPagedResponse listAlertPolicies(ResourceName name)
214215
* }
215216
* }</pre>
216217
*
217-
* @param name Required. The project whose alert policies are to be listed. The format is:
218+
* @param name Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name)
219+
* whose alert policies are to be listed. The format is:
218220
* <p>projects/[PROJECT_ID_OR_NUMBER]
219221
* <p>Note that this field names the parent container in which the alerting policies to be
220222
* listed are stored. To retrieve a single alerting policy by name, use the
@@ -245,7 +247,8 @@ public final ListAlertPoliciesPagedResponse listAlertPolicies(OrganizationName n
245247
* }
246248
* }</pre>
247249
*
248-
* @param name Required. The project whose alert policies are to be listed. The format is:
250+
* @param name Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name)
251+
* whose alert policies are to be listed. The format is:
249252
* <p>projects/[PROJECT_ID_OR_NUMBER]
250253
* <p>Note that this field names the parent container in which the alerting policies to be
251254
* listed are stored. To retrieve a single alerting policy by name, use the
@@ -277,7 +280,8 @@ public final ListAlertPoliciesPagedResponse listAlertPolicies(ProjectName name)
277280
* }
278281
* }</pre>
279282
*
280-
* @param name Required. The project whose alert policies are to be listed. The format is:
283+
* @param name Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name)
284+
* whose alert policies are to be listed. The format is:
281285
* <p>projects/[PROJECT_ID_OR_NUMBER]
282286
* <p>Note that this field names the parent container in which the alerting policies to be
283287
* listed are stored. To retrieve a single alerting policy by name, use the
@@ -503,7 +507,8 @@ public final UnaryCallable<GetAlertPolicyRequest, AlertPolicy> getAlertPolicyCal
503507
* }
504508
* }</pre>
505509
*
506-
* @param name Required. The project in which to create the alerting policy. The format is:
510+
* @param name Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) in
511+
* which to create the alerting policy. The format is:
507512
* <p>projects/[PROJECT_ID_OR_NUMBER]
508513
* <p>Note that this field names the parent container in which the alerting policy will be
509514
* written, not the name of the created policy. |name| must be a host project of a workspace,
@@ -539,7 +544,8 @@ public final AlertPolicy createAlertPolicy(ResourceName name, AlertPolicy alertP
539544
* }
540545
* }</pre>
541546
*
542-
* @param name Required. The project in which to create the alerting policy. The format is:
547+
* @param name Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) in
548+
* which to create the alerting policy. The format is:
543549
* <p>projects/[PROJECT_ID_OR_NUMBER]
544550
* <p>Note that this field names the parent container in which the alerting policy will be
545551
* written, not the name of the created policy. |name| must be a host project of a workspace,
@@ -575,7 +581,8 @@ public final AlertPolicy createAlertPolicy(OrganizationName name, AlertPolicy al
575581
* }
576582
* }</pre>
577583
*
578-
* @param name Required. The project in which to create the alerting policy. The format is:
584+
* @param name Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) in
585+
* which to create the alerting policy. The format is:
579586
* <p>projects/[PROJECT_ID_OR_NUMBER]
580587
* <p>Note that this field names the parent container in which the alerting policy will be
581588
* written, not the name of the created policy. |name| must be a host project of a workspace,
@@ -612,7 +619,8 @@ public final AlertPolicy createAlertPolicy(ProjectName name, AlertPolicy alertPo
612619
* }
613620
* }</pre>
614621
*
615-
* @param name Required. The project in which to create the alerting policy. The format is:
622+
* @param name Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) in
623+
* which to create the alerting policy. The format is:
616624
* <p>projects/[PROJECT_ID_OR_NUMBER]
617625
* <p>Note that this field names the parent container in which the alerting policy will be
618626
* written, not the name of the created policy. |name| must be a host project of a workspace,

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

+16-8
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,8 @@ public GroupServiceStub getStub() {
183183
* }
184184
* }</pre>
185185
*
186-
* @param name Required. The project whose groups are to be listed. The format is:
186+
* @param name Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name)
187+
* whose groups are to be listed. The format is:
187188
* <p>projects/[PROJECT_ID_OR_NUMBER]
188189
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
189190
*/
@@ -208,7 +209,8 @@ public final ListGroupsPagedResponse listGroups(ResourceName name) {
208209
* }
209210
* }</pre>
210211
*
211-
* @param name Required. The project whose groups are to be listed. The format is:
212+
* @param name Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name)
213+
* whose groups are to be listed. The format is:
212214
* <p>projects/[PROJECT_ID_OR_NUMBER]
213215
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
214216
*/
@@ -233,7 +235,8 @@ public final ListGroupsPagedResponse listGroups(OrganizationName name) {
233235
* }
234236
* }</pre>
235237
*
236-
* @param name Required. The project whose groups are to be listed. The format is:
238+
* @param name Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name)
239+
* whose groups are to be listed. The format is:
237240
* <p>projects/[PROJECT_ID_OR_NUMBER]
238241
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
239242
*/
@@ -258,7 +261,8 @@ public final ListGroupsPagedResponse listGroups(ProjectName name) {
258261
* }
259262
* }</pre>
260263
*
261-
* @param name Required. The project whose groups are to be listed. The format is:
264+
* @param name Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name)
265+
* whose groups are to be listed. The format is:
262266
* <p>projects/[PROJECT_ID_OR_NUMBER]
263267
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
264268
*/
@@ -457,7 +461,8 @@ public final UnaryCallable<GetGroupRequest, Group> getGroupCallable() {
457461
* }
458462
* }</pre>
459463
*
460-
* @param name Required. The project in which to create the group. The format is:
464+
* @param name Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) in
465+
* which to create the group. The format is:
461466
* <p>projects/[PROJECT_ID_OR_NUMBER]
462467
* @param group Required. A group definition. It is an error to define the `name` field because
463468
* the system assigns the name.
@@ -486,7 +491,8 @@ public final Group createGroup(ResourceName name, Group group) {
486491
* }
487492
* }</pre>
488493
*
489-
* @param name Required. The project in which to create the group. The format is:
494+
* @param name Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) in
495+
* which to create the group. The format is:
490496
* <p>projects/[PROJECT_ID_OR_NUMBER]
491497
* @param group Required. A group definition. It is an error to define the `name` field because
492498
* the system assigns the name.
@@ -515,7 +521,8 @@ public final Group createGroup(OrganizationName name, Group group) {
515521
* }
516522
* }</pre>
517523
*
518-
* @param name Required. The project in which to create the group. The format is:
524+
* @param name Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) in
525+
* which to create the group. The format is:
519526
* <p>projects/[PROJECT_ID_OR_NUMBER]
520527
* @param group Required. A group definition. It is an error to define the `name` field because
521528
* the system assigns the name.
@@ -544,7 +551,8 @@ public final Group createGroup(ProjectName name, Group group) {
544551
* }
545552
* }</pre>
546553
*
547-
* @param name Required. The project in which to create the group. The format is:
554+
* @param name Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) in
555+
* which to create the group. The format is:
548556
* <p>projects/[PROJECT_ID_OR_NUMBER]
549557
* @param group Required. A group definition. It is an error to define the `name` field because
550558
* the system assigns the name.

0 commit comments

Comments
 (0)