Service Client: Google::Monitoring::V3::ServiceService::ServiceMonitoringServiceClient
Client stub representing the remote ServiceMonitoringService gRPC service. Delegates call dispatching to Google::gRPC::Client.
target
The endpoint target address. Defaults to monitoring.googleapis.com:443.
credentials
The authentication credentials provider. Defaults to application default credentials via Google::Auth.
NAME
Google::Monitoring::V3::ServiceService - Compiled Protocol Buffers messages for google/monitoring/v3/service_service.proto
SYNOPSIS
use Google::Monitoring::V3::ServiceService;
my $msg = Google::Monitoring::V3::ServiceService::CreateServiceRequest->new({
parent => $parent,
service_id => $service_id,
service => $service,
});
# Read or update a field
my $val = $msg->parent();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Monitoring::V3::ServiceService::CreateServiceRequest->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/monitoring/v3/service_service.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().
MESSAGES
Google::Monitoring::V3::ServiceService::CreateServiceRequest
The `CreateService` request.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. Resource [name](https://cloud.google.com/monitoring/api/v3#project_name) of the parent Metrics Scope. The format is:
projects/[PROJECT_ID_OR_NUMBER]$msg->service_id()/$msg->service_id($value)Type:
StringOptional. The Service id to use for this Service. If omitted, an id will be generated instead. Must match the pattern `[a-z0-9\-]+`
$msg->service()/$msg->service($value)Type:
Message(Google::Monitoring::V3::Service::Service)Required. The `Service` to create.
Google::Monitoring::V3::ServiceService::GetServiceRequest
The `GetService` request.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. Resource name of the `Service`. The format is:
projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
Google::Monitoring::V3::ServiceService::ListServicesRequest
The `ListServices` request.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. Resource name of the parent containing the listed services, either a [project](https://cloud.google.com/monitoring/api/v3#project_name) or a Monitoring Metrics Scope. The formats are:
projects/[PROJECT_ID_OR_NUMBER] workspaces/[HOST_PROJECT_ID_OR_NUMBER]$msg->filter()/$msg->filter($value)Type:
StringA filter specifying what `Service`s to return. The filter supports filtering on a particular service-identifier type or one of its attributes.
To filter on a particular service-identifier type, the `identifier_case` refers to which option in the `identifier` field is populated. For example, the filter `identifier_case = "CUSTOM"` would match all services with a value for the `custom` field. Valid options include "CUSTOM", "APP_ENGINE", "MESH_ISTIO", and the other options listed at https://cloud.google.com/monitoring/api/ref_v3/rest/v3/services#Service
To filter on an attribute of a service-identifier type, apply the filter name by using the snake case of the service-identifier type and the attribute of that service-identifier type, and join the two with a period. For example, to filter by the `meshUid` field of the `MeshIstio` service-identifier type, you must filter on `mesh_istio.mesh_uid = "123"` to match all services with mesh UID "123". Service-identifier types and their attributes are described at https://cloud.google.com/monitoring/api/ref_v3/rest/v3/services#Service
$msg->page_size()/$msg->page_size($value)Type:
Int32A non-negative number that is the maximum number of results to return. When 0, use default page size.
$msg->page_token()/$msg->page_token($value)Type:
StringIf this field is not empty then it must contain the `nextPageToken` value returned by a previous call to this method. Using this field causes the method to return additional results from the previous method call.
Google::Monitoring::V3::ServiceService::ListServicesResponse
The `ListServices` response.
Inherits from Protobuf::Message.
Accessors
$msg->services()/$msg->services($value)Type:
Message(Google::Monitoring::V3::Service::Service)The `Service`s matching the specified filter.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringIf there are more results than have been returned, then this field is set to a non-empty value. To see the additional results, use that value as `page_token` in the next call to this method.
Google::Monitoring::V3::ServiceService::UpdateServiceRequest
The `UpdateService` request.
Inherits from Protobuf::Message.
Accessors
$msg->service()/$msg->service($value)Type:
Message(Google::Monitoring::V3::Service::Service)Required. The `Service` to draw updates from. The given `name` specifies the resource to update.
$msg->update_mask()/$msg->update_mask($value)Type:
Message(Google::Protobuf::FieldMask::FieldMask)A set of field paths defining which fields to use for the update.
Google::Monitoring::V3::ServiceService::DeleteServiceRequest
The `DeleteService` request.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. Resource name of the `Service` to delete. The format is:
projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
Google::Monitoring::V3::ServiceService::CreateServiceLevelObjectiveRequest
The `CreateServiceLevelObjective` request.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. Resource name of the parent `Service`. The format is:
projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]$msg->service_level_objective_id()/$msg->service_level_objective_id($value)Type:
StringOptional. The ServiceLevelObjective id to use for this ServiceLevelObjective. If omitted, an id will be generated instead. Must match the pattern `^[a-zA-Z0-9-_:.]+$`
$msg->service_level_objective()/$msg->service_level_objective($value)Type:
Message(Google::Monitoring::V3::Service::ServiceLevelObjective)Required. The `ServiceLevelObjective` to create. The provided `name` will be respected if no `ServiceLevelObjective` exists with this name.
Google::Monitoring::V3::ServiceService::GetServiceLevelObjectiveRequest
The `GetServiceLevelObjective` request.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. Resource name of the `ServiceLevelObjective` to get. The format is:
projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME]$msg->view()/$msg->view($value)Type:
Enum(Google::Monitoring::V3::ServiceLevelObjective::View)View of the `ServiceLevelObjective` to return. If `DEFAULT`, return the `ServiceLevelObjective` as originally defined. If `EXPLICIT` and the `ServiceLevelObjective` is defined in terms of a `BasicSli`, replace the `BasicSli` with a `RequestBasedSli` spelling out how the SLI is computed.
Google::Monitoring::V3::ServiceService::ListServiceLevelObjectivesRequest
The `ListServiceLevelObjectives` request.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. Resource name of the parent containing the listed SLOs, either a project or a Monitoring Metrics Scope. The formats are:
projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID] workspaces/[HOST_PROJECT_ID_OR_NUMBER]/services/-$msg->filter()/$msg->filter($value)Type:
StringA filter specifying what `ServiceLevelObjective`s to return.
$msg->page_size()/$msg->page_size($value)Type:
Int32A non-negative number that is the maximum number of results to return. When 0, use default page size.
$msg->page_token()/$msg->page_token($value)Type:
StringIf this field is not empty then it must contain the `nextPageToken` value returned by a previous call to this method. Using this field causes the method to return additional results from the previous method call.
$msg->view()/$msg->view($value)Type:
Enum(Google::Monitoring::V3::ServiceLevelObjective::View)View of the `ServiceLevelObjective`s to return. If `DEFAULT`, return each `ServiceLevelObjective` as originally defined. If `EXPLICIT` and the `ServiceLevelObjective` is defined in terms of a `BasicSli`, replace the `BasicSli` with a `RequestBasedSli` spelling out how the SLI is computed.
Google::Monitoring::V3::ServiceService::ListServiceLevelObjectivesResponse
The `ListServiceLevelObjectives` response.
Inherits from Protobuf::Message.
Accessors
$msg->service_level_objectives()/$msg->service_level_objectives($value)Type:
Message(Google::Monitoring::V3::Service::ServiceLevelObjective)The `ServiceLevelObjective`s matching the specified filter.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringIf there are more results than have been returned, then this field is set to a non-empty value. To see the additional results, use that value as `page_token` in the next call to this method.
Google::Monitoring::V3::ServiceService::UpdateServiceLevelObjectiveRequest
The `UpdateServiceLevelObjective` request.
Inherits from Protobuf::Message.
Accessors
$msg->service_level_objective()/$msg->service_level_objective($value)Type:
Message(Google::Monitoring::V3::Service::ServiceLevelObjective)Required. The `ServiceLevelObjective` to draw updates from. The given `name` specifies the resource to update.
$msg->update_mask()/$msg->update_mask($value)Type:
Message(Google::Protobuf::FieldMask::FieldMask)A set of field paths defining which fields to use for the update.
Google::Monitoring::V3::ServiceService::DeleteServiceLevelObjectiveRequest
The `DeleteServiceLevelObjective` request.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. Resource name of the `ServiceLevelObjective` to delete. The format is:
projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME]
SEE ALSO
Protobuf, Protobuf::Message, Google::Monitoring::V3::ServiceService::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.