Class: Google::Apis::MonitoringV3::BasicSli

Inherits:
Object
  • Object
show all
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

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.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BasicSli

Returns a new instance of BasicSli.



418
419
420
# File 'lib/google/apis/monitoring_v3/classes.rb', line 418

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

Instance Attribute Details

#availabilityGoogle::Apis::MonitoringV3::AvailabilityCriteria

Future parameters for the availability SLI. Corresponds to the JSON property availability



386
387
388
# File 'lib/google/apis/monitoring_v3/classes.rb', line 386

def availability
  @availability
end

#latencyGoogle::Apis::MonitoringV3::LatencyCriteria

Parameters for a latency threshold SLI. Corresponds to the JSON property latency



391
392
393
# File 'lib/google/apis/monitoring_v3/classes.rb', line 391

def latency
  @latency
end

#locationArray<String>

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

Returns:

  • (Array<String>)


400
401
402
# File 'lib/google/apis/monitoring_v3/classes.rb', line 400

def location
  @location
end

#method_propArray<String>

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

Returns:

  • (Array<String>)


408
409
410
# File 'lib/google/apis/monitoring_v3/classes.rb', line 408

def method_prop
  @method_prop
end

#versionArray<String>

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

Returns:

  • (Array<String>)


416
417
418
# File 'lib/google/apis/monitoring_v3/classes.rb', line 416

def version
  @version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



423
424
425
426
427
428
429
# File 'lib/google/apis/monitoring_v3/classes.rb', line 423

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