Class: DatadogAPIClient::V1::SLOResponseData
- Inherits:
-
Object
- Object
- DatadogAPIClient::V1::SLOResponseData
- Includes:
- BaseGenericModel
- Defined in:
- lib/datadog_api_client/v1/models/slo_response_data.rb
Overview
A service level objective object includes a service level indicator, thresholds for one or more timeframes, and metadata (‘name`, `description`, `tags`, etc.).
Instance Attribute Summary collapse
-
#additional_properties ⇒ Object
Returns the value of attribute additional_properties.
-
#configured_alert_ids ⇒ Object
A list of SLO monitors IDs that reference this SLO.
-
#created_at ⇒ Object
Creation timestamp (UNIX time in seconds).
-
#creator ⇒ Object
Object describing the creator of the shared element.
-
#description ⇒ Object
A user-defined description of the service level objective.
-
#groups ⇒ Object
A list of (up to 20) monitor groups that narrow the scope of a monitor service level objective.
-
#id ⇒ Object
A unique identifier for the service level objective object.
-
#modified_at ⇒ Object
Modification timestamp (UNIX time in seconds).
-
#monitor_ids ⇒ Object
A list of monitor ids that defines the scope of a monitor service level objective.
-
#monitor_tags ⇒ Object
The union of monitor tags for all monitors referenced by the ‘monitor_ids` field.
-
#name ⇒ Object
The name of the service level objective object.
-
#query ⇒ Object
A metric-based SLO.
-
#sli_specification ⇒ Object
A generic SLI specification.
-
#tags ⇒ Object
A list of tags associated with this service level objective.
-
#target_threshold ⇒ Object
The target threshold such that when the service level indicator is above this threshold over the given timeframe, the objective is being met.
-
#thresholds ⇒ Object
The thresholds (timeframes and associated targets) for this service level objective object.
-
#timeframe ⇒ Object
The SLO time window options.
-
#type ⇒ Object
The type of the service level objective.
-
#warning_threshold ⇒ Object
The optional warning threshold such that when the service level indicator is below this value for the given threshold, but above the target threshold, the objective appears in a “warning” state.
Method Summary
Methods included from BaseGenericModel
Instance Attribute Details
#additional_properties ⇒ Object
Returns the value of attribute additional_properties.
108 109 110 |
# File 'lib/datadog_api_client/v1/models/slo_response_data.rb', line 108 def additional_properties @additional_properties end |
#configured_alert_ids ⇒ Object
A list of SLO monitors IDs that reference this SLO. This field is returned only when ‘with_configured_alert_ids` parameter is true in query.
26 27 28 |
# File 'lib/datadog_api_client/v1/models/slo_response_data.rb', line 26 def configured_alert_ids @configured_alert_ids end |
#created_at ⇒ Object
Creation timestamp (UNIX time in seconds)
Always included in service level objective responses.
31 32 33 |
# File 'lib/datadog_api_client/v1/models/slo_response_data.rb', line 31 def created_at @created_at end |
#creator ⇒ Object
Object describing the creator of the shared element.
34 35 36 |
# File 'lib/datadog_api_client/v1/models/slo_response_data.rb', line 34 def creator @creator end |
#description ⇒ Object
A user-defined description of the service level objective.
Always included in service level objective responses (but may be ‘null`). Optional in create/update requests.
40 41 42 |
# File 'lib/datadog_api_client/v1/models/slo_response_data.rb', line 40 def description @description end |
#groups ⇒ Object
A list of (up to 20) monitor groups that narrow the scope of a monitor service level objective.
Included in service level objective responses if it is not empty. Optional in create/update requests for monitor service level objectives, but may only be used when then length of the ‘monitor_ids` field is one.
47 48 49 |
# File 'lib/datadog_api_client/v1/models/slo_response_data.rb', line 47 def groups @groups end |
#id ⇒ Object
A unique identifier for the service level objective object.
Always included in service level objective responses.
52 53 54 |
# File 'lib/datadog_api_client/v1/models/slo_response_data.rb', line 52 def id @id end |
#modified_at ⇒ Object
Modification timestamp (UNIX time in seconds)
Always included in service level objective responses.
57 58 59 |
# File 'lib/datadog_api_client/v1/models/slo_response_data.rb', line 57 def modified_at @modified_at end |
#monitor_ids ⇒ Object
A list of monitor ids that defines the scope of a monitor service level objective. **Required if type is ‘monitor`**.
61 62 63 |
# File 'lib/datadog_api_client/v1/models/slo_response_data.rb', line 61 def monitor_ids @monitor_ids end |
#monitor_tags ⇒ Object
The union of monitor tags for all monitors referenced by the ‘monitor_ids` field. Always included in service level objective responses for monitor service level objectives (but may be empty). Ignored in create/update requests. Does not affect which monitors are included in the service level objective (that is determined entirely by the `monitor_ids` field).
69 70 71 |
# File 'lib/datadog_api_client/v1/models/slo_response_data.rb', line 69 def @monitor_tags end |
#name ⇒ Object
The name of the service level objective object.
72 73 74 |
# File 'lib/datadog_api_client/v1/models/slo_response_data.rb', line 72 def name @name end |
#query ⇒ Object
A metric-based SLO. **Required if type is ‘metric`**. Note that Datadog only allows the sum by aggregator to be used because this will sum up all request counts instead of averaging them, or taking the max or min of all of those requests.
77 78 79 |
# File 'lib/datadog_api_client/v1/models/slo_response_data.rb', line 77 def query @query end |
#sli_specification ⇒ Object
A generic SLI specification. This is currently used for time-slice SLOs only.
80 81 82 |
# File 'lib/datadog_api_client/v1/models/slo_response_data.rb', line 80 def sli_specification @sli_specification end |
#tags ⇒ Object
A list of tags associated with this service level objective. Always included in service level objective responses (but may be empty). Optional in create/update requests.
85 86 87 |
# File 'lib/datadog_api_client/v1/models/slo_response_data.rb', line 85 def @tags end |
#target_threshold ⇒ Object
The target threshold such that when the service level indicator is above this threshold over the given timeframe, the objective is being met.
89 90 91 |
# File 'lib/datadog_api_client/v1/models/slo_response_data.rb', line 89 def target_threshold @target_threshold end |
#thresholds ⇒ Object
The thresholds (timeframes and associated targets) for this service level objective object.
93 94 95 |
# File 'lib/datadog_api_client/v1/models/slo_response_data.rb', line 93 def thresholds @thresholds end |
#timeframe ⇒ Object
The SLO time window options. Note that “custom” is not a valid option for creating or updating SLOs. It is only used when querying SLO history over custom timeframes.
97 98 99 |
# File 'lib/datadog_api_client/v1/models/slo_response_data.rb', line 97 def timeframe @timeframe end |
#type ⇒ Object
The type of the service level objective.
100 101 102 |
# File 'lib/datadog_api_client/v1/models/slo_response_data.rb', line 100 def type @type end |
#warning_threshold ⇒ Object
The optional warning threshold such that when the service level indicator is below this value for the given threshold, but above the target threshold, the objective appears in a “warning” state. This value must be greater than the target threshold.
106 107 108 |
# File 'lib/datadog_api_client/v1/models/slo_response_data.rb', line 106 def warning_threshold @warning_threshold end |