class Google::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.

Attributes

availability[RW]

Future parameters for the availability SLI. Corresponds to the JSON property `availability` @return [Google::Apis::MonitoringV3::AvailabilityCriteria]

latency[RW]

Parameters for a latency threshold SLI. Corresponds to the JSON property `latency` @return [Google::Apis::MonitoringV3::LatencyCriteria]

location[RW]

OPTIONAL: The set of locations to which this SLI is relevant. Telemetry from other locations will not be used to calculate performance for this SLI. If omitted, this SLI applies to all locations in which the Service has activity. For service types that don't support breaking down by location, setting this field will result in an error. Corresponds to the JSON property `location` @return [Array<String>]

method_prop[RW]

OPTIONAL: The set of RPCs to which this SLI is relevant. Telemetry from other methods will not be used to calculate performance for this SLI. If omitted, this SLI applies to all the Service's methods. For service types that don't support breaking down by method, setting this field will result in an error. Corresponds to the JSON property `method` @return [Array<String>]

version[RW]

OPTIONAL: The set of API versions to which this SLI is relevant. Telemetry from other API versions will not be used to calculate performance for this SLI. If omitted, this SLI applies to all API versions. For service types that don' t support breaking down by version, setting this field will result in an error. Corresponds to the JSON property `version` @return [Array<String>]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/monitoring_v3/classes.rb, line 371
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 376
def update!(**args)
  @availability = args[:availability] if args.key?(:availability)
  @latency = args[:latency] if args.key?(:latency)
  @location = args[:location] if args.key?(:location)
  @method_prop = args[:method_prop] if args.key?(:method_prop)
  @version = args[:version] if args.key?(:version)
end