Class: Google::Apis::MonitoringV3::RequestBasedSli
- Inherits:
-
Object
- Object
- Google::Apis::MonitoringV3::RequestBasedSli
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/monitoring_v3/classes.rb,
lib/google/apis/monitoring_v3/representations.rb,
lib/google/apis/monitoring_v3/representations.rb
Overview
Service Level Indicators for which atomic units of service are counted directly.
Instance Attribute Summary collapse
-
#distribution_cut ⇒ Google::Apis::MonitoringV3::DistributionCut
A DistributionCut defines a TimeSeries and thresholds used for measuring good service and total service.
-
#good_total_ratio ⇒ Google::Apis::MonitoringV3::TimeSeriesRatio
A TimeSeriesRatio specifies two TimeSeries to use for computing the good_service / total_service ratio.
Instance Method Summary collapse
-
#initialize(**args) ⇒ RequestBasedSli
constructor
A new instance of RequestBasedSli.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ RequestBasedSli
Returns a new instance of RequestBasedSli.
4154 4155 4156 |
# File 'lib/google/apis/monitoring_v3/classes.rb', line 4154 def initialize(**args) update!(**args) end |
Instance Attribute Details
#distribution_cut ⇒ Google::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 estimated count of values in the Distribution that fall within the
specified min and max.
Corresponds to the JSON property distributionCut
4142 4143 4144 |
# File 'lib/google/apis/monitoring_v3/classes.rb', line 4142 def distribution_cut @distribution_cut end |
#good_total_ratio ⇒ 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.
Corresponds to the JSON property goodTotalRatio
4152 4153 4154 |
# File 'lib/google/apis/monitoring_v3/classes.rb', line 4152 def good_total_ratio @good_total_ratio end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4159 4160 4161 4162 |
# File 'lib/google/apis/monitoring_v3/classes.rb', line 4159 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 |