class Google::Apis::MonitoringV3::PerformanceThreshold

A PerformanceThreshold is used when each window is good when that window has a sufficiently high performance.

Attributes

basic_sli_performance[RW]

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` @return [Google::Apis::MonitoringV3::BasicSli]

performance[RW]

Service Level Indicators for which atomic units of service are counted directly. Corresponds to the JSON property `performance` @return [Google::Apis::MonitoringV3::RequestBasedSli]

threshold[RW]

If window performance >= threshold, the window is counted as good. Corresponds to the JSON property `threshold` @return [Float]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/monitoring_v3/classes.rb, line 3349
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/monitoring_v3/classes.rb, line 3354
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