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.
4041 4042 4043 |
# File 'lib/google/apis/monitoring_v3/classes.rb', line 4041 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
4029 4030 4031 |
# File 'lib/google/apis/monitoring_v3/classes.rb', line 4029 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
4039 4040 4041 |
# File 'lib/google/apis/monitoring_v3/classes.rb', line 4039 def good_total_ratio @good_total_ratio end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4046 4047 4048 4049 |
# File 'lib/google/apis/monitoring_v3/classes.rb', line 4046 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 |