Class: Google::Apis::MonitoringV3::PerformanceThreshold

Inherits:
Object
  • Object
show all
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 PerformanceThreshold is used when each window is good when that window has a sufficiently high performance.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ PerformanceThreshold

Returns a new instance of PerformanceThreshold.



2838
2839
2840
# File 'generated/google/apis/monitoring_v3/classes.rb', line 2838

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#basic_sli_performanceGoogle::Apis::MonitoringV3::BasicSli

An SLI measuring performance on a well-known service type. Performance will be computed on the basis of pre-defined metrics. The type of the service_resource determines the metrics to use and the service_resource.labels and metric_labels are used to construct a monitoring filter to filter that metric down to just the data relevant to this service. Corresponds to the JSON property basicSliPerformance



2825
2826
2827
# File 'generated/google/apis/monitoring_v3/classes.rb', line 2825

def basic_sli_performance
  @basic_sli_performance
end

#performanceGoogle::Apis::MonitoringV3::RequestBasedSli

Service Level Indicators for which atomic units of service are counted directly. Corresponds to the JSON property performance



2831
2832
2833
# File 'generated/google/apis/monitoring_v3/classes.rb', line 2831

def performance
  @performance
end

#thresholdFloat

If window performance >= threshold, the window is counted as good. Corresponds to the JSON property threshold

Returns:

  • (Float)


2836
2837
2838
# File 'generated/google/apis/monitoring_v3/classes.rb', line 2836

def threshold
  @threshold
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2843
2844
2845
2846
2847
# File 'generated/google/apis/monitoring_v3/classes.rb', line 2843

def update!(**args)
  @basic_sli_performance = args[:basic_sli_performance] if args.key?(:basic_sli_performance)
  @performance = args[:performance] if args.key?(:performance)
  @threshold = args[:threshold] if args.key?(:threshold)
end