Reference documentation and code samples for the Cloud Monitoring V3 API class Google::Cloud::Monitoring::V3::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
Object
Extended By
Google::Protobuf::MessageExts::ClassMethods
Includes
Google::Protobuf::MessageExts
Methods
#bad_service_filter
defbad_service_filter()->::String
Returns
(::String) — A monitoring filter
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.
#bad_service_filter=
defbad_service_filter=(value)->::String
Parameter
value (::String) — A monitoring filter
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.
Returns
(::String) — A monitoring filter
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.
#good_service_filter
defgood_service_filter()->::String
Returns
(::String) — A monitoring filter
specifying a TimeSeries quantifying good service provided. Must have
ValueType = DOUBLE or ValueType = INT64 and must have MetricKind =
DELTA or MetricKind = CUMULATIVE.
#good_service_filter=
defgood_service_filter=(value)->::String
Parameter
value (::String) — A monitoring filter
specifying a TimeSeries quantifying good service provided. Must have
ValueType = DOUBLE or ValueType = INT64 and must have MetricKind =
DELTA or MetricKind = CUMULATIVE.
Returns
(::String) — A monitoring filter
specifying a TimeSeries quantifying good service provided. Must have
ValueType = DOUBLE or ValueType = INT64 and must have MetricKind =
DELTA or MetricKind = CUMULATIVE.
#total_service_filter
deftotal_service_filter()->::String
Returns
(::String) — A monitoring filter
specifying a TimeSeries quantifying total demanded service. Must have
ValueType = DOUBLE or ValueType = INT64 and must have MetricKind =
DELTA or MetricKind = CUMULATIVE.
#total_service_filter=
deftotal_service_filter=(value)->::String
Parameter
value (::String) — A monitoring filter
specifying a TimeSeries quantifying total demanded service. Must have
ValueType = DOUBLE or ValueType = INT64 and must have MetricKind =
DELTA or MetricKind = CUMULATIVE.
Returns
(::String) — A monitoring filter
specifying a TimeSeries quantifying total demanded service. Must have
ValueType = DOUBLE or ValueType = INT64 and must have MetricKind =
DELTA or MetricKind = CUMULATIVE.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Cloud Monitoring V3 API - Class Google::Cloud::Monitoring::V3::TimeSeriesRatio (v1.6.1)\n\nVersion latestkeyboard_arrow_down\n\n- [1.6.1 (latest)](/ruby/docs/reference/google-cloud-monitoring-v3/latest/Google-Cloud-Monitoring-V3-TimeSeriesRatio)\n- [1.6.0](/ruby/docs/reference/google-cloud-monitoring-v3/1.6.0/Google-Cloud-Monitoring-V3-TimeSeriesRatio)\n- [1.5.1](/ruby/docs/reference/google-cloud-monitoring-v3/1.5.1/Google-Cloud-Monitoring-V3-TimeSeriesRatio)\n- [1.4.0](/ruby/docs/reference/google-cloud-monitoring-v3/1.4.0/Google-Cloud-Monitoring-V3-TimeSeriesRatio)\n- [1.3.0](/ruby/docs/reference/google-cloud-monitoring-v3/1.3.0/Google-Cloud-Monitoring-V3-TimeSeriesRatio)\n- [1.2.0](/ruby/docs/reference/google-cloud-monitoring-v3/1.2.0/Google-Cloud-Monitoring-V3-TimeSeriesRatio)\n- [1.1.0](/ruby/docs/reference/google-cloud-monitoring-v3/1.1.0/Google-Cloud-Monitoring-V3-TimeSeriesRatio)\n- [1.0.1](/ruby/docs/reference/google-cloud-monitoring-v3/1.0.1/Google-Cloud-Monitoring-V3-TimeSeriesRatio)\n- [0.18.0](/ruby/docs/reference/google-cloud-monitoring-v3/0.18.0/Google-Cloud-Monitoring-V3-TimeSeriesRatio)\n- [0.17.0](/ruby/docs/reference/google-cloud-monitoring-v3/0.17.0/Google-Cloud-Monitoring-V3-TimeSeriesRatio)\n- [0.16.0](/ruby/docs/reference/google-cloud-monitoring-v3/0.16.0/Google-Cloud-Monitoring-V3-TimeSeriesRatio)\n- [0.15.2](/ruby/docs/reference/google-cloud-monitoring-v3/0.15.2/Google-Cloud-Monitoring-V3-TimeSeriesRatio)\n- [0.14.0](/ruby/docs/reference/google-cloud-monitoring-v3/0.14.0/Google-Cloud-Monitoring-V3-TimeSeriesRatio)\n- [0.13.0](/ruby/docs/reference/google-cloud-monitoring-v3/0.13.0/Google-Cloud-Monitoring-V3-TimeSeriesRatio)\n- [0.12.1](/ruby/docs/reference/google-cloud-monitoring-v3/0.12.1/Google-Cloud-Monitoring-V3-TimeSeriesRatio)\n- [0.11.0](/ruby/docs/reference/google-cloud-monitoring-v3/0.11.0/Google-Cloud-Monitoring-V3-TimeSeriesRatio)\n- [0.10.0](/ruby/docs/reference/google-cloud-monitoring-v3/0.10.0/Google-Cloud-Monitoring-V3-TimeSeriesRatio)\n- [0.9.0](/ruby/docs/reference/google-cloud-monitoring-v3/0.9.0/Google-Cloud-Monitoring-V3-TimeSeriesRatio)\n- [0.8.0](/ruby/docs/reference/google-cloud-monitoring-v3/0.8.0/Google-Cloud-Monitoring-V3-TimeSeriesRatio)\n- [0.7.1](/ruby/docs/reference/google-cloud-monitoring-v3/0.7.1/Google-Cloud-Monitoring-V3-TimeSeriesRatio) \nReference documentation and code samples for the Cloud Monitoring V3 API class Google::Cloud::Monitoring::V3::TimeSeriesRatio.\n\nA `TimeSeriesRatio` specifies two `TimeSeries` to use for computing the\n`good_service / total_service` ratio. The specified `TimeSeries` must have\n`ValueType = DOUBLE` or `ValueType = INT64` and must have `MetricKind =\nDELTA` or `MetricKind = CUMULATIVE`. The `TimeSeriesRatio` must specify\nexactly two of good, bad, and total, and the relationship `good_service +\nbad_service = total_service` will be assumed. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #bad_service_filter\n\n def bad_service_filter() -\u003e ::String\n\n**Returns**\n\n- (::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`.\n\n### #bad_service_filter=\n\n def bad_service_filter=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::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`. \n**Returns**\n\n- (::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`.\n\n### #good_service_filter\n\n def good_service_filter() -\u003e ::String\n\n**Returns**\n\n- (::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 =\n DELTA` or `MetricKind = CUMULATIVE`.\n\n### #good_service_filter=\n\n def good_service_filter=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::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 =\nDELTA` or `MetricKind = CUMULATIVE`. \n**Returns**\n\n- (::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 =\n DELTA` or `MetricKind = CUMULATIVE`.\n\n### #total_service_filter\n\n def total_service_filter() -\u003e ::String\n\n**Returns**\n\n- (::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 =\n DELTA` or `MetricKind = CUMULATIVE`.\n\n### #total_service_filter=\n\n def total_service_filter=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::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 =\nDELTA` or `MetricKind = CUMULATIVE`. \n**Returns**\n\n- (::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 =\n DELTA` or `MetricKind = CUMULATIVE`."]]