Class: Google::Apis::MonitoringV3::RequestBasedSli
- Inherits:
-
Object
- Object
- Google::Apis::MonitoringV3::RequestBasedSli
- 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
-
#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.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ RequestBasedSli
Returns a new instance of RequestBasedSli.
2939 2940 2941 |
# File 'generated/google/apis/monitoring_v3/classes.rb', line 2939 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 count of values x in the Distribution such that range.
min <= x < range.max.
Corresponds to the JSON property distributionCut
2927 2928 2929 |
# File 'generated/google/apis/monitoring_v3/classes.rb', line 2927 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
2937 2938 2939 |
# File 'generated/google/apis/monitoring_v3/classes.rb', line 2937 def good_total_ratio @good_total_ratio end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2944 2945 2946 2947 |
# File 'generated/google/apis/monitoring_v3/classes.rb', line 2944 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 |