Class: DatadogAPIClient::V1::ServiceLevelObjective

Inherits:
Object
  • Object
show all
Includes:
BaseGenericModel
Defined in:
lib/datadog_api_client/v1/models/service_level_objective.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

Method Summary

Methods included from BaseGenericModel

included

Instance Attribute Details

#additional_propertiesObject

Returns the value of attribute additional_properties.



105
106
107
# File 'lib/datadog_api_client/v1/models/service_level_objective.rb', line 105

def additional_properties
  @additional_properties
end

#created_atObject

Creation timestamp (UNIX time in seconds)

Always included in service level objective responses.



28
29
30
# File 'lib/datadog_api_client/v1/models/service_level_objective.rb', line 28

def created_at
  @created_at
end

#creatorObject

Object describing the creator of the shared element.



31
32
33
# File 'lib/datadog_api_client/v1/models/service_level_objective.rb', line 31

def creator
  @creator
end

#descriptionObject

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.



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

def description
  @description
end

#groupsObject

A list of (up to 100) 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.



44
45
46
# File 'lib/datadog_api_client/v1/models/service_level_objective.rb', line 44

def groups
  @groups
end

#idObject

A unique identifier for the service level objective object.

Always included in service level objective responses.



49
50
51
# File 'lib/datadog_api_client/v1/models/service_level_objective.rb', line 49

def id
  @id
end

#modified_atObject

Modification timestamp (UNIX time in seconds)

Always included in service level objective responses.



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

def modified_at
  @modified_at
end

#monitor_idsObject

A list of monitor ids that defines the scope of a monitor service level objective. **Required if type is ‘monitor`**.



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

def monitor_ids
  @monitor_ids
end

#monitor_tagsObject

The union of monitor tags for all monitors referenced by the ‘monitor_ids` field. Always included in service level objective responses for monitor-based 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).



66
67
68
# File 'lib/datadog_api_client/v1/models/service_level_objective.rb', line 66

def monitor_tags
  @monitor_tags
end

#nameObject

The name of the service level objective object.



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

def name
  @name
end

#queryObject

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.



74
75
76
# File 'lib/datadog_api_client/v1/models/service_level_objective.rb', line 74

def query
  @query
end

#sli_specificationObject

A generic SLI specification. This is currently used for time-slice SLOs only.



77
78
79
# File 'lib/datadog_api_client/v1/models/service_level_objective.rb', line 77

def sli_specification
  @sli_specification
end

#tagsObject

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.



82
83
84
# File 'lib/datadog_api_client/v1/models/service_level_objective.rb', line 82

def tags
  @tags
end

#target_thresholdObject

The target threshold such that when the service level indicator is above this threshold over the given timeframe, the objective is being met.



86
87
88
# File 'lib/datadog_api_client/v1/models/service_level_objective.rb', line 86

def target_threshold
  @target_threshold
end

#thresholdsObject

The thresholds (timeframes and associated targets) for this service level objective object.



90
91
92
# File 'lib/datadog_api_client/v1/models/service_level_objective.rb', line 90

def thresholds
  @thresholds
end

#timeframeObject

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.



94
95
96
# File 'lib/datadog_api_client/v1/models/service_level_objective.rb', line 94

def timeframe
  @timeframe
end

#typeObject

The type of the service level objective.



97
98
99
# File 'lib/datadog_api_client/v1/models/service_level_objective.rb', line 97

def type
  @type
end

#warning_thresholdObject

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.



103
104
105
# File 'lib/datadog_api_client/v1/models/service_level_objective.rb', line 103

def warning_threshold
  @warning_threshold
end