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.
      4031 4032 4033  | 
    
      # File 'lib/google/apis/monitoring_v3/classes.rb', line 4031 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
      4019 4020 4021  | 
    
      # File 'lib/google/apis/monitoring_v3/classes.rb', line 4019 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
      4029 4030 4031  | 
    
      # File 'lib/google/apis/monitoring_v3/classes.rb', line 4029 def good_total_ratio @good_total_ratio end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      4036 4037 4038 4039  | 
    
      # File 'lib/google/apis/monitoring_v3/classes.rb', line 4036 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  |