NAME

Google::Monitoring::V3::Service - Compiled Protocol Buffers messages for google/monitoring/v3/service.proto

SYNOPSIS

use Google::Monitoring::V3::Service;

my $msg = Google::Monitoring::V3::Service::Service->new({
    name => $name,
    display_name => $display_name,
    custom => $custom,
    app_engine => $app_engine,
});

# Read or update a field
my $val = $msg->name();

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Monitoring::V3::Service::Service->parse($bytes);

# Canonical ProtoJSON
my $json = $msg->to_json();

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/monitoring/v3/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::Service::Service

A `Service` is a discrete, autonomous, and network-accessible unit, designed to solve an individual concern ([Wikipedia](https://en.wikipedia.org/wiki/Service-orientation)). In Cloud Monitoring, a `Service` acts as the root resource under which operational aspects of the service are accessible.

Inherits from Protobuf::Message.

Accessors

Google::Monitoring::V3::Service::ServiceLevelObjective

A Service-Level Objective (SLO) describes a level of desired good service. It consists of a service-level indicator (SLI), a performance goal, and a period over which the objective is to be evaluated against that goal. The SLO can use SLIs defined in a number of different manners. Typical SLOs might include "99% of requests in each rolling week have latency below 200 milliseconds" or "99.5% of requests in each calendar month return successfully."

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Identifier. Resource name for this `ServiceLevelObjective`. The format is:

    projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME]
  • $msg->display_name() / $msg->display_name($value)

    Type: String

    Name used for UI elements listing this SLO.

  • $msg->service_level_indicator() / $msg->service_level_indicator($value)

    Type: Message (Google::Monitoring::V3::Service::ServiceLevelIndicator)

    The definition of good service, used to measure and calculate the quality of the `Service`'s performance with respect to a single aspect of service quality.

  • $msg->goal() / $msg->goal($value)

    Type: Double

    The fraction of service that must be good in order for this objective to be met. `0 < goal <= 0.9999`.

  • $msg->rolling_period() / $msg->rolling_period($value)

    Type: Message (Google::Protobuf::Duration::Duration)

    A rolling time period, semantically "in the past `<rolling_period>`". Must be an integer multiple of 1 day no larger than 30 days.

  • $msg->calendar_period() / $msg->calendar_period($value)

    Type: Enum (Google::Type::CalendarPeriod)

    A calendar period, semantically "since the start of the current `<calendar_period>`". At this time, only `DAY`, `WEEK`, `FORTNIGHT`, and `MONTH` are supported.

  • $msg->user_labels() / $msg->user_labels($value)

    Type: Message (Google::Monitoring::V3::Service::ServiceLevelObjective::UserLabelsEntry)

    Labels which have been used to annotate the service-level objective. Label keys must start with a letter. Label keys and values may contain lowercase letters, numbers, underscores, and dashes. Label keys and values have a maximum length of 63 characters, and must be less than 128 bytes in size. Up to 64 label entries may be stored. For labels which do not have a semantic value, the empty string may be supplied for the label value.

Enum: ServiceLevelObjective::View

  • VIEW_UNSPECIFIED => 0

  • FULL => 2

  • EXPLICIT => 1

Google::Monitoring::V3::Service::ServiceLevelIndicator

A Service-Level Indicator (SLI) describes the "performance" of a service. For some services, the SLI is well-defined. In such cases, the SLI can be described easily by referencing the well-known SLI and providing the needed parameters. Alternatively, a "custom" SLI can be defined with a query to the underlying metric store. An SLI is defined to be `good_service / total_service` over any queried time interval. The value of performance always falls into the range `0 <= performance <= 1`. A custom SLI describes how to compute this ratio, whether this is by dividing values from a pair of time series, cutting a `Distribution` into good and bad counts, or counting time windows in which the service complies with a criterion. For separation of concerns, a single Service-Level Indicator measures performance for only one aspect of service quality, such as fraction of successful queries or fast-enough queries.

Inherits from Protobuf::Message.

Accessors

Google::Monitoring::V3::Service::BasicSli

An SLI measuring performance on a well-known service type. Performance will be computed on the basis of pre-defined metrics. The type of the `service_resource` determines the metrics to use and the `service_resource.labels` and `metric_labels` are used to construct a monitoring filter to filter that metric down to just the data relevant to this service.

Inherits from Protobuf::Message.

Accessors

  • $msg->method() / $msg->method($value)

    Type: String

    OPTIONAL: The set of RPCs to which this SLI is relevant. Telemetry from other methods will not be used to calculate performance for this SLI. If omitted, this SLI applies to all the Service's methods. For service types that don't support breaking down by method, setting this field will result in an error.

  • $msg->location() / $msg->location($value)

    Type: String

    OPTIONAL: The set of locations to which this SLI is relevant. Telemetry from other locations will not be used to calculate performance for this SLI. If omitted, this SLI applies to all locations in which the Service has activity. For service types that don't support breaking down by location, setting this field will result in an error.

  • $msg->version() / $msg->version($value)

    Type: String

    OPTIONAL: The set of API versions to which this SLI is relevant. Telemetry from other API versions will not be used to calculate performance for this SLI. If omitted, this SLI applies to all API versions. For service types that don't support breaking down by version, setting this field will result in an error.

  • $msg->availability() / $msg->availability($value)

    Type: Message (Google::Monitoring::V3::Service::BasicSli::AvailabilityCriteria)

    Good service is defined to be the count of requests made to this service that return successfully.

  • $msg->latency() / $msg->latency($value)

    Type: Message (Google::Monitoring::V3::Service::BasicSli::LatencyCriteria)

    Good service is defined to be the count of requests made to this service that are fast enough with respect to `latency.threshold`.

Google::Monitoring::V3::Service::Range

Range of numerical values within `min` and `max`.

Inherits from Protobuf::Message.

Accessors

  • $msg->min() / $msg->min($value)

    Type: Double

    Range minimum.

  • $msg->max() / $msg->max($value)

    Type: Double

    Range maximum.

Google::Monitoring::V3::Service::RequestBasedSli

Service Level Indicators for which atomic units of service are counted directly.

Inherits from Protobuf::Message.

Accessors

  • $msg->good_total_ratio() / $msg->good_total_ratio($value)

    Type: Message (Google::Monitoring::V3::Service::TimeSeriesRatio)

    `good_total_ratio` is used when the ratio of `good_service` to `total_service` is computed from two `TimeSeries`.

  • $msg->distribution_cut() / $msg->distribution_cut($value)

    Type: Message (Google::Monitoring::V3::Service::DistributionCut)

    `distribution_cut` is used when `good_service` is a count of values aggregated in a `Distribution` that fall into a good range. The `total_service` is the total count of all values aggregated in the `Distribution`.

Google::Monitoring::V3::Service::TimeSeriesRatio

A `TimeSeriesRatio` specifies two `TimeSeries` to use for computing the `good_service / total_service` ratio. The specified `TimeSeries` must have `ValueType = DOUBLE` or `ValueType = INT64` and must have `MetricKind = DELTA` or `MetricKind = CUMULATIVE`. The `TimeSeriesRatio` must specify exactly two of good, bad, and total, and the relationship `good_service + bad_service = total_service` will be assumed.

Inherits from Protobuf::Message.

Accessors

  • $msg->good_service_filter() / $msg->good_service_filter($value)

    Type: String

    A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters) specifying a `TimeSeries` quantifying good service provided. Must have `ValueType = DOUBLE` or `ValueType = INT64` and must have `MetricKind = DELTA` or `MetricKind = CUMULATIVE`.

  • $msg->bad_service_filter() / $msg->bad_service_filter($value)

    Type: String

    A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters) specifying a `TimeSeries` quantifying bad service, either demanded service that was not provided or demanded service that was of inadequate quality. Must have `ValueType = DOUBLE` or `ValueType = INT64` and must have `MetricKind = DELTA` or `MetricKind = CUMULATIVE`.

  • $msg->total_service_filter() / $msg->total_service_filter($value)

    Type: String

    A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters) specifying a `TimeSeries` quantifying total demanded service. Must have `ValueType = DOUBLE` or `ValueType = INT64` and must have `MetricKind = DELTA` or `MetricKind = CUMULATIVE`.

Google::Monitoring::V3::Service::DistributionCut

A `DistributionCut` defines a `TimeSeries` and thresholds used for measuring good service and total service. The `TimeSeries` must have `ValueType = DISTRIBUTION` and `MetricKind = DELTA` or `MetricKind = CUMULATIVE`. The computed `good_service` will be the estimated count of values in the `Distribution` that fall within the specified `min` and `max`.

Inherits from Protobuf::Message.

Accessors

  • $msg->distribution_filter() / $msg->distribution_filter($value)

    Type: String

    A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters) specifying a `TimeSeries` aggregating values. Must have `ValueType = DISTRIBUTION` and `MetricKind = DELTA` or `MetricKind = CUMULATIVE`.

  • $msg->range() / $msg->range($value)

    Type: Message (Google::Monitoring::V3::Service::Range)

    Range of values considered "good." For a one-sided range, set one bound to an infinite value.

Google::Monitoring::V3::Service::WindowsBasedSli

A `WindowsBasedSli` defines `good_service` as the count of time windows for which the provided service was of good quality. Criteria for determining if service was good are embedded in the `window_criterion`.

Inherits from Protobuf::Message.

Accessors

  • $msg->good_bad_metric_filter() / $msg->good_bad_metric_filter($value)

    Type: String

    A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters) specifying a `TimeSeries` with `ValueType = BOOL`. The window is good if any `true` values appear in the window.

  • $msg->good_total_ratio_threshold() / $msg->good_total_ratio_threshold($value)

    Type: Message (Google::Monitoring::V3::Service::WindowsBasedSli::PerformanceThreshold)

    A window is good if its `performance` is high enough.

  • $msg->metric_mean_in_range() / $msg->metric_mean_in_range($value)

    Type: Message (Google::Monitoring::V3::Service::WindowsBasedSli::MetricRange)

    A window is good if the metric's value is in a good range, averaged across returned streams.

  • $msg->metric_sum_in_range() / $msg->metric_sum_in_range($value)

    Type: Message (Google::Monitoring::V3::Service::WindowsBasedSli::MetricRange)

    A window is good if the metric's value is in a good range, summed across returned streams.

  • $msg->window_period() / $msg->window_period($value)

    Type: Message (Google::Protobuf::Duration::Duration)

    Duration over which window quality is evaluated. Must be an integer fraction of a day and at least `60s`.

SEE ALSO

Protobuf, Protobuf::Message, Google::Monitoring::V3::Service::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.