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

feat: Added support for user-defined labels on cloud monitoring's Service and ServiceLevelObjective objects #663

Merged
merged 4 commits into from Oct 19, 2021
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
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