Class: DatadogAPIClient::V1::SLOTimeSliceCondition

Inherits:
Object
  • Object
show all
Includes:
BaseGenericModel
Defined in:
lib/datadog_api_client/v1/models/slo_time_slice_condition.rb

Overview

The time-slice condition, composed of 3 parts: 1. the metric timeseries query, 2. the comparator, and 3. the threshold. Optionally, a fourth part, the query interval, can be provided.

Instance Attribute Summary collapse

Method Summary

Methods included from BaseGenericModel

included

Instance Attribute Details

#comparatorObject

The comparator used to compare the SLI value to the threshold.



26
27
28
# File 'lib/datadog_api_client/v1/models/slo_time_slice_condition.rb', line 26

def comparator
  @comparator
end

#queryObject

The queries and formula used to calculate the SLI value.



29
30
31
# File 'lib/datadog_api_client/v1/models/slo_time_slice_condition.rb', line 29

def query
  @query
end

#query_interval_secondsObject

The interval used when querying data, which defines the size of a time slice. Two values are allowed: 60 (1 minute) and 300 (5 minutes). If not provided, the value defaults to 300 (5 minutes).



34
35
36
# File 'lib/datadog_api_client/v1/models/slo_time_slice_condition.rb', line 34

def query_interval_seconds
  @query_interval_seconds
end

#thresholdObject

The threshold value to which each SLI value will be compared.



37
38
39
# File 'lib/datadog_api_client/v1/models/slo_time_slice_condition.rb', line 37

def threshold
  @threshold
end