Class: Google::Apis::MonitoringV3::RequestBasedSli

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/monitoring_v3/classes.rb,
generated/google/apis/monitoring_v3/representations.rb,
generated/google/apis/monitoring_v3/representations.rb

Overview

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RequestBasedSli

Returns a new instance of RequestBasedSli.



3171
3172
3173
# File 'generated/google/apis/monitoring_v3/classes.rb', line 3171

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#distribution_cutGoogle::Apis::MonitoringV3::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 count of values x in the Distribution such that range.min <= x < range.max. Corresponds to the JSON property distributionCut



3159
3160
3161
# File 'generated/google/apis/monitoring_v3/classes.rb', line 3159

def distribution_cut
  @distribution_cut
end

#good_total_ratioGoogle::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. Corresponds to the JSON property goodTotalRatio



3169
3170
3171
# File 'generated/google/apis/monitoring_v3/classes.rb', line 3169

def good_total_ratio
  @good_total_ratio
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3176
3177
3178
3179
# File 'generated/google/apis/monitoring_v3/classes.rb', line 3176

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