class Google::Apis::MonitoringV3::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.

Attributes

bad_service_filter[RW]

A monitoring filter (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. Corresponds to the JSON property `badServiceFilter` @return [String]

good_service_filter[RW]

A monitoring filter (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. Corresponds to the JSON property `goodServiceFilter` @return [String]

total_service_filter[RW]

A monitoring filter (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. Corresponds to the JSON property `totalServiceFilter` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/monitoring_v3/classes.rb, line 3976
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/monitoring_v3/classes.rb, line 3981
def update!(**args)
  @bad_service_filter = args[:bad_service_filter] if args.key?(:bad_service_filter)
  @good_service_filter = args[:good_service_filter] if args.key?(:good_service_filter)
  @total_service_filter = args[:total_service_filter] if args.key?(:total_service_filter)
end