Class: DatadogAPIClient::V1::SLOHistorySLIData

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

Overview

An object that holds an SLI value and its associated data. It can represent an SLO’s overall SLI value. This can also represent the SLI value for a specific monitor in multi-monitor SLOs, or a group in grouped SLOs.

Instance Attribute Summary collapse

Method Summary

Methods included from BaseGenericModel

included

Instance Attribute Details

#additional_propertiesObject

Returns the value of attribute additional_properties.



69
70
71
# File 'lib/datadog_api_client/v1/models/slo_history_sli_data.rb', line 69

def additional_properties
  @additional_properties
end

#error_budget_remainingObject

A mapping of threshold ‘timeframe` to the remaining error budget.



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

def error_budget_remaining
  @error_budget_remaining
end

#errorsObject

An array of error objects returned while querying the history data for the service level objective.



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

def errors
  @errors
end

#groupObject

For groups in a grouped SLO, this is the group name.



32
33
34
# File 'lib/datadog_api_client/v1/models/slo_history_sli_data.rb', line 32

def group
  @group
end

#historyObject

The state transition history for ‘monitor` or `time-slice` SLOs. It is represented as an array of pairs. Each pair is an array containing the timestamp of the transition as an integer in Unix epoch format in the first element, and the state as an integer in the second element. An integer value of `0` for state means uptime, `1` means downtime, and `2` means no data. Periods of no data count as uptime in time-slice SLOs, while for monitor SLOs, no data is counted either as uptime or downtime depending on monitor settings. See [SLO documentation](docs.datadoghq.com/service_management/service_level_objectives/monitor/#missing-data) for detailed information.



42
43
44
# File 'lib/datadog_api_client/v1/models/slo_history_sli_data.rb', line 42

def history
  @history
end

#monitor_modifiedObject

For ‘monitor` based SLOs, this is the last modified timestamp in epoch seconds of the monitor.



45
46
47
# File 'lib/datadog_api_client/v1/models/slo_history_sli_data.rb', line 45

def monitor_modified
  @monitor_modified
end

#monitor_typeObject

For ‘monitor` based SLOs, this describes the type of monitor.



48
49
50
# File 'lib/datadog_api_client/v1/models/slo_history_sli_data.rb', line 48

def monitor_type
  @monitor_type
end

#nameObject

For groups in a grouped SLO, this is the group name. For monitors in a multi-monitor SLO, this is the monitor name.



51
52
53
# File 'lib/datadog_api_client/v1/models/slo_history_sli_data.rb', line 51

def name
  @name
end

#precisionObject

A mapping of threshold ‘timeframe` to number of accurate decimals, regardless of the from && to timestamp.



54
55
56
# File 'lib/datadog_api_client/v1/models/slo_history_sli_data.rb', line 54

def precision
  @precision
end

#previewObject

For ‘monitor` based SLOs, when `true` this indicates that a replay is in progress to give an accurate uptime calculation.



58
59
60
# File 'lib/datadog_api_client/v1/models/slo_history_sli_data.rb', line 58

def preview
  @preview
end

#sli_valueObject

The current SLI value of the SLO over the history window.



61
62
63
# File 'lib/datadog_api_client/v1/models/slo_history_sli_data.rb', line 61

def sli_value
  @sli_value
end

#span_precisionObject

The amount of decimal places the SLI value is accurate to for the given from ‘&&` to timestamp.



64
65
66
# File 'lib/datadog_api_client/v1/models/slo_history_sli_data.rb', line 64

def span_precision
  @span_precision
end

#uptimeObject

Use ‘sli_value` instead.



67
68
69
# File 'lib/datadog_api_client/v1/models/slo_history_sli_data.rb', line 67

def uptime
  @uptime
end