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

Commit

Permalink
feat: Added support for user-defined labels on cloud monitoring's Ser…
Browse files Browse the repository at this point in the history
…vice 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
  • Loading branch information
yoshi-automation committed Oct 19, 2021
1 parent 706b654 commit bdfc556
Show file tree
Hide file tree
Showing 136 changed files with 9,017 additions and 3,592 deletions.
10 changes: 5 additions & 5 deletions README.md
Expand Up @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>libraries-bom</artifactId>
<version>22.0.0</version>
<version>23.0.0</version>
<type>pom</type>
<scope>import</scope>
</dependency>
Expand All @@ -42,28 +42,28 @@ If you are using Maven without BOM, add this to your dependencies:
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-monitoring</artifactId>
<version>3.0.4-SNAPSHOT</version>
<version>3.0.5-SNAPSHOT</version>
</dependency>

```

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

```Groovy
implementation platform('com.google.cloud:libraries-bom:22.0.0')
implementation platform('com.google.cloud:libraries-bom:23.1.0')
implementation 'com.google.cloud:google-cloud-monitoring'
```
If you are using Gradle without BOM, add this to your dependencies

```Groovy
implementation 'com.google.cloud:google-cloud-monitoring:3.0.3'
implementation 'com.google.cloud:google-cloud-monitoring:3.0.7'
```

If you are using SBT, add this to your dependencies

```Scala
libraryDependencies += "com.google.cloud" % "google-cloud-monitoring" % "3.0.3"
libraryDependencies += "com.google.cloud" % "google-cloud-monitoring" % "3.0.7"
```

## Authentication
Expand Down
Expand Up @@ -183,7 +183,8 @@ public AlertPolicyServiceStub getStub() {
* }
* }</pre>
*
* @param name Required. The project whose alert policies are to be listed. The format is:
* @param name Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name)
* whose alert policies are to be listed. The format is:
* <p>projects/[PROJECT_ID_OR_NUMBER]
* <p>Note that this field names the parent container in which the alerting policies to be
* listed are stored. To retrieve a single alerting policy by name, use the
Expand Down Expand Up @@ -214,7 +215,8 @@ public final ListAlertPoliciesPagedResponse listAlertPolicies(ResourceName name)
* }
* }</pre>
*
* @param name Required. The project whose alert policies are to be listed. The format is:
* @param name Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name)
* whose alert policies are to be listed. The format is:
* <p>projects/[PROJECT_ID_OR_NUMBER]
* <p>Note that this field names the parent container in which the alerting policies to be
* listed are stored. To retrieve a single alerting policy by name, use the
Expand Down Expand Up @@ -245,7 +247,8 @@ public final ListAlertPoliciesPagedResponse listAlertPolicies(OrganizationName n
* }
* }</pre>
*
* @param name Required. The project whose alert policies are to be listed. The format is:
* @param name Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name)
* whose alert policies are to be listed. The format is:
* <p>projects/[PROJECT_ID_OR_NUMBER]
* <p>Note that this field names the parent container in which the alerting policies to be
* listed are stored. To retrieve a single alerting policy by name, use the
Expand Down Expand Up @@ -277,7 +280,8 @@ public final ListAlertPoliciesPagedResponse listAlertPolicies(ProjectName name)
* }
* }</pre>
*
* @param name Required. The project whose alert policies are to be listed. The format is:
* @param name Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name)
* whose alert policies are to be listed. The format is:
* <p>projects/[PROJECT_ID_OR_NUMBER]
* <p>Note that this field names the parent container in which the alerting policies to be
* listed are stored. To retrieve a single alerting policy by name, use the
Expand Down Expand Up @@ -503,7 +507,8 @@ public final UnaryCallable<GetAlertPolicyRequest, AlertPolicy> getAlertPolicyCal
* }
* }</pre>
*
* @param name Required. The project in which to create the alerting policy. The format is:
* @param name Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) in
* 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,
Expand Down Expand Up @@ -539,7 +544,8 @@ public final AlertPolicy createAlertPolicy(ResourceName name, AlertPolicy alertP
* }
* }</pre>
*
* @param name Required. The project in which to create the alerting policy. The format is:
* @param name Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) in
* 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,
Expand Down Expand Up @@ -575,7 +581,8 @@ public final AlertPolicy createAlertPolicy(OrganizationName name, AlertPolicy al
* }
* }</pre>
*
* @param name Required. The project in which to create the alerting policy. The format is:
* @param name Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) in
* 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,
Expand Down Expand Up @@ -612,7 +619,8 @@ public final AlertPolicy createAlertPolicy(ProjectName name, AlertPolicy alertPo
* }
* }</pre>
*
* @param name Required. The project in which to create the alerting policy. The format is:
* @param name Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) in
* 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,
Expand Down
Expand Up @@ -183,7 +183,8 @@ public GroupServiceStub getStub() {
* }
* }</pre>
*
* @param name Required. The project whose groups are to be listed. The format is:
* @param name Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name)
* whose groups are to be listed. The format is:
* <p>projects/[PROJECT_ID_OR_NUMBER]
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
Expand All @@ -208,7 +209,8 @@ public final ListGroupsPagedResponse listGroups(ResourceName name) {
* }
* }</pre>
*
* @param name Required. The project whose groups are to be listed. The format is:
* @param name Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name)
* whose groups are to be listed. The format is:
* <p>projects/[PROJECT_ID_OR_NUMBER]
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
Expand All @@ -233,7 +235,8 @@ public final ListGroupsPagedResponse listGroups(OrganizationName name) {
* }
* }</pre>
*
* @param name Required. The project whose groups are to be listed. The format is:
* @param name Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name)
* whose groups are to be listed. The format is:
* <p>projects/[PROJECT_ID_OR_NUMBER]
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
Expand All @@ -258,7 +261,8 @@ public final ListGroupsPagedResponse listGroups(ProjectName name) {
* }
* }</pre>
*
* @param name Required. The project whose groups are to be listed. The format is:
* @param name Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name)
* whose groups are to be listed. The format is:
* <p>projects/[PROJECT_ID_OR_NUMBER]
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
Expand Down Expand Up @@ -457,7 +461,8 @@ public final UnaryCallable<GetGroupRequest, Group> getGroupCallable() {
* }
* }</pre>
*
* @param name Required. The project in which to create the group. The format is:
* @param name Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) in
* which to create the group. The format is:
* <p>projects/[PROJECT_ID_OR_NUMBER]
* @param group Required. A group definition. It is an error to define the `name` field because
* the system assigns the name.
Expand Down Expand Up @@ -486,7 +491,8 @@ public final Group createGroup(ResourceName name, Group group) {
* }
* }</pre>
*
* @param name Required. The project in which to create the group. The format is:
* @param name Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) in
* which to create the group. The format is:
* <p>projects/[PROJECT_ID_OR_NUMBER]
* @param group Required. A group definition. It is an error to define the `name` field because
* the system assigns the name.
Expand Down Expand Up @@ -515,7 +521,8 @@ public final Group createGroup(OrganizationName name, Group group) {
* }
* }</pre>
*
* @param name Required. The project in which to create the group. The format is:
* @param name Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) in
* which to create the group. The format is:
* <p>projects/[PROJECT_ID_OR_NUMBER]
* @param group Required. A group definition. It is an error to define the `name` field because
* the system assigns the name.
Expand Down Expand Up @@ -544,7 +551,8 @@ public final Group createGroup(ProjectName name, Group group) {
* }
* }</pre>
*
* @param name Required. The project in which to create the group. The format is:
* @param name Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) in
* which to create the group. The format is:
* <p>projects/[PROJECT_ID_OR_NUMBER]
* @param group Required. A group definition. It is an error to define the `name` field because
* the system assigns the name.
Expand Down

0 comments on commit bdfc556

Please sign in to comment.