class Google::Apis::MonitoringV3::RequestBasedSli

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

Attributes

distribution_cut[RW]

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. Corresponds to the JSON property `distributionCut` @return [Google::Apis::MonitoringV3::DistributionCut]

good_total_ratio[RW]

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. Corresponds to the JSON property `goodTotalRatio` @return [Google::Apis::MonitoringV3::TimeSeriesRatio]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/monitoring_v3/classes.rb, line 3661
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 3666
def update!(**args)
  @distribution_cut = args[:distribution_cut] if args.key?(:distribution_cut)
  @good_total_ratio = args[:good_total_ratio] if args.key?(:good_total_ratio)
end