Class: Google::Apis::MonitoringV3::TimeSeriesRatio
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::MonitoringV3::TimeSeriesRatio
 
 
- 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
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.
Instance Attribute Summary collapse
- 
  
    
      #bad_service_filter  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
A monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) specifying a TimeSeries quantifying bad service, either demanded service that was not provided or demanded service that was of inadequate quality.
 - 
  
    
      #good_service_filter  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
A monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) specifying a TimeSeries quantifying good service provided.
 - 
  
    
      #total_service_filter  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
A monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) specifying a TimeSeries quantifying total demanded service.
 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ TimeSeriesRatio 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of TimeSeriesRatio.
 - 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Update properties of this object.
 
Constructor Details
#initialize(**args) ⇒ TimeSeriesRatio
Returns a new instance of TimeSeriesRatio.
      4851 4852 4853  | 
    
      # File 'lib/google/apis/monitoring_v3/classes.rb', line 4851 def initialize(**args) update!(**args) end  | 
  
Instance Attribute Details
#bad_service_filter ⇒ String
A monitoring filter (https://cloud.google.com/monitoring/api/v3/filters)
specifying a TimeSeries quantifying bad service, either demanded service that
was not provided or demanded service that was of inadequate quality. Must have
ValueType = DOUBLE or ValueType = INT64 and must have MetricKind = DELTA or
MetricKind = CUMULATIVE.
Corresponds to the JSON property badServiceFilter
      4833 4834 4835  | 
    
      # File 'lib/google/apis/monitoring_v3/classes.rb', line 4833 def bad_service_filter @bad_service_filter end  | 
  
#good_service_filter ⇒ String
A monitoring filter (https://cloud.google.com/monitoring/api/v3/filters)
specifying a TimeSeries quantifying good service provided. Must have ValueType
= DOUBLE or ValueType = INT64 and must have MetricKind = DELTA or MetricKind =
CUMULATIVE.
Corresponds to the JSON property goodServiceFilter
      4841 4842 4843  | 
    
      # File 'lib/google/apis/monitoring_v3/classes.rb', line 4841 def good_service_filter @good_service_filter end  | 
  
#total_service_filter ⇒ String
A monitoring filter (https://cloud.google.com/monitoring/api/v3/filters)
specifying a TimeSeries quantifying total demanded service. Must have
ValueType = DOUBLE or ValueType = INT64 and must have MetricKind = DELTA or
MetricKind = CUMULATIVE.
Corresponds to the JSON property totalServiceFilter
      4849 4850 4851  | 
    
      # File 'lib/google/apis/monitoring_v3/classes.rb', line 4849 def total_service_filter @total_service_filter end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      4856 4857 4858 4859 4860  | 
    
      # File 'lib/google/apis/monitoring_v3/classes.rb', line 4856 def update!(**args) @bad_service_filter = args[:bad_service_filter] if args.key?(:bad_service_filter) @good_service_filter = args[:good_service_filter] if args.key?(:good_service_filter) @total_service_filter = args[:total_service_filter] if args.key?(:total_service_filter) end  |