Class: Google::Apis::MonitoringV3::DistributionCut
- Inherits:
-
Object
- Object
- Google::Apis::MonitoringV3::DistributionCut
- 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
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.
Instance Attribute Summary collapse
-
#distribution_filter ⇒ String
A monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) specifying a TimeSeries aggregating values.
-
#range ⇒ Google::Apis::MonitoringV3::GoogleMonitoringV3Range
Range of numerical values, inclusive of min and exclusive of max.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DistributionCut
constructor
A new instance of DistributionCut.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ DistributionCut
Returns a new instance of DistributionCut.
976 977 978 |
# File 'generated/google/apis/monitoring_v3/classes.rb', line 976 def initialize(**args) update!(**args) end |
Instance Attribute Details
#distribution_filter ⇒ String
A monitoring filter (https://cloud.google.com/monitoring/api/v3/filters)
specifying a TimeSeries aggregating values. Must have ValueType =
DISTRIBUTION and MetricKind = DELTA or MetricKind = CUMULATIVE.
Corresponds to the JSON property distributionFilter
967 968 969 |
# File 'generated/google/apis/monitoring_v3/classes.rb', line 967 def distribution_filter @distribution_filter end |
#range ⇒ Google::Apis::MonitoringV3::GoogleMonitoringV3Range
Range of numerical values, inclusive of min and exclusive of max. If the open
range "< range.max" is desired, set range.min = -infinity. If the open range ">
= range.min" is desired, set range.max = infinity.
Corresponds to the JSON property range
974 975 976 |
# File 'generated/google/apis/monitoring_v3/classes.rb', line 974 def range @range end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
981 982 983 984 |
# File 'generated/google/apis/monitoring_v3/classes.rb', line 981 def update!(**args) @distribution_filter = args[:distribution_filter] if args.key?(:distribution_filter) @range = args[:range] if args.key?(:range) end |