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 2 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
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
Expand Up @@ -188,7 +188,8 @@ public MetricServiceStub getStub() {
* }
* }</pre>
*
* @param name Required. The project on which to execute the request. The format is:
* @param name Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
* which to execute the request. 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 @@ -218,7 +219,8 @@ public final ListMonitoredResourceDescriptorsPagedResponse listMonitoredResource
* }
* }</pre>
*
* @param name Required. The project on which to execute the request. The format is:
* @param name Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
* which to execute the request. 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 @@ -248,7 +250,8 @@ public final ListMonitoredResourceDescriptorsPagedResponse listMonitoredResource
* }
* }</pre>
*
* @param name Required. The project on which to execute the request. The format is:
* @param name Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
* which to execute the request. 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 @@ -281,7 +284,8 @@ public final ListMonitoredResourceDescriptorsPagedResponse listMonitoredResource
* }
* }</pre>
*
* @param name Required. The project on which to execute the request. The format is:
* @param name Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
* which to execute the request. 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 @@ -530,7 +534,8 @@ public final MonitoredResourceDescriptor getMonitoredResourceDescriptor(
* }
* }</pre>
*
* @param name Required. The project on which to execute the request. The format is:
* @param name Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
* which to execute the request. 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 @@ -558,7 +563,8 @@ public final ListMetricDescriptorsPagedResponse listMetricDescriptors(ResourceNa
* }
* }</pre>
*
* @param name Required. The project on which to execute the request. The format is:
* @param name Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
* which to execute the request. 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 @@ -586,7 +592,8 @@ public final ListMetricDescriptorsPagedResponse listMetricDescriptors(Organizati
* }
* }</pre>
*
* @param name Required. The project on which to execute the request. The format is:
* @param name Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
* which to execute the request. 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 @@ -616,7 +623,8 @@ public final ListMetricDescriptorsPagedResponse listMetricDescriptors(ProjectNam
* }
* }</pre>
*
* @param name Required. The project on which to execute the request. The format is:
* @param name Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
* which to execute the request. 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 @@ -854,8 +862,8 @@ public final MetricDescriptor getMetricDescriptor(GetMetricDescriptorRequest req
* }
* }</pre>
*
* @param name Required. The project on which to execute the request. The format is:
* <p>projects/[PROJECT_ID_OR_NUMBER]
* @param name Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
* which to execute the request. The format is: 4 projects/[PROJECT_ID_OR_NUMBER]
* @param metricDescriptor Required. The new [custom
* metric](https://cloud.google.com/monitoring/custom-metrics) descriptor.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
Expand Down Expand Up @@ -886,8 +894,8 @@ public final MetricDescriptor createMetricDescriptor(
* }
* }</pre>
*
* @param name Required. The project on which to execute the request. The format is:
* <p>projects/[PROJECT_ID_OR_NUMBER]
* @param name Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
* which to execute the request. The format is: 4 projects/[PROJECT_ID_OR_NUMBER]
* @param metricDescriptor Required. The new [custom
* metric](https://cloud.google.com/monitoring/custom-metrics) descriptor.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
Expand Down Expand Up @@ -918,8 +926,8 @@ public final MetricDescriptor createMetricDescriptor(
* }
* }</pre>
*
* @param name Required. The project on which to execute the request. The format is:
* <p>projects/[PROJECT_ID_OR_NUMBER]
* @param name Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
* which to execute the request. The format is: 4 projects/[PROJECT_ID_OR_NUMBER]
* @param metricDescriptor Required. The new [custom
* metric](https://cloud.google.com/monitoring/custom-metrics) descriptor.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
Expand Down Expand Up @@ -952,8 +960,8 @@ public final MetricDescriptor createMetricDescriptor(
* }
* }</pre>
*
* @param name Required. The project on which to execute the request. The format is:
* <p>projects/[PROJECT_ID_OR_NUMBER]
* @param name Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
* which to execute the request. The format is: 4 projects/[PROJECT_ID_OR_NUMBER]
* @param metricDescriptor Required. The new [custom
* metric](https://cloud.google.com/monitoring/custom-metrics) descriptor.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
Expand Down Expand Up @@ -1154,8 +1162,8 @@ public final void deleteMetricDescriptor(DeleteMetricDescriptorRequest request)
* }
* }</pre>
*
* @param name Required. The project, organization or folder on which to execute the request. The
* format is:
* @param name Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name),
* organization or folder on which to execute the request. The format is:
* <p>projects/[PROJECT_ID_OR_NUMBER] organizations/[ORGANIZATION_ID] folders/[FOLDER_ID]
* @param filter Required. A [monitoring
* filter](https://cloud.google.com/monitoring/api/v3/filters) that specifies which time
Expand Down Expand Up @@ -1202,8 +1210,8 @@ public final ListTimeSeriesPagedResponse listTimeSeries(
* }
* }</pre>
*
* @param name Required. The project, organization or folder on which to execute the request. The
* format is:
* @param name Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name),
* organization or folder on which to execute the request. The format is:
* <p>projects/[PROJECT_ID_OR_NUMBER] organizations/[ORGANIZATION_ID] folders/[FOLDER_ID]
* @param filter Required. A [monitoring
* filter](https://cloud.google.com/monitoring/api/v3/filters) that specifies which time
Expand Down Expand Up @@ -1250,8 +1258,8 @@ public final ListTimeSeriesPagedResponse listTimeSeries(
* }
* }</pre>
*
* @param name Required. The project, organization or folder on which to execute the request. The
* format is:
* @param name Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name),
* organization or folder on which to execute the request. The format is:
* <p>projects/[PROJECT_ID_OR_NUMBER] organizations/[ORGANIZATION_ID] folders/[FOLDER_ID]
* @param filter Required. A [monitoring
* filter](https://cloud.google.com/monitoring/api/v3/filters) that specifies which time
Expand Down Expand Up @@ -1298,8 +1306,8 @@ public final ListTimeSeriesPagedResponse listTimeSeries(
* }
* }</pre>
*
* @param name Required. The project, organization or folder on which to execute the request. The
* format is:
* @param name Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name),
* organization or folder on which to execute the request. The format is:
* <p>projects/[PROJECT_ID_OR_NUMBER] organizations/[ORGANIZATION_ID] folders/[FOLDER_ID]
* @param filter Required. A [monitoring
* filter](https://cloud.google.com/monitoring/api/v3/filters) that specifies which time
Expand Down Expand Up @@ -1451,7 +1459,8 @@ public final ListTimeSeriesPagedResponse listTimeSeries(ListTimeSeriesRequest re
* }
* }</pre>
*
* @param name Required. The project on which to execute the request. The format is:
* @param name Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
* which to execute the request. The format is:
* <p>projects/[PROJECT_ID_OR_NUMBER]
* @param timeSeries Required. The new data to be added to a list of time series. Adds at most one
* data point to each of several time series. The new data point must be more recent than any
Expand Down Expand Up @@ -1485,7 +1494,8 @@ public final void createTimeSeries(ProjectName name, List<TimeSeries> timeSeries
* }
* }</pre>
*
* @param name Required. The project on which to execute the request. The format is:
* @param name Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
* which to execute the request. The format is:
* <p>projects/[PROJECT_ID_OR_NUMBER]
* @param timeSeries Required. The new data to be added to a list of time series. Adds at most one
* data point to each of several time series. The new data point must be more recent than any
Expand Down