diff --git a/content/en/api/v1/service-level-objectives/examples.json b/content/en/api/v1/service-level-objectives/examples.json index 441d5410178..2804ff4ab23 100644 --- a/content/en/api/v1/service-level-objectives/examples.json +++ b/content/en/api/v1/service-level-objectives/examples.json @@ -69,7 +69,7 @@ } } }, - "html": "
\n
\n
\n
\n

data

\n
\n

[object]

\n

An array of service level objective objects.

\n
\n
\n
\n
\n
\n

created_at

\n
\n

int64

\n

Creation timestamp (UNIX time in seconds)

Always included in service level objective responses.

\n
\n \n
\n
\n
\n
\n
\n

creator

\n
\n

object

\n

Object describing the creator of the shared element.

\n
\n
\n
\n
\n
\n

email

\n
\n

string

\n

Email of the creator.

\n
\n \n
\n
\n
\n
\n
\n

handle

\n
\n

string

\n

Handle of the creator.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the creator.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

description

\n
\n

string

\n

A user-defined description of the service level objective.

Always included in service level objective responses (but may be null).\nOptional in create/update requests.

\n
\n \n
\n
\n
\n
\n
\n

groups

\n
\n

[string]

\n

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\ncreate/update requests for monitor service level objectives, but may only be\nused when then length of the monitor_ids field is one.

\n
\n \n
\n
\n
\n
\n
\n

id

\n
\n

string

\n

A unique identifier for the service level objective object.

Always included in service level objective responses.

\n
\n \n
\n
\n
\n
\n
\n

modified_at

\n
\n

int64

\n

Modification timestamp (UNIX time in seconds)

Always included in service level objective responses.

\n
\n \n
\n
\n
\n
\n
\n

monitor_ids

\n
\n

[integer]

\n

A list of monitor ids that defines the scope of a monitor service level\nobjective. Required if type is monitor.

\n
\n \n
\n
\n
\n
\n
\n

monitor_tags

\n
\n

[string]

\n

The union of monitor tags for all monitors referenced by the monitor_ids\nfield.\nAlways included in service level objective responses for monitor-based service level\nobjectives (but may be empty). Ignored in create/update requests. Does not\naffect which monitors are included in the service level objective (that is\ndetermined entirely by the monitor_ids field).

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

The name of the service level objective object.

\n
\n \n
\n
\n
\n
\n
\n

query

\n
\n

object

\n

A count-based (metric) SLO query. This field is superseded by sli_specification but is retained for backwards compatibility. Note that Datadog only allows the sum by aggregator\nto be used because this will sum up all request counts instead of averaging them, or taking the max or\nmin of all of those requests.

\n
\n
\n
\n
\n
\n

denominator [required]

\n
\n

string

\n

A Datadog metric query for total (valid) events.

\n
\n \n
\n
\n
\n
\n
\n

numerator [required]

\n
\n

string

\n

A Datadog metric query for good events.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

sli_specification

\n
\n

 <oneOf>

\n

A generic SLI specification. This is used for time-slice and count-based (metric) SLOs only.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A time-slice SLI specification.

\n
\n
\n
\n
\n
\n

time_slice [required]

\n
\n

object

\n

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

\n
\n
\n
\n
\n
\n

comparator [required]

\n
\n

enum

\n

The comparator used to compare the SLI value to the threshold. \nAllowed enum values: >,>=,<,<=

\n
\n \n
\n
\n
\n
\n
\n

query [required]

\n
\n

object

\n

The queries and formula used to calculate the SLI value.

\n
\n
\n
\n
\n
\n

formulas [required]

\n
\n

[object]

\n

A list that contains exactly one formula, as only a single formula may be used in a time-slice SLO.

\n
\n
\n
\n
\n
\n

formula [required]

\n
\n

string

\n

The formula string, which is an expression involving named queries.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

queries [required]

\n
\n

[ <oneOf>]

\n

A list of queries that are used to calculate the SLI value.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions metrics query.

\n
\n
\n
\n
\n
\n

aggregator

\n
\n

enum

\n

The aggregation methods available for metrics queries. \nAllowed enum values: avg,min,max,sum,last,area,l2norm,percentile

\n
\n \n
\n
\n
\n
\n
\n

cross_org_uuids

\n
\n

[string]

\n

The source organization UUID for cross organization queries. Feature in Private Beta.

\n
\n \n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for metrics queries. \nAllowed enum values: metrics

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Metrics query definition.

\n
\n \n
\n
\n
\n
\n
\n

semantic_mode

\n
\n

enum

\n

Semantic mode for metrics queries. This determines how metrics from different sources are combined or displayed. \nAllowed enum values: combined,native

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n

query_interval_seconds

\n
\n

enum

\n

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

\n
\n \n
\n
\n
\n
\n
\n

threshold [required]

\n
\n

double

\n

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

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

Option 2

\n
\n

object

\n

A metric SLI specification.

\n
\n
\n
\n
\n
\n

count [required]

\n
\n

object

\n

A count-based (metric) SLI specification, composed of three parts: the good events formula, the total events formula,\nand the underlying queries.

\n
\n
\n
\n
\n
\n

good_events_formula [required]

\n
\n

object

\n

A formula that specifies how to combine the results of multiple queries.

\n
\n
\n
\n
\n
\n

formula [required]

\n
\n

string

\n

The formula string, which is an expression involving named queries.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

queries [required]

\n
\n

[ <oneOf>]

\n
\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions metrics query.

\n
\n
\n
\n
\n
\n

aggregator

\n
\n

enum

\n

The aggregation methods available for metrics queries. \nAllowed enum values: avg,min,max,sum,last,area,l2norm,percentile

\n
\n \n
\n
\n
\n
\n
\n

cross_org_uuids

\n
\n

[string]

\n

The source organization UUID for cross organization queries. Feature in Private Beta.

\n
\n \n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for metrics queries. \nAllowed enum values: metrics

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Metrics query definition.

\n
\n \n
\n
\n
\n
\n
\n

semantic_mode

\n
\n

enum

\n

Semantic mode for metrics queries. This determines how metrics from different sources are combined or displayed. \nAllowed enum values: combined,native

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

total_events_formula [required]

\n
\n

object

\n

A formula that specifies how to combine the results of multiple queries.

\n
\n
\n
\n
\n
\n

formula [required]

\n
\n

string

\n

The formula string, which is an expression involving named queries.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n

tags

\n
\n

[string]

\n

A list of tags associated with this service level objective.\nAlways included in service level objective responses (but may be empty).\nOptional in create/update requests.

\n
\n \n
\n
\n
\n
\n
\n

target_threshold

\n
\n

double

\n

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

\n
\n \n
\n
\n
\n
\n
\n

thresholds [required]

\n
\n

[object]

\n

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

\n
\n
\n
\n
\n
\n

target [required]

\n
\n

double

\n

The target value for the service level indicator within the corresponding\ntimeframe.

\n
\n \n
\n
\n
\n
\n
\n

target_display

\n
\n

string

\n

A string representation of the target that indicates its precision.\nIt uses trailing zeros to show significant decimal places (for example 98.00).

Always included in service level objective responses. Ignored in\ncreate/update requests.

\n
\n \n
\n
\n
\n
\n
\n

timeframe [required]

\n
\n

enum

\n

The SLO time window options. Note that "custom" is not a valid option for creating\nor updating SLOs. It is only used when querying SLO history over custom timeframes. \nAllowed enum values: 7d,30d,90d,custom

\n
\n \n
\n
\n
\n
\n
\n

warning

\n
\n

double

\n

The warning value for the service level objective.

\n
\n \n
\n
\n
\n
\n
\n

warning_display

\n
\n

string

\n

A string representation of the warning target (see the description of\nthe target_display field for details).

Included in service level objective responses if a warning target exists.\nIgnored in create/update requests.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

timeframe

\n
\n

enum

\n

The SLO time window options. Note that "custom" is not a valid option for creating\nor updating SLOs. It is only used when querying SLO history over custom timeframes. \nAllowed enum values: 7d,30d,90d,custom

\n
\n \n
\n
\n
\n
\n
\n

type [required]

\n
\n

enum

\n

The type of the service level objective. \nAllowed enum values: metric,monitor,time_slice

\n
\n \n
\n
\n
\n
\n
\n

warning_threshold

\n
\n

double

\n

The optional warning threshold such that when the service level indicator is\nbelow this value for the given threshold, but above the target threshold, the\nobjective appears in a "warning" state. This value must be greater than the target\nthreshold.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

errors

\n
\n

[string]

\n

An array of error messages. Each endpoint documents how/whether this field is\nused.

\n
\n \n
\n
\n
\n
\n
\n

metadata

\n
\n

object

\n

The metadata object containing additional information about the list of SLOs.

\n
\n
\n
\n
\n
\n

page

\n
\n

object

\n

The object containing information about the pages of the list of SLOs.

\n
\n
\n
\n
\n
\n

total_count

\n
\n

int64

\n

The total number of resources that could be retrieved ignoring the parameters and filters in the request.

\n
\n \n
\n
\n
\n
\n
\n

total_filtered_count

\n
\n

int64

\n

The total number of resources that match the parameters and filters in the request. This attribute can be used by a client to determine the total number of pages.

\n
\n \n
\n
\n
\n
\n
\n
" + "html": "
\n
\n
\n
\n

data

\n
\n

[object]

\n

An array of service level objective objects.

\n
\n
\n
\n
\n
\n

created_at

\n
\n

int64

\n

Creation timestamp (UNIX time in seconds)

Always included in service level objective responses.

\n
\n \n
\n
\n
\n
\n
\n

creator

\n
\n

object

\n

Object describing the creator of the shared element.

\n
\n
\n
\n
\n
\n

email

\n
\n

string

\n

Email of the creator.

\n
\n \n
\n
\n
\n
\n
\n

handle

\n
\n

string

\n

Handle of the creator.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the creator.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

description

\n
\n

string

\n

A user-defined description of the service level objective.

Always included in service level objective responses (but may be null).\nOptional in create/update requests.

\n
\n \n
\n
\n
\n
\n
\n

groups

\n
\n

[string]

\n

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\ncreate/update requests for monitor service level objectives, but may only be\nused when then length of the monitor_ids field is one.

\n
\n \n
\n
\n
\n
\n
\n

id

\n
\n

string

\n

A unique identifier for the service level objective object.

Always included in service level objective responses.

\n
\n \n
\n
\n
\n
\n
\n

modified_at

\n
\n

int64

\n

Modification timestamp (UNIX time in seconds)

Always included in service level objective responses.

\n
\n \n
\n
\n
\n
\n
\n

monitor_ids

\n
\n

[integer]

\n

A list of monitor ids that defines the scope of a monitor service level\nobjective. Required if type is monitor.

\n
\n \n
\n
\n
\n
\n
\n

monitor_tags

\n
\n

[string]

\n

The union of monitor tags for all monitors referenced by the monitor_ids\nfield.\nAlways included in service level objective responses for monitor-based service level\nobjectives (but may be empty). Ignored in create/update requests. Does not\naffect which monitors are included in the service level objective (that is\ndetermined entirely by the monitor_ids field).

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

The name of the service level objective object.

\n
\n \n
\n
\n
\n
\n
\n

query

\n
\n

object

\n

A count-based (metric) SLO query. This field is superseded by sli_specification but is retained for backwards compatibility. Note that Datadog only allows the sum by aggregator\nto be used because this will sum up all request counts instead of averaging them, or taking the max or\nmin of all of those requests.

\n
\n
\n
\n
\n
\n

denominator [required]

\n
\n

string

\n

A Datadog metric query for total (valid) events.

\n
\n \n
\n
\n
\n
\n
\n

numerator [required]

\n
\n

string

\n

A Datadog metric query for good events.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

sli_specification

\n
\n

 <oneOf>

\n

A generic SLI specification. This is used for time-slice and count-based (metric) SLOs only.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A time-slice SLI specification.

\n
\n
\n
\n
\n
\n

time_slice [required]

\n
\n

object

\n

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

\n
\n
\n
\n
\n
\n

comparator [required]

\n
\n

enum

\n

The comparator used to compare the SLI value to the threshold. \nAllowed enum values: >,>=,<,<=

\n
\n \n
\n
\n
\n
\n
\n

query [required]

\n
\n

object

\n

The queries and formula used to calculate the SLI value.

\n
\n
\n
\n
\n
\n

formulas [required]

\n
\n

[object]

\n

A list that contains exactly one formula, as only a single formula may be used in a time-slice SLO.

\n
\n
\n
\n
\n
\n

formula [required]

\n
\n

string

\n

The formula string, which is an expression involving named queries.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

queries [required]

\n
\n

[ <oneOf>]

\n

A list of queries that are used to calculate the SLI value.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions metrics query.

\n
\n
\n
\n
\n
\n

aggregator

\n
\n

enum

\n

The aggregation methods available for metrics queries. \nAllowed enum values: avg,min,max,sum,last,area,l2norm,percentile

\n
\n \n
\n
\n
\n
\n
\n

cross_org_uuids

\n
\n

[string]

\n

The source organization UUID for cross organization queries. Feature in Private Beta.

\n
\n \n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for metrics queries. \nAllowed enum values: metrics

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Metrics query definition.

\n
\n \n
\n
\n
\n
\n
\n

semantic_mode

\n
\n

enum

\n

Semantic mode for metrics queries. This determines how metrics from different sources are combined or displayed. \nAllowed enum values: combined,native

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n

query_interval_seconds

\n
\n

enum

\n

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

\n
\n \n
\n
\n
\n
\n
\n

threshold [required]

\n
\n

double

\n

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

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

Option 2

\n
\n

object

\n

A metric SLI specification.

\n
\n
\n
\n
\n
\n

count [required]

\n
\n

 <oneOf>

\n

A count-based (metric) SLI specification, composed of three parts: the good events formula,\nthe bad or total events formula, and the underlying queries.\nExactly one of total_events_formula or bad_events_formula must be provided.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n
\n
\n
\n
\n
\n
\n

good_events_formula [required]

\n
\n

object

\n

A formula that specifies how to combine the results of multiple queries.

\n
\n
\n
\n
\n
\n

formula [required]

\n
\n

string

\n

The formula string, which is an expression involving named queries.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

queries [required]

\n
\n

[ <oneOf>]

\n
\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions metrics query.

\n
\n
\n
\n
\n
\n

aggregator

\n
\n

enum

\n

The aggregation methods available for metrics queries. \nAllowed enum values: avg,min,max,sum,last,area,l2norm,percentile

\n
\n \n
\n
\n
\n
\n
\n

cross_org_uuids

\n
\n

[string]

\n

The source organization UUID for cross organization queries. Feature in Private Beta.

\n
\n \n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for metrics queries. \nAllowed enum values: metrics

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Metrics query definition.

\n
\n \n
\n
\n
\n
\n
\n

semantic_mode

\n
\n

enum

\n

Semantic mode for metrics queries. This determines how metrics from different sources are combined or displayed. \nAllowed enum values: combined,native

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

total_events_formula [required]

\n
\n

object

\n

The total events formula. Bad events queries can be defined using the bad_events_formula field as an alternative. Only one of total_events_formula or bad_events_formula must be provided.

\n
\n
\n
\n
\n
\n

formula [required]

\n
\n

string

\n

The formula string, which is an expression involving named queries.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

Option 2

\n
\n

object

\n
\n
\n
\n
\n
\n
\n

bad_events_formula [required]

\n
\n

object

\n

The bad events formula (recommended). Total events queries can be defined using the total_events_formula field as an alternative. Only one of total_events_formula or bad_events_formula must be provided.

\n
\n
\n
\n
\n
\n

formula [required]

\n
\n

string

\n

The formula string, which is an expression involving named queries.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

good_events_formula [required]

\n
\n

object

\n

A formula that specifies how to combine the results of multiple queries.

\n
\n
\n
\n
\n
\n

formula [required]

\n
\n

string

\n

The formula string, which is an expression involving named queries.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

queries [required]

\n
\n

[ <oneOf>]

\n
\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions metrics query.

\n
\n
\n
\n
\n
\n

aggregator

\n
\n

enum

\n

The aggregation methods available for metrics queries. \nAllowed enum values: avg,min,max,sum,last,area,l2norm,percentile

\n
\n \n
\n
\n
\n
\n
\n

cross_org_uuids

\n
\n

[string]

\n

The source organization UUID for cross organization queries. Feature in Private Beta.

\n
\n \n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for metrics queries. \nAllowed enum values: metrics

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Metrics query definition.

\n
\n \n
\n
\n
\n
\n
\n

semantic_mode

\n
\n

enum

\n

Semantic mode for metrics queries. This determines how metrics from different sources are combined or displayed. \nAllowed enum values: combined,native

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n

tags

\n
\n

[string]

\n

A list of tags associated with this service level objective.\nAlways included in service level objective responses (but may be empty).\nOptional in create/update requests.

\n
\n \n
\n
\n
\n
\n
\n

target_threshold

\n
\n

double

\n

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

\n
\n \n
\n
\n
\n
\n
\n

thresholds [required]

\n
\n

[object]

\n

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

\n
\n
\n
\n
\n
\n

target [required]

\n
\n

double

\n

The target value for the service level indicator within the corresponding\ntimeframe.

\n
\n \n
\n
\n
\n
\n
\n

target_display

\n
\n

string

\n

A string representation of the target that indicates its precision.\nIt uses trailing zeros to show significant decimal places (for example 98.00).

Always included in service level objective responses. Ignored in\ncreate/update requests.

\n
\n \n
\n
\n
\n
\n
\n

timeframe [required]

\n
\n

enum

\n

The SLO time window options. Note that "custom" is not a valid option for creating\nor updating SLOs. It is only used when querying SLO history over custom timeframes. \nAllowed enum values: 7d,30d,90d,custom

\n
\n \n
\n
\n
\n
\n
\n

warning

\n
\n

double

\n

The warning value for the service level objective.

\n
\n \n
\n
\n
\n
\n
\n

warning_display

\n
\n

string

\n

A string representation of the warning target (see the description of\nthe target_display field for details).

Included in service level objective responses if a warning target exists.\nIgnored in create/update requests.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

timeframe

\n
\n

enum

\n

The SLO time window options. Note that "custom" is not a valid option for creating\nor updating SLOs. It is only used when querying SLO history over custom timeframes. \nAllowed enum values: 7d,30d,90d,custom

\n
\n \n
\n
\n
\n
\n
\n

type [required]

\n
\n

enum

\n

The type of the service level objective. \nAllowed enum values: metric,monitor,time_slice

\n
\n \n
\n
\n
\n
\n
\n

warning_threshold

\n
\n

double

\n

The optional warning threshold such that when the service level indicator is\nbelow this value for the given threshold, but above the target threshold, the\nobjective appears in a "warning" state. This value must be greater than the target\nthreshold.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

errors

\n
\n

[string]

\n

An array of error messages. Each endpoint documents how/whether this field is\nused.

\n
\n \n
\n
\n
\n
\n
\n

metadata

\n
\n

object

\n

The metadata object containing additional information about the list of SLOs.

\n
\n
\n
\n
\n
\n

page

\n
\n

object

\n

The object containing information about the pages of the list of SLOs.

\n
\n
\n
\n
\n
\n

total_count

\n
\n

int64

\n

The total number of resources that could be retrieved ignoring the parameters and filters in the request.

\n
\n \n
\n
\n
\n
\n
\n

total_filtered_count

\n
\n

int64

\n

The total number of resources that match the parameters and filters in the request. This attribute can be used by a client to determine the total number of pages.

\n
\n \n
\n
\n
\n
\n
\n
" }, "400": { "json": { @@ -180,7 +180,7 @@ } } }, - "html": "
\n
\n
\n
\n

data

\n
\n

[object]

\n

An array of service level objective objects.

\n
\n
\n
\n
\n
\n

created_at

\n
\n

int64

\n

Creation timestamp (UNIX time in seconds)

Always included in service level objective responses.

\n
\n \n
\n
\n
\n
\n
\n

creator

\n
\n

object

\n

Object describing the creator of the shared element.

\n
\n
\n
\n
\n
\n

email

\n
\n

string

\n

Email of the creator.

\n
\n \n
\n
\n
\n
\n
\n

handle

\n
\n

string

\n

Handle of the creator.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the creator.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

description

\n
\n

string

\n

A user-defined description of the service level objective.

Always included in service level objective responses (but may be null).\nOptional in create/update requests.

\n
\n \n
\n
\n
\n
\n
\n

groups

\n
\n

[string]

\n

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\ncreate/update requests for monitor service level objectives, but may only be\nused when then length of the monitor_ids field is one.

\n
\n \n
\n
\n
\n
\n
\n

id

\n
\n

string

\n

A unique identifier for the service level objective object.

Always included in service level objective responses.

\n
\n \n
\n
\n
\n
\n
\n

modified_at

\n
\n

int64

\n

Modification timestamp (UNIX time in seconds)

Always included in service level objective responses.

\n
\n \n
\n
\n
\n
\n
\n

monitor_ids

\n
\n

[integer]

\n

A list of monitor ids that defines the scope of a monitor service level\nobjective. Required if type is monitor.

\n
\n \n
\n
\n
\n
\n
\n

monitor_tags

\n
\n

[string]

\n

The union of monitor tags for all monitors referenced by the monitor_ids\nfield.\nAlways included in service level objective responses for monitor-based service level\nobjectives (but may be empty). Ignored in create/update requests. Does not\naffect which monitors are included in the service level objective (that is\ndetermined entirely by the monitor_ids field).

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

The name of the service level objective object.

\n
\n \n
\n
\n
\n
\n
\n

query

\n
\n

object

\n

A count-based (metric) SLO query. This field is superseded by sli_specification but is retained for backwards compatibility. Note that Datadog only allows the sum by aggregator\nto be used because this will sum up all request counts instead of averaging them, or taking the max or\nmin of all of those requests.

\n
\n
\n
\n
\n
\n

denominator [required]

\n
\n

string

\n

A Datadog metric query for total (valid) events.

\n
\n \n
\n
\n
\n
\n
\n

numerator [required]

\n
\n

string

\n

A Datadog metric query for good events.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

sli_specification

\n
\n

 <oneOf>

\n

A generic SLI specification. This is used for time-slice and count-based (metric) SLOs only.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A time-slice SLI specification.

\n
\n
\n
\n
\n
\n

time_slice [required]

\n
\n

object

\n

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

\n
\n
\n
\n
\n
\n

comparator [required]

\n
\n

enum

\n

The comparator used to compare the SLI value to the threshold. \nAllowed enum values: >,>=,<,<=

\n
\n \n
\n
\n
\n
\n
\n

query [required]

\n
\n

object

\n

The queries and formula used to calculate the SLI value.

\n
\n
\n
\n
\n
\n

formulas [required]

\n
\n

[object]

\n

A list that contains exactly one formula, as only a single formula may be used in a time-slice SLO.

\n
\n
\n
\n
\n
\n

formula [required]

\n
\n

string

\n

The formula string, which is an expression involving named queries.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

queries [required]

\n
\n

[ <oneOf>]

\n

A list of queries that are used to calculate the SLI value.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions metrics query.

\n
\n
\n
\n
\n
\n

aggregator

\n
\n

enum

\n

The aggregation methods available for metrics queries. \nAllowed enum values: avg,min,max,sum,last,area,l2norm,percentile

\n
\n \n
\n
\n
\n
\n
\n

cross_org_uuids

\n
\n

[string]

\n

The source organization UUID for cross organization queries. Feature in Private Beta.

\n
\n \n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for metrics queries. \nAllowed enum values: metrics

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Metrics query definition.

\n
\n \n
\n
\n
\n
\n
\n

semantic_mode

\n
\n

enum

\n

Semantic mode for metrics queries. This determines how metrics from different sources are combined or displayed. \nAllowed enum values: combined,native

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n

query_interval_seconds

\n
\n

enum

\n

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

\n
\n \n
\n
\n
\n
\n
\n

threshold [required]

\n
\n

double

\n

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

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

Option 2

\n
\n

object

\n

A metric SLI specification.

\n
\n
\n
\n
\n
\n

count [required]

\n
\n

object

\n

A count-based (metric) SLI specification, composed of three parts: the good events formula, the total events formula,\nand the underlying queries.

\n
\n
\n
\n
\n
\n

good_events_formula [required]

\n
\n

object

\n

A formula that specifies how to combine the results of multiple queries.

\n
\n
\n
\n
\n
\n

formula [required]

\n
\n

string

\n

The formula string, which is an expression involving named queries.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

queries [required]

\n
\n

[ <oneOf>]

\n
\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions metrics query.

\n
\n
\n
\n
\n
\n

aggregator

\n
\n

enum

\n

The aggregation methods available for metrics queries. \nAllowed enum values: avg,min,max,sum,last,area,l2norm,percentile

\n
\n \n
\n
\n
\n
\n
\n

cross_org_uuids

\n
\n

[string]

\n

The source organization UUID for cross organization queries. Feature in Private Beta.

\n
\n \n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for metrics queries. \nAllowed enum values: metrics

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Metrics query definition.

\n
\n \n
\n
\n
\n
\n
\n

semantic_mode

\n
\n

enum

\n

Semantic mode for metrics queries. This determines how metrics from different sources are combined or displayed. \nAllowed enum values: combined,native

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

total_events_formula [required]

\n
\n

object

\n

A formula that specifies how to combine the results of multiple queries.

\n
\n
\n
\n
\n
\n

formula [required]

\n
\n

string

\n

The formula string, which is an expression involving named queries.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n

tags

\n
\n

[string]

\n

A list of tags associated with this service level objective.\nAlways included in service level objective responses (but may be empty).\nOptional in create/update requests.

\n
\n \n
\n
\n
\n
\n
\n

target_threshold

\n
\n

double

\n

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

\n
\n \n
\n
\n
\n
\n
\n

thresholds [required]

\n
\n

[object]

\n

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

\n
\n
\n
\n
\n
\n

target [required]

\n
\n

double

\n

The target value for the service level indicator within the corresponding\ntimeframe.

\n
\n \n
\n
\n
\n
\n
\n

target_display

\n
\n

string

\n

A string representation of the target that indicates its precision.\nIt uses trailing zeros to show significant decimal places (for example 98.00).

Always included in service level objective responses. Ignored in\ncreate/update requests.

\n
\n \n
\n
\n
\n
\n
\n

timeframe [required]

\n
\n

enum

\n

The SLO time window options. Note that "custom" is not a valid option for creating\nor updating SLOs. It is only used when querying SLO history over custom timeframes. \nAllowed enum values: 7d,30d,90d,custom

\n
\n \n
\n
\n
\n
\n
\n

warning

\n
\n

double

\n

The warning value for the service level objective.

\n
\n \n
\n
\n
\n
\n
\n

warning_display

\n
\n

string

\n

A string representation of the warning target (see the description of\nthe target_display field for details).

Included in service level objective responses if a warning target exists.\nIgnored in create/update requests.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

timeframe

\n
\n

enum

\n

The SLO time window options. Note that "custom" is not a valid option for creating\nor updating SLOs. It is only used when querying SLO history over custom timeframes. \nAllowed enum values: 7d,30d,90d,custom

\n
\n \n
\n
\n
\n
\n
\n

type [required]

\n
\n

enum

\n

The type of the service level objective. \nAllowed enum values: metric,monitor,time_slice

\n
\n \n
\n
\n
\n
\n
\n

warning_threshold

\n
\n

double

\n

The optional warning threshold such that when the service level indicator is\nbelow this value for the given threshold, but above the target threshold, the\nobjective appears in a "warning" state. This value must be greater than the target\nthreshold.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

errors

\n
\n

[string]

\n

An array of error messages. Each endpoint documents how/whether this field is\nused.

\n
\n \n
\n
\n
\n
\n
\n

metadata

\n
\n

object

\n

The metadata object containing additional information about the list of SLOs.

\n
\n
\n
\n
\n
\n

page

\n
\n

object

\n

The object containing information about the pages of the list of SLOs.

\n
\n
\n
\n
\n
\n

total_count

\n
\n

int64

\n

The total number of resources that could be retrieved ignoring the parameters and filters in the request.

\n
\n \n
\n
\n
\n
\n
\n

total_filtered_count

\n
\n

int64

\n

The total number of resources that match the parameters and filters in the request. This attribute can be used by a client to determine the total number of pages.

\n
\n \n
\n
\n
\n
\n
\n
" + "html": "
\n
\n
\n
\n

data

\n
\n

[object]

\n

An array of service level objective objects.

\n
\n
\n
\n
\n
\n

created_at

\n
\n

int64

\n

Creation timestamp (UNIX time in seconds)

Always included in service level objective responses.

\n
\n \n
\n
\n
\n
\n
\n

creator

\n
\n

object

\n

Object describing the creator of the shared element.

\n
\n
\n
\n
\n
\n

email

\n
\n

string

\n

Email of the creator.

\n
\n \n
\n
\n
\n
\n
\n

handle

\n
\n

string

\n

Handle of the creator.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the creator.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

description

\n
\n

string

\n

A user-defined description of the service level objective.

Always included in service level objective responses (but may be null).\nOptional in create/update requests.

\n
\n \n
\n
\n
\n
\n
\n

groups

\n
\n

[string]

\n

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\ncreate/update requests for monitor service level objectives, but may only be\nused when then length of the monitor_ids field is one.

\n
\n \n
\n
\n
\n
\n
\n

id

\n
\n

string

\n

A unique identifier for the service level objective object.

Always included in service level objective responses.

\n
\n \n
\n
\n
\n
\n
\n

modified_at

\n
\n

int64

\n

Modification timestamp (UNIX time in seconds)

Always included in service level objective responses.

\n
\n \n
\n
\n
\n
\n
\n

monitor_ids

\n
\n

[integer]

\n

A list of monitor ids that defines the scope of a monitor service level\nobjective. Required if type is monitor.

\n
\n \n
\n
\n
\n
\n
\n

monitor_tags

\n
\n

[string]

\n

The union of monitor tags for all monitors referenced by the monitor_ids\nfield.\nAlways included in service level objective responses for monitor-based service level\nobjectives (but may be empty). Ignored in create/update requests. Does not\naffect which monitors are included in the service level objective (that is\ndetermined entirely by the monitor_ids field).

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

The name of the service level objective object.

\n
\n \n
\n
\n
\n
\n
\n

query

\n
\n

object

\n

A count-based (metric) SLO query. This field is superseded by sli_specification but is retained for backwards compatibility. Note that Datadog only allows the sum by aggregator\nto be used because this will sum up all request counts instead of averaging them, or taking the max or\nmin of all of those requests.

\n
\n
\n
\n
\n
\n

denominator [required]

\n
\n

string

\n

A Datadog metric query for total (valid) events.

\n
\n \n
\n
\n
\n
\n
\n

numerator [required]

\n
\n

string

\n

A Datadog metric query for good events.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

sli_specification

\n
\n

 <oneOf>

\n

A generic SLI specification. This is used for time-slice and count-based (metric) SLOs only.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A time-slice SLI specification.

\n
\n
\n
\n
\n
\n

time_slice [required]

\n
\n

object

\n

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

\n
\n
\n
\n
\n
\n

comparator [required]

\n
\n

enum

\n

The comparator used to compare the SLI value to the threshold. \nAllowed enum values: >,>=,<,<=

\n
\n \n
\n
\n
\n
\n
\n

query [required]

\n
\n

object

\n

The queries and formula used to calculate the SLI value.

\n
\n
\n
\n
\n
\n

formulas [required]

\n
\n

[object]

\n

A list that contains exactly one formula, as only a single formula may be used in a time-slice SLO.

\n
\n
\n
\n
\n
\n

formula [required]

\n
\n

string

\n

The formula string, which is an expression involving named queries.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

queries [required]

\n
\n

[ <oneOf>]

\n

A list of queries that are used to calculate the SLI value.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions metrics query.

\n
\n
\n
\n
\n
\n

aggregator

\n
\n

enum

\n

The aggregation methods available for metrics queries. \nAllowed enum values: avg,min,max,sum,last,area,l2norm,percentile

\n
\n \n
\n
\n
\n
\n
\n

cross_org_uuids

\n
\n

[string]

\n

The source organization UUID for cross organization queries. Feature in Private Beta.

\n
\n \n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for metrics queries. \nAllowed enum values: metrics

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Metrics query definition.

\n
\n \n
\n
\n
\n
\n
\n

semantic_mode

\n
\n

enum

\n

Semantic mode for metrics queries. This determines how metrics from different sources are combined or displayed. \nAllowed enum values: combined,native

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n

query_interval_seconds

\n
\n

enum

\n

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

\n
\n \n
\n
\n
\n
\n
\n

threshold [required]

\n
\n

double

\n

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

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

Option 2

\n
\n

object

\n

A metric SLI specification.

\n
\n
\n
\n
\n
\n

count [required]

\n
\n

 <oneOf>

\n

A count-based (metric) SLI specification, composed of three parts: the good events formula,\nthe bad or total events formula, and the underlying queries.\nExactly one of total_events_formula or bad_events_formula must be provided.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n
\n
\n
\n
\n
\n
\n

good_events_formula [required]

\n
\n

object

\n

A formula that specifies how to combine the results of multiple queries.

\n
\n
\n
\n
\n
\n

formula [required]

\n
\n

string

\n

The formula string, which is an expression involving named queries.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

queries [required]

\n
\n

[ <oneOf>]

\n
\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions metrics query.

\n
\n
\n
\n
\n
\n

aggregator

\n
\n

enum

\n

The aggregation methods available for metrics queries. \nAllowed enum values: avg,min,max,sum,last,area,l2norm,percentile

\n
\n \n
\n
\n
\n
\n
\n

cross_org_uuids

\n
\n

[string]

\n

The source organization UUID for cross organization queries. Feature in Private Beta.

\n
\n \n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for metrics queries. \nAllowed enum values: metrics

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Metrics query definition.

\n
\n \n
\n
\n
\n
\n
\n

semantic_mode

\n
\n

enum

\n

Semantic mode for metrics queries. This determines how metrics from different sources are combined or displayed. \nAllowed enum values: combined,native

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

total_events_formula [required]

\n
\n

object

\n

The total events formula. Bad events queries can be defined using the bad_events_formula field as an alternative. Only one of total_events_formula or bad_events_formula must be provided.

\n
\n
\n
\n
\n
\n

formula [required]

\n
\n

string

\n

The formula string, which is an expression involving named queries.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

Option 2

\n
\n

object

\n
\n
\n
\n
\n
\n
\n

bad_events_formula [required]

\n
\n

object

\n

The bad events formula (recommended). Total events queries can be defined using the total_events_formula field as an alternative. Only one of total_events_formula or bad_events_formula must be provided.

\n
\n
\n
\n
\n
\n

formula [required]

\n
\n

string

\n

The formula string, which is an expression involving named queries.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

good_events_formula [required]

\n
\n

object

\n

A formula that specifies how to combine the results of multiple queries.

\n
\n
\n
\n
\n
\n

formula [required]

\n
\n

string

\n

The formula string, which is an expression involving named queries.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

queries [required]

\n
\n

[ <oneOf>]

\n
\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions metrics query.

\n
\n
\n
\n
\n
\n

aggregator

\n
\n

enum

\n

The aggregation methods available for metrics queries. \nAllowed enum values: avg,min,max,sum,last,area,l2norm,percentile

\n
\n \n
\n
\n
\n
\n
\n

cross_org_uuids

\n
\n

[string]

\n

The source organization UUID for cross organization queries. Feature in Private Beta.

\n
\n \n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for metrics queries. \nAllowed enum values: metrics

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Metrics query definition.

\n
\n \n
\n
\n
\n
\n
\n

semantic_mode

\n
\n

enum

\n

Semantic mode for metrics queries. This determines how metrics from different sources are combined or displayed. \nAllowed enum values: combined,native

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n

tags

\n
\n

[string]

\n

A list of tags associated with this service level objective.\nAlways included in service level objective responses (but may be empty).\nOptional in create/update requests.

\n
\n \n
\n
\n
\n
\n
\n

target_threshold

\n
\n

double

\n

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

\n
\n \n
\n
\n
\n
\n
\n

thresholds [required]

\n
\n

[object]

\n

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

\n
\n
\n
\n
\n
\n

target [required]

\n
\n

double

\n

The target value for the service level indicator within the corresponding\ntimeframe.

\n
\n \n
\n
\n
\n
\n
\n

target_display

\n
\n

string

\n

A string representation of the target that indicates its precision.\nIt uses trailing zeros to show significant decimal places (for example 98.00).

Always included in service level objective responses. Ignored in\ncreate/update requests.

\n
\n \n
\n
\n
\n
\n
\n

timeframe [required]

\n
\n

enum

\n

The SLO time window options. Note that "custom" is not a valid option for creating\nor updating SLOs. It is only used when querying SLO history over custom timeframes. \nAllowed enum values: 7d,30d,90d,custom

\n
\n \n
\n
\n
\n
\n
\n

warning

\n
\n

double

\n

The warning value for the service level objective.

\n
\n \n
\n
\n
\n
\n
\n

warning_display

\n
\n

string

\n

A string representation of the warning target (see the description of\nthe target_display field for details).

Included in service level objective responses if a warning target exists.\nIgnored in create/update requests.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

timeframe

\n
\n

enum

\n

The SLO time window options. Note that "custom" is not a valid option for creating\nor updating SLOs. It is only used when querying SLO history over custom timeframes. \nAllowed enum values: 7d,30d,90d,custom

\n
\n \n
\n
\n
\n
\n
\n

type [required]

\n
\n

enum

\n

The type of the service level objective. \nAllowed enum values: metric,monitor,time_slice

\n
\n \n
\n
\n
\n
\n
\n

warning_threshold

\n
\n

double

\n

The optional warning threshold such that when the service level indicator is\nbelow this value for the given threshold, but above the target threshold, the\nobjective appears in a "warning" state. This value must be greater than the target\nthreshold.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

errors

\n
\n

[string]

\n

An array of error messages. Each endpoint documents how/whether this field is\nused.

\n
\n \n
\n
\n
\n
\n
\n

metadata

\n
\n

object

\n

The metadata object containing additional information about the list of SLOs.

\n
\n
\n
\n
\n
\n

page

\n
\n

object

\n

The object containing information about the pages of the list of SLOs.

\n
\n
\n
\n
\n
\n

total_count

\n
\n

int64

\n

The total number of resources that could be retrieved ignoring the parameters and filters in the request.

\n
\n \n
\n
\n
\n
\n
\n

total_filtered_count

\n
\n

int64

\n

The total number of resources that match the parameters and filters in the request. This attribute can be used by a client to determine the total number of pages.

\n
\n \n
\n
\n
\n
\n
\n
" }, "400": { "json": { @@ -285,7 +285,7 @@ "type": "metric", "warning_threshold": 99.95 }, - "html": "
\n
\n
\n
\n

description

\n
\n

string

\n

A user-defined description of the service level objective.

Always included in service level objective responses (but may be null).\nOptional in create/update requests.

\n
\n \n
\n
\n
\n
\n
\n

groups

\n
\n

[string]

\n

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\ncreate/update requests for monitor service level objectives, but may only be\nused when then length of the monitor_ids field is one.

\n
\n \n
\n
\n
\n
\n
\n

monitor_ids

\n
\n

[integer]

\n

A list of monitor IDs that defines the scope of a monitor service level\nobjective. Required if type is monitor.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

The name of the service level objective object.

\n
\n \n
\n
\n
\n
\n
\n

query

\n
\n

object

\n

A count-based (metric) SLO query. This field is superseded by sli_specification but is retained for backwards compatibility. Note that Datadog only allows the sum by aggregator\nto be used because this will sum up all request counts instead of averaging them, or taking the max or\nmin of all of those requests.

\n
\n
\n
\n
\n
\n

denominator [required]

\n
\n

string

\n

A Datadog metric query for total (valid) events.

\n
\n \n
\n
\n
\n
\n
\n

numerator [required]

\n
\n

string

\n

A Datadog metric query for good events.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

sli_specification

\n
\n

 <oneOf>

\n

A generic SLI specification. This is used for time-slice and count-based (metric) SLOs only.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A time-slice SLI specification.

\n
\n
\n
\n
\n
\n

time_slice [required]

\n
\n

object

\n

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

\n
\n
\n
\n
\n
\n

comparator [required]

\n
\n

enum

\n

The comparator used to compare the SLI value to the threshold. \nAllowed enum values: >,>=,<,<=

\n
\n \n
\n
\n
\n
\n
\n

query [required]

\n
\n

object

\n

The queries and formula used to calculate the SLI value.

\n
\n
\n
\n
\n
\n

formulas [required]

\n
\n

[object]

\n

A list that contains exactly one formula, as only a single formula may be used in a time-slice SLO.

\n
\n
\n
\n
\n
\n

formula [required]

\n
\n

string

\n

The formula string, which is an expression involving named queries.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

queries [required]

\n
\n

[ <oneOf>]

\n

A list of queries that are used to calculate the SLI value.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions metrics query.

\n
\n
\n
\n
\n
\n

aggregator

\n
\n

enum

\n

The aggregation methods available for metrics queries. \nAllowed enum values: avg,min,max,sum,last,area,l2norm,percentile

\n
\n \n
\n
\n
\n
\n
\n

cross_org_uuids

\n
\n

[string]

\n

The source organization UUID for cross organization queries. Feature in Private Beta.

\n
\n \n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for metrics queries. \nAllowed enum values: metrics

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Metrics query definition.

\n
\n \n
\n
\n
\n
\n
\n

semantic_mode

\n
\n

enum

\n

Semantic mode for metrics queries. This determines how metrics from different sources are combined or displayed. \nAllowed enum values: combined,native

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n

query_interval_seconds

\n
\n

enum

\n

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

\n
\n \n
\n
\n
\n
\n
\n

threshold [required]

\n
\n

double

\n

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

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

Option 2

\n
\n

object

\n

A metric SLI specification.

\n
\n
\n
\n
\n
\n

count [required]

\n
\n

object

\n

A count-based (metric) SLI specification, composed of three parts: the good events formula, the total events formula,\nand the underlying queries.

\n
\n
\n
\n
\n
\n

good_events_formula [required]

\n
\n

object

\n

A formula that specifies how to combine the results of multiple queries.

\n
\n
\n
\n
\n
\n

formula [required]

\n
\n

string

\n

The formula string, which is an expression involving named queries.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

queries [required]

\n
\n

[ <oneOf>]

\n
\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions metrics query.

\n
\n
\n
\n
\n
\n

aggregator

\n
\n

enum

\n

The aggregation methods available for metrics queries. \nAllowed enum values: avg,min,max,sum,last,area,l2norm,percentile

\n
\n \n
\n
\n
\n
\n
\n

cross_org_uuids

\n
\n

[string]

\n

The source organization UUID for cross organization queries. Feature in Private Beta.

\n
\n \n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for metrics queries. \nAllowed enum values: metrics

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Metrics query definition.

\n
\n \n
\n
\n
\n
\n
\n

semantic_mode

\n
\n

enum

\n

Semantic mode for metrics queries. This determines how metrics from different sources are combined or displayed. \nAllowed enum values: combined,native

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

total_events_formula [required]

\n
\n

object

\n

A formula that specifies how to combine the results of multiple queries.

\n
\n
\n
\n
\n
\n

formula [required]

\n
\n

string

\n

The formula string, which is an expression involving named queries.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n

tags

\n
\n

[string]

\n

A list of tags associated with this service level objective.\nAlways included in service level objective responses (but may be empty).\nOptional in create/update requests.

\n
\n \n
\n
\n
\n
\n
\n

target_threshold

\n
\n

double

\n

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

\n
\n \n
\n
\n
\n
\n
\n

thresholds [required]

\n
\n

[object]

\n

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

\n
\n
\n
\n
\n
\n

target [required]

\n
\n

double

\n

The target value for the service level indicator within the corresponding\ntimeframe.

\n
\n \n
\n
\n
\n
\n
\n

target_display

\n
\n

string

\n

A string representation of the target that indicates its precision.\nIt uses trailing zeros to show significant decimal places (for example 98.00).

Always included in service level objective responses. Ignored in\ncreate/update requests.

\n
\n \n
\n
\n
\n
\n
\n

timeframe [required]

\n
\n

enum

\n

The SLO time window options. Note that "custom" is not a valid option for creating\nor updating SLOs. It is only used when querying SLO history over custom timeframes. \nAllowed enum values: 7d,30d,90d,custom

\n
\n \n
\n
\n
\n
\n
\n

warning

\n
\n

double

\n

The warning value for the service level objective.

\n
\n \n
\n
\n
\n
\n
\n

warning_display

\n
\n

string

\n

A string representation of the warning target (see the description of\nthe target_display field for details).

Included in service level objective responses if a warning target exists.\nIgnored in create/update requests.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

timeframe

\n
\n

enum

\n

The SLO time window options. Note that "custom" is not a valid option for creating\nor updating SLOs. It is only used when querying SLO history over custom timeframes. \nAllowed enum values: 7d,30d,90d,custom

\n
\n \n
\n
\n
\n
\n
\n

type [required]

\n
\n

enum

\n

The type of the service level objective. \nAllowed enum values: metric,monitor,time_slice

\n
\n \n
\n
\n
\n
\n
\n

warning_threshold

\n
\n

double

\n

The optional warning threshold such that when the service level indicator is\nbelow this value for the given threshold, but above the target threshold, the\nobjective appears in a "warning" state. This value must be greater than the target\nthreshold.

\n
\n \n
\n
" + "html": "
\n
\n
\n
\n

description

\n
\n

string

\n

A user-defined description of the service level objective.

Always included in service level objective responses (but may be null).\nOptional in create/update requests.

\n
\n \n
\n
\n
\n
\n
\n

groups

\n
\n

[string]

\n

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\ncreate/update requests for monitor service level objectives, but may only be\nused when then length of the monitor_ids field is one.

\n
\n \n
\n
\n
\n
\n
\n

monitor_ids

\n
\n

[integer]

\n

A list of monitor IDs that defines the scope of a monitor service level\nobjective. Required if type is monitor.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

The name of the service level objective object.

\n
\n \n
\n
\n
\n
\n
\n

query

\n
\n

object

\n

A count-based (metric) SLO query. This field is superseded by sli_specification but is retained for backwards compatibility. Note that Datadog only allows the sum by aggregator\nto be used because this will sum up all request counts instead of averaging them, or taking the max or\nmin of all of those requests.

\n
\n
\n
\n
\n
\n

denominator [required]

\n
\n

string

\n

A Datadog metric query for total (valid) events.

\n
\n \n
\n
\n
\n
\n
\n

numerator [required]

\n
\n

string

\n

A Datadog metric query for good events.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

sli_specification

\n
\n

 <oneOf>

\n

A generic SLI specification. This is used for time-slice and count-based (metric) SLOs only.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A time-slice SLI specification.

\n
\n
\n
\n
\n
\n

time_slice [required]

\n
\n

object

\n

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

\n
\n
\n
\n
\n
\n

comparator [required]

\n
\n

enum

\n

The comparator used to compare the SLI value to the threshold. \nAllowed enum values: >,>=,<,<=

\n
\n \n
\n
\n
\n
\n
\n

query [required]

\n
\n

object

\n

The queries and formula used to calculate the SLI value.

\n
\n
\n
\n
\n
\n

formulas [required]

\n
\n

[object]

\n

A list that contains exactly one formula, as only a single formula may be used in a time-slice SLO.

\n
\n
\n
\n
\n
\n

formula [required]

\n
\n

string

\n

The formula string, which is an expression involving named queries.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

queries [required]

\n
\n

[ <oneOf>]

\n

A list of queries that are used to calculate the SLI value.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions metrics query.

\n
\n
\n
\n
\n
\n

aggregator

\n
\n

enum

\n

The aggregation methods available for metrics queries. \nAllowed enum values: avg,min,max,sum,last,area,l2norm,percentile

\n
\n \n
\n
\n
\n
\n
\n

cross_org_uuids

\n
\n

[string]

\n

The source organization UUID for cross organization queries. Feature in Private Beta.

\n
\n \n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for metrics queries. \nAllowed enum values: metrics

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Metrics query definition.

\n
\n \n
\n
\n
\n
\n
\n

semantic_mode

\n
\n

enum

\n

Semantic mode for metrics queries. This determines how metrics from different sources are combined or displayed. \nAllowed enum values: combined,native

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n

query_interval_seconds

\n
\n

enum

\n

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

\n
\n \n
\n
\n
\n
\n
\n

threshold [required]

\n
\n

double

\n

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

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

Option 2

\n
\n

object

\n

A metric SLI specification.

\n
\n
\n
\n
\n
\n

count [required]

\n
\n

 <oneOf>

\n

A count-based (metric) SLI specification, composed of three parts: the good events formula,\nthe bad or total events formula, and the underlying queries.\nExactly one of total_events_formula or bad_events_formula must be provided.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n
\n
\n
\n
\n
\n
\n

good_events_formula [required]

\n
\n

object

\n

A formula that specifies how to combine the results of multiple queries.

\n
\n
\n
\n
\n
\n

formula [required]

\n
\n

string

\n

The formula string, which is an expression involving named queries.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

queries [required]

\n
\n

[ <oneOf>]

\n
\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions metrics query.

\n
\n
\n
\n
\n
\n

aggregator

\n
\n

enum

\n

The aggregation methods available for metrics queries. \nAllowed enum values: avg,min,max,sum,last,area,l2norm,percentile

\n
\n \n
\n
\n
\n
\n
\n

cross_org_uuids

\n
\n

[string]

\n

The source organization UUID for cross organization queries. Feature in Private Beta.

\n
\n \n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for metrics queries. \nAllowed enum values: metrics

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Metrics query definition.

\n
\n \n
\n
\n
\n
\n
\n

semantic_mode

\n
\n

enum

\n

Semantic mode for metrics queries. This determines how metrics from different sources are combined or displayed. \nAllowed enum values: combined,native

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

total_events_formula [required]

\n
\n

object

\n

The total events formula. Bad events queries can be defined using the bad_events_formula field as an alternative. Only one of total_events_formula or bad_events_formula must be provided.

\n
\n
\n
\n
\n
\n

formula [required]

\n
\n

string

\n

The formula string, which is an expression involving named queries.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

Option 2

\n
\n

object

\n
\n
\n
\n
\n
\n
\n

bad_events_formula [required]

\n
\n

object

\n

The bad events formula (recommended). Total events queries can be defined using the total_events_formula field as an alternative. Only one of total_events_formula or bad_events_formula must be provided.

\n
\n
\n
\n
\n
\n

formula [required]

\n
\n

string

\n

The formula string, which is an expression involving named queries.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

good_events_formula [required]

\n
\n

object

\n

A formula that specifies how to combine the results of multiple queries.

\n
\n
\n
\n
\n
\n

formula [required]

\n
\n

string

\n

The formula string, which is an expression involving named queries.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

queries [required]

\n
\n

[ <oneOf>]

\n
\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions metrics query.

\n
\n
\n
\n
\n
\n

aggregator

\n
\n

enum

\n

The aggregation methods available for metrics queries. \nAllowed enum values: avg,min,max,sum,last,area,l2norm,percentile

\n
\n \n
\n
\n
\n
\n
\n

cross_org_uuids

\n
\n

[string]

\n

The source organization UUID for cross organization queries. Feature in Private Beta.

\n
\n \n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for metrics queries. \nAllowed enum values: metrics

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Metrics query definition.

\n
\n \n
\n
\n
\n
\n
\n

semantic_mode

\n
\n

enum

\n

Semantic mode for metrics queries. This determines how metrics from different sources are combined or displayed. \nAllowed enum values: combined,native

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n

tags

\n
\n

[string]

\n

A list of tags associated with this service level objective.\nAlways included in service level objective responses (but may be empty).\nOptional in create/update requests.

\n
\n \n
\n
\n
\n
\n
\n

target_threshold

\n
\n

double

\n

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

\n
\n \n
\n
\n
\n
\n
\n

thresholds [required]

\n
\n

[object]

\n

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

\n
\n
\n
\n
\n
\n

target [required]

\n
\n

double

\n

The target value for the service level indicator within the corresponding\ntimeframe.

\n
\n \n
\n
\n
\n
\n
\n

target_display

\n
\n

string

\n

A string representation of the target that indicates its precision.\nIt uses trailing zeros to show significant decimal places (for example 98.00).

Always included in service level objective responses. Ignored in\ncreate/update requests.

\n
\n \n
\n
\n
\n
\n
\n

timeframe [required]

\n
\n

enum

\n

The SLO time window options. Note that "custom" is not a valid option for creating\nor updating SLOs. It is only used when querying SLO history over custom timeframes. \nAllowed enum values: 7d,30d,90d,custom

\n
\n \n
\n
\n
\n
\n
\n

warning

\n
\n

double

\n

The warning value for the service level objective.

\n
\n \n
\n
\n
\n
\n
\n

warning_display

\n
\n

string

\n

A string representation of the warning target (see the description of\nthe target_display field for details).

Included in service level objective responses if a warning target exists.\nIgnored in create/update requests.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

timeframe

\n
\n

enum

\n

The SLO time window options. Note that "custom" is not a valid option for creating\nor updating SLOs. It is only used when querying SLO history over custom timeframes. \nAllowed enum values: 7d,30d,90d,custom

\n
\n \n
\n
\n
\n
\n
\n

type [required]

\n
\n

enum

\n

The type of the service level objective. \nAllowed enum values: metric,monitor,time_slice

\n
\n \n
\n
\n
\n
\n
\n

warning_threshold

\n
\n

double

\n

The optional warning threshold such that when the service level indicator is\nbelow this value for the given threshold, but above the target threshold, the\nobjective appears in a "warning" state. This value must be greater than the target\nthreshold.

\n
\n \n
\n
" } }, "DeleteSLOTimeframeInBulk": { @@ -717,7 +717,7 @@ }, "errors": [] }, - "html": "
\n
\n
\n
\n

data

\n
\n

object

\n

A service level objective object includes a service level indicator, thresholds\nfor one or more timeframes, and metadata (name, description, tags, etc.).

\n
\n
\n
\n
\n
\n

configured_alert_ids

\n
\n

[integer]

\n

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.

\n
\n \n
\n
\n
\n
\n
\n

created_at

\n
\n

int64

\n

Creation timestamp (UNIX time in seconds)

Always included in service level objective responses.

\n
\n \n
\n
\n
\n
\n
\n

creator

\n
\n

object

\n

Object describing the creator of the shared element.

\n
\n
\n
\n
\n
\n

email

\n
\n

string

\n

Email of the creator.

\n
\n \n
\n
\n
\n
\n
\n

handle

\n
\n

string

\n

Handle of the creator.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the creator.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

description

\n
\n

string

\n

A user-defined description of the service level objective.

Always included in service level objective responses (but may be null).\nOptional in create/update requests.

\n
\n \n
\n
\n
\n
\n
\n

groups

\n
\n

[string]

\n

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\ncreate/update requests for monitor service level objectives, but may only be\nused when then length of the monitor_ids field is one.

\n
\n \n
\n
\n
\n
\n
\n

id

\n
\n

string

\n

A unique identifier for the service level objective object.

Always included in service level objective responses.

\n
\n \n
\n
\n
\n
\n
\n

modified_at

\n
\n

int64

\n

Modification timestamp (UNIX time in seconds)

Always included in service level objective responses.

\n
\n \n
\n
\n
\n
\n
\n

monitor_ids

\n
\n

[integer]

\n

A list of monitor ids that defines the scope of a monitor service level\nobjective. Required if type is monitor.

\n
\n \n
\n
\n
\n
\n
\n

monitor_tags

\n
\n

[string]

\n

The union of monitor tags for all monitors referenced by the monitor_ids\nfield.\nAlways included in service level objective responses for monitor service level\nobjectives (but may be empty). Ignored in create/update requests. Does not\naffect which monitors are included in the service level objective (that is\ndetermined entirely by the monitor_ids field).

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name of the service level objective object.

\n
\n \n
\n
\n
\n
\n
\n

query

\n
\n

object

\n

The metric query used to define a count-based SLO as the ratio of good events to total events.

\n
\n
\n
\n
\n
\n

denominator [required]

\n
\n

string

\n

A Datadog metric query for total (valid) events.

\n
\n \n
\n
\n
\n
\n
\n

numerator [required]

\n
\n

string

\n

A Datadog metric query for good events.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

sli_specification

\n
\n

 <oneOf>

\n

A generic SLI specification. This is currently used for time-slice and count-based (metric) SLOs only.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A time-slice SLI specification.

\n
\n
\n
\n
\n
\n

time_slice [required]

\n
\n

object

\n

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

\n
\n
\n
\n
\n
\n

comparator [required]

\n
\n

enum

\n

The comparator used to compare the SLI value to the threshold. \nAllowed enum values: >,>=,<,<=

\n
\n \n
\n
\n
\n
\n
\n

query [required]

\n
\n

object

\n

The queries and formula used to calculate the SLI value.

\n
\n
\n
\n
\n
\n

formulas [required]

\n
\n

[object]

\n

A list that contains exactly one formula, as only a single formula may be used in a time-slice SLO.

\n
\n
\n
\n
\n
\n

formula [required]

\n
\n

string

\n

The formula string, which is an expression involving named queries.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

queries [required]

\n
\n

[ <oneOf>]

\n

A list of queries that are used to calculate the SLI value.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions metrics query.

\n
\n
\n
\n
\n
\n

aggregator

\n
\n

enum

\n

The aggregation methods available for metrics queries. \nAllowed enum values: avg,min,max,sum,last,area,l2norm,percentile

\n
\n \n
\n
\n
\n
\n
\n

cross_org_uuids

\n
\n

[string]

\n

The source organization UUID for cross organization queries. Feature in Private Beta.

\n
\n \n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for metrics queries. \nAllowed enum values: metrics

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Metrics query definition.

\n
\n \n
\n
\n
\n
\n
\n

semantic_mode

\n
\n

enum

\n

Semantic mode for metrics queries. This determines how metrics from different sources are combined or displayed. \nAllowed enum values: combined,native

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n

query_interval_seconds

\n
\n

enum

\n

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

\n
\n \n
\n
\n
\n
\n
\n

threshold [required]

\n
\n

double

\n

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

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

Option 2

\n
\n

object

\n

A metric SLI specification.

\n
\n
\n
\n
\n
\n

count [required]

\n
\n

object

\n

A count-based (metric) SLI specification, composed of three parts: the good events formula, the total events formula,\nand the underlying queries.

\n
\n
\n
\n
\n
\n

good_events_formula [required]

\n
\n

object

\n

A formula that specifies how to combine the results of multiple queries.

\n
\n
\n
\n
\n
\n

formula [required]

\n
\n

string

\n

The formula string, which is an expression involving named queries.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

queries [required]

\n
\n

[ <oneOf>]

\n
\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions metrics query.

\n
\n
\n
\n
\n
\n

aggregator

\n
\n

enum

\n

The aggregation methods available for metrics queries. \nAllowed enum values: avg,min,max,sum,last,area,l2norm,percentile

\n
\n \n
\n
\n
\n
\n
\n

cross_org_uuids

\n
\n

[string]

\n

The source organization UUID for cross organization queries. Feature in Private Beta.

\n
\n \n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for metrics queries. \nAllowed enum values: metrics

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Metrics query definition.

\n
\n \n
\n
\n
\n
\n
\n

semantic_mode

\n
\n

enum

\n

Semantic mode for metrics queries. This determines how metrics from different sources are combined or displayed. \nAllowed enum values: combined,native

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

total_events_formula [required]

\n
\n

object

\n

A formula that specifies how to combine the results of multiple queries.

\n
\n
\n
\n
\n
\n

formula [required]

\n
\n

string

\n

The formula string, which is an expression involving named queries.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n

tags

\n
\n

[string]

\n

A list of tags associated with this service level objective.\nAlways included in service level objective responses (but may be empty).\nOptional in create/update requests.

\n
\n \n
\n
\n
\n
\n
\n

target_threshold

\n
\n

double

\n

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

\n
\n \n
\n
\n
\n
\n
\n

thresholds

\n
\n

[object]

\n

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

\n
\n
\n
\n
\n
\n

target [required]

\n
\n

double

\n

The target value for the service level indicator within the corresponding\ntimeframe.

\n
\n \n
\n
\n
\n
\n
\n

target_display

\n
\n

string

\n

A string representation of the target that indicates its precision.\nIt uses trailing zeros to show significant decimal places (for example 98.00).

Always included in service level objective responses. Ignored in\ncreate/update requests.

\n
\n \n
\n
\n
\n
\n
\n

timeframe [required]

\n
\n

enum

\n

The SLO time window options. Note that "custom" is not a valid option for creating\nor updating SLOs. It is only used when querying SLO history over custom timeframes. \nAllowed enum values: 7d,30d,90d,custom

\n
\n \n
\n
\n
\n
\n
\n

warning

\n
\n

double

\n

The warning value for the service level objective.

\n
\n \n
\n
\n
\n
\n
\n

warning_display

\n
\n

string

\n

A string representation of the warning target (see the description of\nthe target_display field for details).

Included in service level objective responses if a warning target exists.\nIgnored in create/update requests.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

timeframe

\n
\n

enum

\n

The SLO time window options. Note that "custom" is not a valid option for creating\nor updating SLOs. It is only used when querying SLO history over custom timeframes. \nAllowed enum values: 7d,30d,90d,custom

\n
\n \n
\n
\n
\n
\n
\n

type

\n
\n

enum

\n

The type of the service level objective. \nAllowed enum values: metric,monitor,time_slice

\n
\n \n
\n
\n
\n
\n
\n

warning_threshold

\n
\n

double

\n

The optional warning threshold such that when the service level indicator is\nbelow this value for the given threshold, but above the target threshold, the\nobjective appears in a "warning" state. This value must be greater than the target\nthreshold.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

errors

\n
\n

[string]

\n

An array of error messages. Each endpoint documents how/whether this field is\nused.

\n
\n \n
\n
" + "html": "
\n
\n
\n
\n

data

\n
\n

object

\n

A service level objective object includes a service level indicator, thresholds\nfor one or more timeframes, and metadata (name, description, tags, etc.).

\n
\n
\n
\n
\n
\n

configured_alert_ids

\n
\n

[integer]

\n

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.

\n
\n \n
\n
\n
\n
\n
\n

created_at

\n
\n

int64

\n

Creation timestamp (UNIX time in seconds)

Always included in service level objective responses.

\n
\n \n
\n
\n
\n
\n
\n

creator

\n
\n

object

\n

Object describing the creator of the shared element.

\n
\n
\n
\n
\n
\n

email

\n
\n

string

\n

Email of the creator.

\n
\n \n
\n
\n
\n
\n
\n

handle

\n
\n

string

\n

Handle of the creator.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the creator.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

description

\n
\n

string

\n

A user-defined description of the service level objective.

Always included in service level objective responses (but may be null).\nOptional in create/update requests.

\n
\n \n
\n
\n
\n
\n
\n

groups

\n
\n

[string]

\n

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\ncreate/update requests for monitor service level objectives, but may only be\nused when then length of the monitor_ids field is one.

\n
\n \n
\n
\n
\n
\n
\n

id

\n
\n

string

\n

A unique identifier for the service level objective object.

Always included in service level objective responses.

\n
\n \n
\n
\n
\n
\n
\n

modified_at

\n
\n

int64

\n

Modification timestamp (UNIX time in seconds)

Always included in service level objective responses.

\n
\n \n
\n
\n
\n
\n
\n

monitor_ids

\n
\n

[integer]

\n

A list of monitor ids that defines the scope of a monitor service level\nobjective. Required if type is monitor.

\n
\n \n
\n
\n
\n
\n
\n

monitor_tags

\n
\n

[string]

\n

The union of monitor tags for all monitors referenced by the monitor_ids\nfield.\nAlways included in service level objective responses for monitor service level\nobjectives (but may be empty). Ignored in create/update requests. Does not\naffect which monitors are included in the service level objective (that is\ndetermined entirely by the monitor_ids field).

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name of the service level objective object.

\n
\n \n
\n
\n
\n
\n
\n

query

\n
\n

object

\n

The metric query used to define a count-based SLO as the ratio of good events to total events.

\n
\n
\n
\n
\n
\n

denominator [required]

\n
\n

string

\n

A Datadog metric query for total (valid) events.

\n
\n \n
\n
\n
\n
\n
\n

numerator [required]

\n
\n

string

\n

A Datadog metric query for good events.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

sli_specification

\n
\n

 <oneOf>

\n

A generic SLI specification. This is currently used for time-slice and count-based (metric) SLOs only.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A time-slice SLI specification.

\n
\n
\n
\n
\n
\n

time_slice [required]

\n
\n

object

\n

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

\n
\n
\n
\n
\n
\n

comparator [required]

\n
\n

enum

\n

The comparator used to compare the SLI value to the threshold. \nAllowed enum values: >,>=,<,<=

\n
\n \n
\n
\n
\n
\n
\n

query [required]

\n
\n

object

\n

The queries and formula used to calculate the SLI value.

\n
\n
\n
\n
\n
\n

formulas [required]

\n
\n

[object]

\n

A list that contains exactly one formula, as only a single formula may be used in a time-slice SLO.

\n
\n
\n
\n
\n
\n

formula [required]

\n
\n

string

\n

The formula string, which is an expression involving named queries.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

queries [required]

\n
\n

[ <oneOf>]

\n

A list of queries that are used to calculate the SLI value.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions metrics query.

\n
\n
\n
\n
\n
\n

aggregator

\n
\n

enum

\n

The aggregation methods available for metrics queries. \nAllowed enum values: avg,min,max,sum,last,area,l2norm,percentile

\n
\n \n
\n
\n
\n
\n
\n

cross_org_uuids

\n
\n

[string]

\n

The source organization UUID for cross organization queries. Feature in Private Beta.

\n
\n \n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for metrics queries. \nAllowed enum values: metrics

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Metrics query definition.

\n
\n \n
\n
\n
\n
\n
\n

semantic_mode

\n
\n

enum

\n

Semantic mode for metrics queries. This determines how metrics from different sources are combined or displayed. \nAllowed enum values: combined,native

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n

query_interval_seconds

\n
\n

enum

\n

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

\n
\n \n
\n
\n
\n
\n
\n

threshold [required]

\n
\n

double

\n

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

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

Option 2

\n
\n

object

\n

A metric SLI specification.

\n
\n
\n
\n
\n
\n

count [required]

\n
\n

 <oneOf>

\n

A count-based (metric) SLI specification, composed of three parts: the good events formula,\nthe bad or total events formula, and the underlying queries.\nExactly one of total_events_formula or bad_events_formula must be provided.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n
\n
\n
\n
\n
\n
\n

good_events_formula [required]

\n
\n

object

\n

A formula that specifies how to combine the results of multiple queries.

\n
\n
\n
\n
\n
\n

formula [required]

\n
\n

string

\n

The formula string, which is an expression involving named queries.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

queries [required]

\n
\n

[ <oneOf>]

\n
\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions metrics query.

\n
\n
\n
\n
\n
\n

aggregator

\n
\n

enum

\n

The aggregation methods available for metrics queries. \nAllowed enum values: avg,min,max,sum,last,area,l2norm,percentile

\n
\n \n
\n
\n
\n
\n
\n

cross_org_uuids

\n
\n

[string]

\n

The source organization UUID for cross organization queries. Feature in Private Beta.

\n
\n \n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for metrics queries. \nAllowed enum values: metrics

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Metrics query definition.

\n
\n \n
\n
\n
\n
\n
\n

semantic_mode

\n
\n

enum

\n

Semantic mode for metrics queries. This determines how metrics from different sources are combined or displayed. \nAllowed enum values: combined,native

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

total_events_formula [required]

\n
\n

object

\n

The total events formula. Bad events queries can be defined using the bad_events_formula field as an alternative. Only one of total_events_formula or bad_events_formula must be provided.

\n
\n
\n
\n
\n
\n

formula [required]

\n
\n

string

\n

The formula string, which is an expression involving named queries.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

Option 2

\n
\n

object

\n
\n
\n
\n
\n
\n
\n

bad_events_formula [required]

\n
\n

object

\n

The bad events formula (recommended). Total events queries can be defined using the total_events_formula field as an alternative. Only one of total_events_formula or bad_events_formula must be provided.

\n
\n
\n
\n
\n
\n

formula [required]

\n
\n

string

\n

The formula string, which is an expression involving named queries.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

good_events_formula [required]

\n
\n

object

\n

A formula that specifies how to combine the results of multiple queries.

\n
\n
\n
\n
\n
\n

formula [required]

\n
\n

string

\n

The formula string, which is an expression involving named queries.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

queries [required]

\n
\n

[ <oneOf>]

\n
\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions metrics query.

\n
\n
\n
\n
\n
\n

aggregator

\n
\n

enum

\n

The aggregation methods available for metrics queries. \nAllowed enum values: avg,min,max,sum,last,area,l2norm,percentile

\n
\n \n
\n
\n
\n
\n
\n

cross_org_uuids

\n
\n

[string]

\n

The source organization UUID for cross organization queries. Feature in Private Beta.

\n
\n \n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for metrics queries. \nAllowed enum values: metrics

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Metrics query definition.

\n
\n \n
\n
\n
\n
\n
\n

semantic_mode

\n
\n

enum

\n

Semantic mode for metrics queries. This determines how metrics from different sources are combined or displayed. \nAllowed enum values: combined,native

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n

tags

\n
\n

[string]

\n

A list of tags associated with this service level objective.\nAlways included in service level objective responses (but may be empty).\nOptional in create/update requests.

\n
\n \n
\n
\n
\n
\n
\n

target_threshold

\n
\n

double

\n

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

\n
\n \n
\n
\n
\n
\n
\n

thresholds

\n
\n

[object]

\n

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

\n
\n
\n
\n
\n
\n

target [required]

\n
\n

double

\n

The target value for the service level indicator within the corresponding\ntimeframe.

\n
\n \n
\n
\n
\n
\n
\n

target_display

\n
\n

string

\n

A string representation of the target that indicates its precision.\nIt uses trailing zeros to show significant decimal places (for example 98.00).

Always included in service level objective responses. Ignored in\ncreate/update requests.

\n
\n \n
\n
\n
\n
\n
\n

timeframe [required]

\n
\n

enum

\n

The SLO time window options. Note that "custom" is not a valid option for creating\nor updating SLOs. It is only used when querying SLO history over custom timeframes. \nAllowed enum values: 7d,30d,90d,custom

\n
\n \n
\n
\n
\n
\n
\n

warning

\n
\n

double

\n

The warning value for the service level objective.

\n
\n \n
\n
\n
\n
\n
\n

warning_display

\n
\n

string

\n

A string representation of the warning target (see the description of\nthe target_display field for details).

Included in service level objective responses if a warning target exists.\nIgnored in create/update requests.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

timeframe

\n
\n

enum

\n

The SLO time window options. Note that "custom" is not a valid option for creating\nor updating SLOs. It is only used when querying SLO history over custom timeframes. \nAllowed enum values: 7d,30d,90d,custom

\n
\n \n
\n
\n
\n
\n
\n

type

\n
\n

enum

\n

The type of the service level objective. \nAllowed enum values: metric,monitor,time_slice

\n
\n \n
\n
\n
\n
\n
\n

warning_threshold

\n
\n

double

\n

The optional warning threshold such that when the service level indicator is\nbelow this value for the given threshold, but above the target threshold, the\nobjective appears in a "warning" state. This value must be greater than the target\nthreshold.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

errors

\n
\n

[string]

\n

An array of error messages. Each endpoint documents how/whether this field is\nused.

\n
\n \n
\n
" }, "403": { "json": { @@ -820,7 +820,7 @@ } } }, - "html": "
\n
\n
\n
\n

data

\n
\n

[object]

\n

An array of service level objective objects.

\n
\n
\n
\n
\n
\n

created_at

\n
\n

int64

\n

Creation timestamp (UNIX time in seconds)

Always included in service level objective responses.

\n
\n \n
\n
\n
\n
\n
\n

creator

\n
\n

object

\n

Object describing the creator of the shared element.

\n
\n
\n
\n
\n
\n

email

\n
\n

string

\n

Email of the creator.

\n
\n \n
\n
\n
\n
\n
\n

handle

\n
\n

string

\n

Handle of the creator.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the creator.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

description

\n
\n

string

\n

A user-defined description of the service level objective.

Always included in service level objective responses (but may be null).\nOptional in create/update requests.

\n
\n \n
\n
\n
\n
\n
\n

groups

\n
\n

[string]

\n

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\ncreate/update requests for monitor service level objectives, but may only be\nused when then length of the monitor_ids field is one.

\n
\n \n
\n
\n
\n
\n
\n

id

\n
\n

string

\n

A unique identifier for the service level objective object.

Always included in service level objective responses.

\n
\n \n
\n
\n
\n
\n
\n

modified_at

\n
\n

int64

\n

Modification timestamp (UNIX time in seconds)

Always included in service level objective responses.

\n
\n \n
\n
\n
\n
\n
\n

monitor_ids

\n
\n

[integer]

\n

A list of monitor ids that defines the scope of a monitor service level\nobjective. Required if type is monitor.

\n
\n \n
\n
\n
\n
\n
\n

monitor_tags

\n
\n

[string]

\n

The union of monitor tags for all monitors referenced by the monitor_ids\nfield.\nAlways included in service level objective responses for monitor-based service level\nobjectives (but may be empty). Ignored in create/update requests. Does not\naffect which monitors are included in the service level objective (that is\ndetermined entirely by the monitor_ids field).

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

The name of the service level objective object.

\n
\n \n
\n
\n
\n
\n
\n

query

\n
\n

object

\n

A count-based (metric) SLO query. This field is superseded by sli_specification but is retained for backwards compatibility. Note that Datadog only allows the sum by aggregator\nto be used because this will sum up all request counts instead of averaging them, or taking the max or\nmin of all of those requests.

\n
\n
\n
\n
\n
\n

denominator [required]

\n
\n

string

\n

A Datadog metric query for total (valid) events.

\n
\n \n
\n
\n
\n
\n
\n

numerator [required]

\n
\n

string

\n

A Datadog metric query for good events.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

sli_specification

\n
\n

 <oneOf>

\n

A generic SLI specification. This is used for time-slice and count-based (metric) SLOs only.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A time-slice SLI specification.

\n
\n
\n
\n
\n
\n

time_slice [required]

\n
\n

object

\n

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

\n
\n
\n
\n
\n
\n

comparator [required]

\n
\n

enum

\n

The comparator used to compare the SLI value to the threshold. \nAllowed enum values: >,>=,<,<=

\n
\n \n
\n
\n
\n
\n
\n

query [required]

\n
\n

object

\n

The queries and formula used to calculate the SLI value.

\n
\n
\n
\n
\n
\n

formulas [required]

\n
\n

[object]

\n

A list that contains exactly one formula, as only a single formula may be used in a time-slice SLO.

\n
\n
\n
\n
\n
\n

formula [required]

\n
\n

string

\n

The formula string, which is an expression involving named queries.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

queries [required]

\n
\n

[ <oneOf>]

\n

A list of queries that are used to calculate the SLI value.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions metrics query.

\n
\n
\n
\n
\n
\n

aggregator

\n
\n

enum

\n

The aggregation methods available for metrics queries. \nAllowed enum values: avg,min,max,sum,last,area,l2norm,percentile

\n
\n \n
\n
\n
\n
\n
\n

cross_org_uuids

\n
\n

[string]

\n

The source organization UUID for cross organization queries. Feature in Private Beta.

\n
\n \n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for metrics queries. \nAllowed enum values: metrics

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Metrics query definition.

\n
\n \n
\n
\n
\n
\n
\n

semantic_mode

\n
\n

enum

\n

Semantic mode for metrics queries. This determines how metrics from different sources are combined or displayed. \nAllowed enum values: combined,native

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n

query_interval_seconds

\n
\n

enum

\n

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

\n
\n \n
\n
\n
\n
\n
\n

threshold [required]

\n
\n

double

\n

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

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

Option 2

\n
\n

object

\n

A metric SLI specification.

\n
\n
\n
\n
\n
\n

count [required]

\n
\n

object

\n

A count-based (metric) SLI specification, composed of three parts: the good events formula, the total events formula,\nand the underlying queries.

\n
\n
\n
\n
\n
\n

good_events_formula [required]

\n
\n

object

\n

A formula that specifies how to combine the results of multiple queries.

\n
\n
\n
\n
\n
\n

formula [required]

\n
\n

string

\n

The formula string, which is an expression involving named queries.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

queries [required]

\n
\n

[ <oneOf>]

\n
\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions metrics query.

\n
\n
\n
\n
\n
\n

aggregator

\n
\n

enum

\n

The aggregation methods available for metrics queries. \nAllowed enum values: avg,min,max,sum,last,area,l2norm,percentile

\n
\n \n
\n
\n
\n
\n
\n

cross_org_uuids

\n
\n

[string]

\n

The source organization UUID for cross organization queries. Feature in Private Beta.

\n
\n \n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for metrics queries. \nAllowed enum values: metrics

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Metrics query definition.

\n
\n \n
\n
\n
\n
\n
\n

semantic_mode

\n
\n

enum

\n

Semantic mode for metrics queries. This determines how metrics from different sources are combined or displayed. \nAllowed enum values: combined,native

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

total_events_formula [required]

\n
\n

object

\n

A formula that specifies how to combine the results of multiple queries.

\n
\n
\n
\n
\n
\n

formula [required]

\n
\n

string

\n

The formula string, which is an expression involving named queries.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n

tags

\n
\n

[string]

\n

A list of tags associated with this service level objective.\nAlways included in service level objective responses (but may be empty).\nOptional in create/update requests.

\n
\n \n
\n
\n
\n
\n
\n

target_threshold

\n
\n

double

\n

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

\n
\n \n
\n
\n
\n
\n
\n

thresholds [required]

\n
\n

[object]

\n

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

\n
\n
\n
\n
\n
\n

target [required]

\n
\n

double

\n

The target value for the service level indicator within the corresponding\ntimeframe.

\n
\n \n
\n
\n
\n
\n
\n

target_display

\n
\n

string

\n

A string representation of the target that indicates its precision.\nIt uses trailing zeros to show significant decimal places (for example 98.00).

Always included in service level objective responses. Ignored in\ncreate/update requests.

\n
\n \n
\n
\n
\n
\n
\n

timeframe [required]

\n
\n

enum

\n

The SLO time window options. Note that "custom" is not a valid option for creating\nor updating SLOs. It is only used when querying SLO history over custom timeframes. \nAllowed enum values: 7d,30d,90d,custom

\n
\n \n
\n
\n
\n
\n
\n

warning

\n
\n

double

\n

The warning value for the service level objective.

\n
\n \n
\n
\n
\n
\n
\n

warning_display

\n
\n

string

\n

A string representation of the warning target (see the description of\nthe target_display field for details).

Included in service level objective responses if a warning target exists.\nIgnored in create/update requests.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

timeframe

\n
\n

enum

\n

The SLO time window options. Note that "custom" is not a valid option for creating\nor updating SLOs. It is only used when querying SLO history over custom timeframes. \nAllowed enum values: 7d,30d,90d,custom

\n
\n \n
\n
\n
\n
\n
\n

type [required]

\n
\n

enum

\n

The type of the service level objective. \nAllowed enum values: metric,monitor,time_slice

\n
\n \n
\n
\n
\n
\n
\n

warning_threshold

\n
\n

double

\n

The optional warning threshold such that when the service level indicator is\nbelow this value for the given threshold, but above the target threshold, the\nobjective appears in a "warning" state. This value must be greater than the target\nthreshold.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

errors

\n
\n

[string]

\n

An array of error messages. Each endpoint documents how/whether this field is\nused.

\n
\n \n
\n
\n
\n
\n
\n

metadata

\n
\n

object

\n

The metadata object containing additional information about the list of SLOs.

\n
\n
\n
\n
\n
\n

page

\n
\n

object

\n

The object containing information about the pages of the list of SLOs.

\n
\n
\n
\n
\n
\n

total_count

\n
\n

int64

\n

The total number of resources that could be retrieved ignoring the parameters and filters in the request.

\n
\n \n
\n
\n
\n
\n
\n

total_filtered_count

\n
\n

int64

\n

The total number of resources that match the parameters and filters in the request. This attribute can be used by a client to determine the total number of pages.

\n
\n \n
\n
\n
\n
\n
\n
" + "html": "
\n
\n
\n
\n

data

\n
\n

[object]

\n

An array of service level objective objects.

\n
\n
\n
\n
\n
\n

created_at

\n
\n

int64

\n

Creation timestamp (UNIX time in seconds)

Always included in service level objective responses.

\n
\n \n
\n
\n
\n
\n
\n

creator

\n
\n

object

\n

Object describing the creator of the shared element.

\n
\n
\n
\n
\n
\n

email

\n
\n

string

\n

Email of the creator.

\n
\n \n
\n
\n
\n
\n
\n

handle

\n
\n

string

\n

Handle of the creator.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the creator.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

description

\n
\n

string

\n

A user-defined description of the service level objective.

Always included in service level objective responses (but may be null).\nOptional in create/update requests.

\n
\n \n
\n
\n
\n
\n
\n

groups

\n
\n

[string]

\n

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\ncreate/update requests for monitor service level objectives, but may only be\nused when then length of the monitor_ids field is one.

\n
\n \n
\n
\n
\n
\n
\n

id

\n
\n

string

\n

A unique identifier for the service level objective object.

Always included in service level objective responses.

\n
\n \n
\n
\n
\n
\n
\n

modified_at

\n
\n

int64

\n

Modification timestamp (UNIX time in seconds)

Always included in service level objective responses.

\n
\n \n
\n
\n
\n
\n
\n

monitor_ids

\n
\n

[integer]

\n

A list of monitor ids that defines the scope of a monitor service level\nobjective. Required if type is monitor.

\n
\n \n
\n
\n
\n
\n
\n

monitor_tags

\n
\n

[string]

\n

The union of monitor tags for all monitors referenced by the monitor_ids\nfield.\nAlways included in service level objective responses for monitor-based service level\nobjectives (but may be empty). Ignored in create/update requests. Does not\naffect which monitors are included in the service level objective (that is\ndetermined entirely by the monitor_ids field).

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

The name of the service level objective object.

\n
\n \n
\n
\n
\n
\n
\n

query

\n
\n

object

\n

A count-based (metric) SLO query. This field is superseded by sli_specification but is retained for backwards compatibility. Note that Datadog only allows the sum by aggregator\nto be used because this will sum up all request counts instead of averaging them, or taking the max or\nmin of all of those requests.

\n
\n
\n
\n
\n
\n

denominator [required]

\n
\n

string

\n

A Datadog metric query for total (valid) events.

\n
\n \n
\n
\n
\n
\n
\n

numerator [required]

\n
\n

string

\n

A Datadog metric query for good events.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

sli_specification

\n
\n

 <oneOf>

\n

A generic SLI specification. This is used for time-slice and count-based (metric) SLOs only.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A time-slice SLI specification.

\n
\n
\n
\n
\n
\n

time_slice [required]

\n
\n

object

\n

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

\n
\n
\n
\n
\n
\n

comparator [required]

\n
\n

enum

\n

The comparator used to compare the SLI value to the threshold. \nAllowed enum values: >,>=,<,<=

\n
\n \n
\n
\n
\n
\n
\n

query [required]

\n
\n

object

\n

The queries and formula used to calculate the SLI value.

\n
\n
\n
\n
\n
\n

formulas [required]

\n
\n

[object]

\n

A list that contains exactly one formula, as only a single formula may be used in a time-slice SLO.

\n
\n
\n
\n
\n
\n

formula [required]

\n
\n

string

\n

The formula string, which is an expression involving named queries.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

queries [required]

\n
\n

[ <oneOf>]

\n

A list of queries that are used to calculate the SLI value.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions metrics query.

\n
\n
\n
\n
\n
\n

aggregator

\n
\n

enum

\n

The aggregation methods available for metrics queries. \nAllowed enum values: avg,min,max,sum,last,area,l2norm,percentile

\n
\n \n
\n
\n
\n
\n
\n

cross_org_uuids

\n
\n

[string]

\n

The source organization UUID for cross organization queries. Feature in Private Beta.

\n
\n \n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for metrics queries. \nAllowed enum values: metrics

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Metrics query definition.

\n
\n \n
\n
\n
\n
\n
\n

semantic_mode

\n
\n

enum

\n

Semantic mode for metrics queries. This determines how metrics from different sources are combined or displayed. \nAllowed enum values: combined,native

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n

query_interval_seconds

\n
\n

enum

\n

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

\n
\n \n
\n
\n
\n
\n
\n

threshold [required]

\n
\n

double

\n

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

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

Option 2

\n
\n

object

\n

A metric SLI specification.

\n
\n
\n
\n
\n
\n

count [required]

\n
\n

 <oneOf>

\n

A count-based (metric) SLI specification, composed of three parts: the good events formula,\nthe bad or total events formula, and the underlying queries.\nExactly one of total_events_formula or bad_events_formula must be provided.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n
\n
\n
\n
\n
\n
\n

good_events_formula [required]

\n
\n

object

\n

A formula that specifies how to combine the results of multiple queries.

\n
\n
\n
\n
\n
\n

formula [required]

\n
\n

string

\n

The formula string, which is an expression involving named queries.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

queries [required]

\n
\n

[ <oneOf>]

\n
\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions metrics query.

\n
\n
\n
\n
\n
\n

aggregator

\n
\n

enum

\n

The aggregation methods available for metrics queries. \nAllowed enum values: avg,min,max,sum,last,area,l2norm,percentile

\n
\n \n
\n
\n
\n
\n
\n

cross_org_uuids

\n
\n

[string]

\n

The source organization UUID for cross organization queries. Feature in Private Beta.

\n
\n \n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for metrics queries. \nAllowed enum values: metrics

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Metrics query definition.

\n
\n \n
\n
\n
\n
\n
\n

semantic_mode

\n
\n

enum

\n

Semantic mode for metrics queries. This determines how metrics from different sources are combined or displayed. \nAllowed enum values: combined,native

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

total_events_formula [required]

\n
\n

object

\n

The total events formula. Bad events queries can be defined using the bad_events_formula field as an alternative. Only one of total_events_formula or bad_events_formula must be provided.

\n
\n
\n
\n
\n
\n

formula [required]

\n
\n

string

\n

The formula string, which is an expression involving named queries.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

Option 2

\n
\n

object

\n
\n
\n
\n
\n
\n
\n

bad_events_formula [required]

\n
\n

object

\n

The bad events formula (recommended). Total events queries can be defined using the total_events_formula field as an alternative. Only one of total_events_formula or bad_events_formula must be provided.

\n
\n
\n
\n
\n
\n

formula [required]

\n
\n

string

\n

The formula string, which is an expression involving named queries.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

good_events_formula [required]

\n
\n

object

\n

A formula that specifies how to combine the results of multiple queries.

\n
\n
\n
\n
\n
\n

formula [required]

\n
\n

string

\n

The formula string, which is an expression involving named queries.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

queries [required]

\n
\n

[ <oneOf>]

\n
\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions metrics query.

\n
\n
\n
\n
\n
\n

aggregator

\n
\n

enum

\n

The aggregation methods available for metrics queries. \nAllowed enum values: avg,min,max,sum,last,area,l2norm,percentile

\n
\n \n
\n
\n
\n
\n
\n

cross_org_uuids

\n
\n

[string]

\n

The source organization UUID for cross organization queries. Feature in Private Beta.

\n
\n \n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for metrics queries. \nAllowed enum values: metrics

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Metrics query definition.

\n
\n \n
\n
\n
\n
\n
\n

semantic_mode

\n
\n

enum

\n

Semantic mode for metrics queries. This determines how metrics from different sources are combined or displayed. \nAllowed enum values: combined,native

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n

tags

\n
\n

[string]

\n

A list of tags associated with this service level objective.\nAlways included in service level objective responses (but may be empty).\nOptional in create/update requests.

\n
\n \n
\n
\n
\n
\n
\n

target_threshold

\n
\n

double

\n

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

\n
\n \n
\n
\n
\n
\n
\n

thresholds [required]

\n
\n

[object]

\n

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

\n
\n
\n
\n
\n
\n

target [required]

\n
\n

double

\n

The target value for the service level indicator within the corresponding\ntimeframe.

\n
\n \n
\n
\n
\n
\n
\n

target_display

\n
\n

string

\n

A string representation of the target that indicates its precision.\nIt uses trailing zeros to show significant decimal places (for example 98.00).

Always included in service level objective responses. Ignored in\ncreate/update requests.

\n
\n \n
\n
\n
\n
\n
\n

timeframe [required]

\n
\n

enum

\n

The SLO time window options. Note that "custom" is not a valid option for creating\nor updating SLOs. It is only used when querying SLO history over custom timeframes. \nAllowed enum values: 7d,30d,90d,custom

\n
\n \n
\n
\n
\n
\n
\n

warning

\n
\n

double

\n

The warning value for the service level objective.

\n
\n \n
\n
\n
\n
\n
\n

warning_display

\n
\n

string

\n

A string representation of the warning target (see the description of\nthe target_display field for details).

Included in service level objective responses if a warning target exists.\nIgnored in create/update requests.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

timeframe

\n
\n

enum

\n

The SLO time window options. Note that "custom" is not a valid option for creating\nor updating SLOs. It is only used when querying SLO history over custom timeframes. \nAllowed enum values: 7d,30d,90d,custom

\n
\n \n
\n
\n
\n
\n
\n

type [required]

\n
\n

enum

\n

The type of the service level objective. \nAllowed enum values: metric,monitor,time_slice

\n
\n \n
\n
\n
\n
\n
\n

warning_threshold

\n
\n

double

\n

The optional warning threshold such that when the service level indicator is\nbelow this value for the given threshold, but above the target threshold, the\nobjective appears in a "warning" state. This value must be greater than the target\nthreshold.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

errors

\n
\n

[string]

\n

An array of error messages. Each endpoint documents how/whether this field is\nused.

\n
\n \n
\n
\n
\n
\n
\n

metadata

\n
\n

object

\n

The metadata object containing additional information about the list of SLOs.

\n
\n
\n
\n
\n
\n

page

\n
\n

object

\n

The object containing information about the pages of the list of SLOs.

\n
\n
\n
\n
\n
\n

total_count

\n
\n

int64

\n

The total number of resources that could be retrieved ignoring the parameters and filters in the request.

\n
\n \n
\n
\n
\n
\n
\n

total_filtered_count

\n
\n

int64

\n

The total number of resources that match the parameters and filters in the request. This attribute can be used by a client to determine the total number of pages.

\n
\n \n
\n
\n
\n
\n
\n
" }, "400": { "json": { @@ -934,7 +934,7 @@ "type": "metric", "warning_threshold": 99.95 }, - "html": "
\n
\n
\n
\n

created_at

\n
\n

int64

\n

Creation timestamp (UNIX time in seconds)

Always included in service level objective responses.

\n
\n \n
\n
\n
\n
\n
\n

creator

\n
\n

object

\n

Object describing the creator of the shared element.

\n
\n
\n
\n
\n
\n

email

\n
\n

string

\n

Email of the creator.

\n
\n \n
\n
\n
\n
\n
\n

handle

\n
\n

string

\n

Handle of the creator.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the creator.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

description

\n
\n

string

\n

A user-defined description of the service level objective.

Always included in service level objective responses (but may be null).\nOptional in create/update requests.

\n
\n \n
\n
\n
\n
\n
\n

groups

\n
\n

[string]

\n

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\ncreate/update requests for monitor service level objectives, but may only be\nused when then length of the monitor_ids field is one.

\n
\n \n
\n
\n
\n
\n
\n

id

\n
\n

string

\n

A unique identifier for the service level objective object.

Always included in service level objective responses.

\n
\n \n
\n
\n
\n
\n
\n

modified_at

\n
\n

int64

\n

Modification timestamp (UNIX time in seconds)

Always included in service level objective responses.

\n
\n \n
\n
\n
\n
\n
\n

monitor_ids

\n
\n

[integer]

\n

A list of monitor ids that defines the scope of a monitor service level\nobjective. Required if type is monitor.

\n
\n \n
\n
\n
\n
\n
\n

monitor_tags

\n
\n

[string]

\n

The union of monitor tags for all monitors referenced by the monitor_ids\nfield.\nAlways included in service level objective responses for monitor-based service level\nobjectives (but may be empty). Ignored in create/update requests. Does not\naffect which monitors are included in the service level objective (that is\ndetermined entirely by the monitor_ids field).

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

The name of the service level objective object.

\n
\n \n
\n
\n
\n
\n
\n

query

\n
\n

object

\n

A count-based (metric) SLO query. This field is superseded by sli_specification but is retained for backwards compatibility. Note that Datadog only allows the sum by aggregator\nto be used because this will sum up all request counts instead of averaging them, or taking the max or\nmin of all of those requests.

\n
\n
\n
\n
\n
\n

denominator [required]

\n
\n

string

\n

A Datadog metric query for total (valid) events.

\n
\n \n
\n
\n
\n
\n
\n

numerator [required]

\n
\n

string

\n

A Datadog metric query for good events.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

sli_specification

\n
\n

 <oneOf>

\n

A generic SLI specification. This is used for time-slice and count-based (metric) SLOs only.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A time-slice SLI specification.

\n
\n
\n
\n
\n
\n

time_slice [required]

\n
\n

object

\n

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

\n
\n
\n
\n
\n
\n

comparator [required]

\n
\n

enum

\n

The comparator used to compare the SLI value to the threshold. \nAllowed enum values: >,>=,<,<=

\n
\n \n
\n
\n
\n
\n
\n

query [required]

\n
\n

object

\n

The queries and formula used to calculate the SLI value.

\n
\n
\n
\n
\n
\n

formulas [required]

\n
\n

[object]

\n

A list that contains exactly one formula, as only a single formula may be used in a time-slice SLO.

\n
\n
\n
\n
\n
\n

formula [required]

\n
\n

string

\n

The formula string, which is an expression involving named queries.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

queries [required]

\n
\n

[ <oneOf>]

\n

A list of queries that are used to calculate the SLI value.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions metrics query.

\n
\n
\n
\n
\n
\n

aggregator

\n
\n

enum

\n

The aggregation methods available for metrics queries. \nAllowed enum values: avg,min,max,sum,last,area,l2norm,percentile

\n
\n \n
\n
\n
\n
\n
\n

cross_org_uuids

\n
\n

[string]

\n

The source organization UUID for cross organization queries. Feature in Private Beta.

\n
\n \n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for metrics queries. \nAllowed enum values: metrics

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Metrics query definition.

\n
\n \n
\n
\n
\n
\n
\n

semantic_mode

\n
\n

enum

\n

Semantic mode for metrics queries. This determines how metrics from different sources are combined or displayed. \nAllowed enum values: combined,native

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n

query_interval_seconds

\n
\n

enum

\n

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

\n
\n \n
\n
\n
\n
\n
\n

threshold [required]

\n
\n

double

\n

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

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

Option 2

\n
\n

object

\n

A metric SLI specification.

\n
\n
\n
\n
\n
\n

count [required]

\n
\n

object

\n

A count-based (metric) SLI specification, composed of three parts: the good events formula, the total events formula,\nand the underlying queries.

\n
\n
\n
\n
\n
\n

good_events_formula [required]

\n
\n

object

\n

A formula that specifies how to combine the results of multiple queries.

\n
\n
\n
\n
\n
\n

formula [required]

\n
\n

string

\n

The formula string, which is an expression involving named queries.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

queries [required]

\n
\n

[ <oneOf>]

\n
\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions metrics query.

\n
\n
\n
\n
\n
\n

aggregator

\n
\n

enum

\n

The aggregation methods available for metrics queries. \nAllowed enum values: avg,min,max,sum,last,area,l2norm,percentile

\n
\n \n
\n
\n
\n
\n
\n

cross_org_uuids

\n
\n

[string]

\n

The source organization UUID for cross organization queries. Feature in Private Beta.

\n
\n \n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for metrics queries. \nAllowed enum values: metrics

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Metrics query definition.

\n
\n \n
\n
\n
\n
\n
\n

semantic_mode

\n
\n

enum

\n

Semantic mode for metrics queries. This determines how metrics from different sources are combined or displayed. \nAllowed enum values: combined,native

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

total_events_formula [required]

\n
\n

object

\n

A formula that specifies how to combine the results of multiple queries.

\n
\n
\n
\n
\n
\n

formula [required]

\n
\n

string

\n

The formula string, which is an expression involving named queries.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n

tags

\n
\n

[string]

\n

A list of tags associated with this service level objective.\nAlways included in service level objective responses (but may be empty).\nOptional in create/update requests.

\n
\n \n
\n
\n
\n
\n
\n

target_threshold

\n
\n

double

\n

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

\n
\n \n
\n
\n
\n
\n
\n

thresholds [required]

\n
\n

[object]

\n

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

\n
\n
\n
\n
\n
\n

target [required]

\n
\n

double

\n

The target value for the service level indicator within the corresponding\ntimeframe.

\n
\n \n
\n
\n
\n
\n
\n

target_display

\n
\n

string

\n

A string representation of the target that indicates its precision.\nIt uses trailing zeros to show significant decimal places (for example 98.00).

Always included in service level objective responses. Ignored in\ncreate/update requests.

\n
\n \n
\n
\n
\n
\n
\n

timeframe [required]

\n
\n

enum

\n

The SLO time window options. Note that "custom" is not a valid option for creating\nor updating SLOs. It is only used when querying SLO history over custom timeframes. \nAllowed enum values: 7d,30d,90d,custom

\n
\n \n
\n
\n
\n
\n
\n

warning

\n
\n

double

\n

The warning value for the service level objective.

\n
\n \n
\n
\n
\n
\n
\n

warning_display

\n
\n

string

\n

A string representation of the warning target (see the description of\nthe target_display field for details).

Included in service level objective responses if a warning target exists.\nIgnored in create/update requests.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

timeframe

\n
\n

enum

\n

The SLO time window options. Note that "custom" is not a valid option for creating\nor updating SLOs. It is only used when querying SLO history over custom timeframes. \nAllowed enum values: 7d,30d,90d,custom

\n
\n \n
\n
\n
\n
\n
\n

type [required]

\n
\n

enum

\n

The type of the service level objective. \nAllowed enum values: metric,monitor,time_slice

\n
\n \n
\n
\n
\n
\n
\n

warning_threshold

\n
\n

double

\n

The optional warning threshold such that when the service level indicator is\nbelow this value for the given threshold, but above the target threshold, the\nobjective appears in a "warning" state. This value must be greater than the target\nthreshold.

\n
\n \n
\n
" + "html": "
\n
\n
\n
\n

created_at

\n
\n

int64

\n

Creation timestamp (UNIX time in seconds)

Always included in service level objective responses.

\n
\n \n
\n
\n
\n
\n
\n

creator

\n
\n

object

\n

Object describing the creator of the shared element.

\n
\n
\n
\n
\n
\n

email

\n
\n

string

\n

Email of the creator.

\n
\n \n
\n
\n
\n
\n
\n

handle

\n
\n

string

\n

Handle of the creator.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the creator.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

description

\n
\n

string

\n

A user-defined description of the service level objective.

Always included in service level objective responses (but may be null).\nOptional in create/update requests.

\n
\n \n
\n
\n
\n
\n
\n

groups

\n
\n

[string]

\n

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\ncreate/update requests for monitor service level objectives, but may only be\nused when then length of the monitor_ids field is one.

\n
\n \n
\n
\n
\n
\n
\n

id

\n
\n

string

\n

A unique identifier for the service level objective object.

Always included in service level objective responses.

\n
\n \n
\n
\n
\n
\n
\n

modified_at

\n
\n

int64

\n

Modification timestamp (UNIX time in seconds)

Always included in service level objective responses.

\n
\n \n
\n
\n
\n
\n
\n

monitor_ids

\n
\n

[integer]

\n

A list of monitor ids that defines the scope of a monitor service level\nobjective. Required if type is monitor.

\n
\n \n
\n
\n
\n
\n
\n

monitor_tags

\n
\n

[string]

\n

The union of monitor tags for all monitors referenced by the monitor_ids\nfield.\nAlways included in service level objective responses for monitor-based service level\nobjectives (but may be empty). Ignored in create/update requests. Does not\naffect which monitors are included in the service level objective (that is\ndetermined entirely by the monitor_ids field).

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

The name of the service level objective object.

\n
\n \n
\n
\n
\n
\n
\n

query

\n
\n

object

\n

A count-based (metric) SLO query. This field is superseded by sli_specification but is retained for backwards compatibility. Note that Datadog only allows the sum by aggregator\nto be used because this will sum up all request counts instead of averaging them, or taking the max or\nmin of all of those requests.

\n
\n
\n
\n
\n
\n

denominator [required]

\n
\n

string

\n

A Datadog metric query for total (valid) events.

\n
\n \n
\n
\n
\n
\n
\n

numerator [required]

\n
\n

string

\n

A Datadog metric query for good events.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

sli_specification

\n
\n

 <oneOf>

\n

A generic SLI specification. This is used for time-slice and count-based (metric) SLOs only.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A time-slice SLI specification.

\n
\n
\n
\n
\n
\n

time_slice [required]

\n
\n

object

\n

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

\n
\n
\n
\n
\n
\n

comparator [required]

\n
\n

enum

\n

The comparator used to compare the SLI value to the threshold. \nAllowed enum values: >,>=,<,<=

\n
\n \n
\n
\n
\n
\n
\n

query [required]

\n
\n

object

\n

The queries and formula used to calculate the SLI value.

\n
\n
\n
\n
\n
\n

formulas [required]

\n
\n

[object]

\n

A list that contains exactly one formula, as only a single formula may be used in a time-slice SLO.

\n
\n
\n
\n
\n
\n

formula [required]

\n
\n

string

\n

The formula string, which is an expression involving named queries.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

queries [required]

\n
\n

[ <oneOf>]

\n

A list of queries that are used to calculate the SLI value.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions metrics query.

\n
\n
\n
\n
\n
\n

aggregator

\n
\n

enum

\n

The aggregation methods available for metrics queries. \nAllowed enum values: avg,min,max,sum,last,area,l2norm,percentile

\n
\n \n
\n
\n
\n
\n
\n

cross_org_uuids

\n
\n

[string]

\n

The source organization UUID for cross organization queries. Feature in Private Beta.

\n
\n \n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for metrics queries. \nAllowed enum values: metrics

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Metrics query definition.

\n
\n \n
\n
\n
\n
\n
\n

semantic_mode

\n
\n

enum

\n

Semantic mode for metrics queries. This determines how metrics from different sources are combined or displayed. \nAllowed enum values: combined,native

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n

query_interval_seconds

\n
\n

enum

\n

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

\n
\n \n
\n
\n
\n
\n
\n

threshold [required]

\n
\n

double

\n

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

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

Option 2

\n
\n

object

\n

A metric SLI specification.

\n
\n
\n
\n
\n
\n

count [required]

\n
\n

 <oneOf>

\n

A count-based (metric) SLI specification, composed of three parts: the good events formula,\nthe bad or total events formula, and the underlying queries.\nExactly one of total_events_formula or bad_events_formula must be provided.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n
\n
\n
\n
\n
\n
\n

good_events_formula [required]

\n
\n

object

\n

A formula that specifies how to combine the results of multiple queries.

\n
\n
\n
\n
\n
\n

formula [required]

\n
\n

string

\n

The formula string, which is an expression involving named queries.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

queries [required]

\n
\n

[ <oneOf>]

\n
\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions metrics query.

\n
\n
\n
\n
\n
\n

aggregator

\n
\n

enum

\n

The aggregation methods available for metrics queries. \nAllowed enum values: avg,min,max,sum,last,area,l2norm,percentile

\n
\n \n
\n
\n
\n
\n
\n

cross_org_uuids

\n
\n

[string]

\n

The source organization UUID for cross organization queries. Feature in Private Beta.

\n
\n \n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for metrics queries. \nAllowed enum values: metrics

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Metrics query definition.

\n
\n \n
\n
\n
\n
\n
\n

semantic_mode

\n
\n

enum

\n

Semantic mode for metrics queries. This determines how metrics from different sources are combined or displayed. \nAllowed enum values: combined,native

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

total_events_formula [required]

\n
\n

object

\n

The total events formula. Bad events queries can be defined using the bad_events_formula field as an alternative. Only one of total_events_formula or bad_events_formula must be provided.

\n
\n
\n
\n
\n
\n

formula [required]

\n
\n

string

\n

The formula string, which is an expression involving named queries.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

Option 2

\n
\n

object

\n
\n
\n
\n
\n
\n
\n

bad_events_formula [required]

\n
\n

object

\n

The bad events formula (recommended). Total events queries can be defined using the total_events_formula field as an alternative. Only one of total_events_formula or bad_events_formula must be provided.

\n
\n
\n
\n
\n
\n

formula [required]

\n
\n

string

\n

The formula string, which is an expression involving named queries.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

good_events_formula [required]

\n
\n

object

\n

A formula that specifies how to combine the results of multiple queries.

\n
\n
\n
\n
\n
\n

formula [required]

\n
\n

string

\n

The formula string, which is an expression involving named queries.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

queries [required]

\n
\n

[ <oneOf>]

\n
\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions metrics query.

\n
\n
\n
\n
\n
\n

aggregator

\n
\n

enum

\n

The aggregation methods available for metrics queries. \nAllowed enum values: avg,min,max,sum,last,area,l2norm,percentile

\n
\n \n
\n
\n
\n
\n
\n

cross_org_uuids

\n
\n

[string]

\n

The source organization UUID for cross organization queries. Feature in Private Beta.

\n
\n \n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for metrics queries. \nAllowed enum values: metrics

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Metrics query definition.

\n
\n \n
\n
\n
\n
\n
\n

semantic_mode

\n
\n

enum

\n

Semantic mode for metrics queries. This determines how metrics from different sources are combined or displayed. \nAllowed enum values: combined,native

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n

tags

\n
\n

[string]

\n

A list of tags associated with this service level objective.\nAlways included in service level objective responses (but may be empty).\nOptional in create/update requests.

\n
\n \n
\n
\n
\n
\n
\n

target_threshold

\n
\n

double

\n

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

\n
\n \n
\n
\n
\n
\n
\n

thresholds [required]

\n
\n

[object]

\n

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

\n
\n
\n
\n
\n
\n

target [required]

\n
\n

double

\n

The target value for the service level indicator within the corresponding\ntimeframe.

\n
\n \n
\n
\n
\n
\n
\n

target_display

\n
\n

string

\n

A string representation of the target that indicates its precision.\nIt uses trailing zeros to show significant decimal places (for example 98.00).

Always included in service level objective responses. Ignored in\ncreate/update requests.

\n
\n \n
\n
\n
\n
\n
\n

timeframe [required]

\n
\n

enum

\n

The SLO time window options. Note that "custom" is not a valid option for creating\nor updating SLOs. It is only used when querying SLO history over custom timeframes. \nAllowed enum values: 7d,30d,90d,custom

\n
\n \n
\n
\n
\n
\n
\n

warning

\n
\n

double

\n

The warning value for the service level objective.

\n
\n \n
\n
\n
\n
\n
\n

warning_display

\n
\n

string

\n

A string representation of the warning target (see the description of\nthe target_display field for details).

Included in service level objective responses if a warning target exists.\nIgnored in create/update requests.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

timeframe

\n
\n

enum

\n

The SLO time window options. Note that "custom" is not a valid option for creating\nor updating SLOs. It is only used when querying SLO history over custom timeframes. \nAllowed enum values: 7d,30d,90d,custom

\n
\n \n
\n
\n
\n
\n
\n

type [required]

\n
\n

enum

\n

The type of the service level objective. \nAllowed enum values: metric,monitor,time_slice

\n
\n \n
\n
\n
\n
\n
\n

warning_threshold

\n
\n

double

\n

The optional warning threshold such that when the service level indicator is\nbelow this value for the given threshold, but above the target threshold, the\nobjective appears in a "warning" state. This value must be greater than the target\nthreshold.

\n
\n \n
\n
" } }, "GetSLOCorrections": { diff --git a/content/en/api/v1/service-level-objectives/request.CreateSLO_707861409.json b/content/en/api/v1/service-level-objectives/request.CreateSLO_707861409.json new file mode 100644 index 00000000000..a45174228b9 --- /dev/null +++ b/content/en/api/v1/service-level-objectives/request.CreateSLO_707861409.json @@ -0,0 +1,43 @@ +{ + "type": "metric", + "description": "Metric SLO using sli_specification", + "name": "Example-Service-Level-Objective", + "sli_specification": { + "count": { + "good_events_formula": { + "formula": "query1 - query2" + }, + "bad_events_formula": { + "formula": "query2" + }, + "queries": [ + { + "data_source": "metrics", + "name": "query1", + "query": "sum:httpservice.hits{*}.as_count()" + }, + { + "data_source": "metrics", + "name": "query2", + "query": "sum:httpservice.errors{*}.as_count()" + } + ] + } + }, + "tags": [ + "env:prod", + "type:count" + ], + "thresholds": [ + { + "target": 99.0, + "target_display": "99.0", + "timeframe": "7d", + "warning": 99.5, + "warning_display": "99.5" + } + ], + "timeframe": "7d", + "target_threshold": 99.0, + "warning_threshold": 99.5 +} \ No newline at end of file diff --git a/data/api/v1/CodeExamples.json b/data/api/v1/CodeExamples.json index cc8ecfccfa9..2d61f11e4c5 100644 --- a/data/api/v1/CodeExamples.json +++ b/data/api/v1/CodeExamples.json @@ -928,6 +928,11 @@ } ], "CreateSLO": [ + { + "group": "service_level_objectives", + "suffix": "_707861409", + "description": "Create a new metric SLO object using bad events formula returns \"OK\" response" + }, { "group": "service_level_objectives", "suffix": "_512760759", diff --git a/data/api/v1/full_spec.yaml b/data/api/v1/full_spec.yaml index 522d13e6887..5af99828fa2 100644 --- a/data/api/v1/full_spec.yaml +++ b/data/api/v1/full_spec.yaml @@ -12445,33 +12445,73 @@ components: type: object SLOCountDefinition: description: 'A count-based (metric) SLI specification, composed of three parts: - the good events formula, the total events formula, + the good events formula, - and the underlying queries.' + the bad or total events formula, and the underlying queries. + + Exactly one of `total_events_formula` or `bad_events_formula` must be provided.' example: - good_events_formula: query1 - query2 + bad_events_formula: query2 + good_events_formula: query1 queries: - data_source: metrics name: query1 - query: sum:trace.servlet.request.hits{*} by {env}.as_count() + query: sum:trace.servlet.request.hits{!http.status_code:500} by {env}.as_count() - data_source: metrics name: query2 - query: sum:trace.servlet.request.errors{*} by {env}.as_count() - total_events_formula: query1 + query: sum:trace.servlet.request.hits{http.status_code:500} by {env}.as_count() + oneOf: + - $ref: '#/components/schemas/SLOCountDefinitionWithTotalEventsFormula' + - $ref: '#/components/schemas/SLOCountDefinitionWithBadEventsFormula' + SLOCountDefinitionWithBadEventsFormula: + additionalProperties: false properties: + bad_events_formula: + $ref: '#/components/schemas/SLOFormula' + description: The bad events formula (recommended). Total events queries + can be defined using the `total_events_formula` field as an alternative. + Only one of `total_events_formula` or `bad_events_formula` must be provided. good_events_formula: $ref: '#/components/schemas/SLOFormula' queries: example: - data_source: metrics name: query1 - query: sum:trace.servlet.request.hits{*} by {env}.as_count() + query: sum:trace.servlet.request.hits{!http.status_code:500} by {env}.as_count() + - data_source: metrics + name: query2 + query: sum:trace.servlet.request.hits{http.status_code:500} by {env}.as_count() + items: + $ref: '#/components/schemas/SLODataSourceQueryDefinition' + minItems: 1 + type: array + required: + - good_events_formula + - bad_events_formula + - queries + type: object + SLOCountDefinitionWithTotalEventsFormula: + additionalProperties: false + properties: + good_events_formula: + $ref: '#/components/schemas/SLOFormula' + queries: + example: + - data_source: metrics + name: query1 + query: sum:trace.servlet.request.hits{!http.status_code:500} by {env}.as_count() + - data_source: metrics + name: query2 + query: sum:trace.servlet.request.hits{http.status_code:500} by {env}.as_count() items: $ref: '#/components/schemas/SLODataSourceQueryDefinition' minItems: 1 type: array total_events_formula: $ref: '#/components/schemas/SLOFormula' + description: The total events formula. Bad events queries can be defined + using the `bad_events_formula` field as an alternative. Only one of `total_events_formula` + or `bad_events_formula` must be provided. required: - good_events_formula - total_events_formula @@ -12482,15 +12522,15 @@ components: description: A metric SLI specification. example: count: - good_events_formula: query1 - query2 + bad_events_formula: query2 + good_events_formula: query1 queries: - data_source: metrics name: query1 - query: sum:trace.servlet.request.hits{*} by {env}.as_count() + query: sum:trace.servlet.request.hits{!http.status_code:500} by {env}.as_count() - data_source: metrics name: query2 - query: sum:trace.servlet.request.errors{*} by {env}.as_count() - total_events_formula: query1 + query: sum:trace.servlet.request.hits{http.status_code:500} by {env}.as_count() properties: count: $ref: '#/components/schemas/SLOCountDefinition' @@ -13626,7 +13666,7 @@ components: name: query1 query: sum:trace.servlet.request.hits{*} by {env}.as_count() - data_source: metrics - name: query1 + name: query2 query: sum:trace.servlet.request.errors{*} by {env}.as_count() threshold: 5 properties: diff --git a/data/api/v2/full_spec.yaml b/data/api/v2/full_spec.yaml index be475477bd8..79e34848509 100644 --- a/data/api/v2/full_spec.yaml +++ b/data/api/v2/full_spec.yaml @@ -92245,111 +92245,92 @@ paths: - logs_read_data /api/v2/metrics: get: - description: 'Returns all metrics for your organization that match the given - filter parameters. - - Optionally, paginate by using the `page[cursor]` and/or `page[size]` query - parameters. - - To fetch the first page, pass in a query parameter with either a valid `page[size]` - or an empty cursor like `page[cursor]=`. To fetch the next page, pass in the - `next_cursor` value from the response as the new `page[cursor]` value. - - Once the `meta.pagination.next_cursor` value is null, all pages have been - retrieved.' + description: Get a list of actively reporting metrics for your organization. + Pagination is optional using the `page[cursor]` and `page[size]` query parameters. operationId: ListTagConfigurations parameters: - - description: Filter custom metrics that have configured tags. + - description: Only return custom metrics that have been configured with Metrics + Without Limits. example: true in: query name: filter[configured] required: false schema: type: boolean - - description: Filter tag configurations by configured tags. - example: app + - description: Only return metrics that have the given tag key(s) in their Metrics + Without Limits configuration (included or excluded). + example: app,env in: query name: filter[tags_configured] required: false schema: description: Tag keys to filter by. type: string - - description: Filter metrics by metric type. + - description: Only return metrics of the given metric type. in: query name: filter[metric_type] required: false schema: $ref: '#/components/schemas/MetricTagConfigurationMetricTypeCategory' - - description: 'Filter distributions with additional percentile - - aggregations enabled or disabled.' + - description: Only return distribution metrics that have percentile aggregations + enabled (true) or disabled (false). example: true in: query name: filter[include_percentiles] required: false schema: type: boolean - - description: '(Preview) Filter custom metrics that have or have not been queried - in the specified window[seconds]. - - If no window is provided or the window is less than 2 hours, a default of - 2 hours will be applied.' + - description: Only return metrics that have been queried (true) or not queried + (false) in the look back window. Set the window with `filter[queried][window][seconds]`; + if omitted, a default window is used. example: true in: query name: filter[queried] required: false schema: type: boolean - - description: 'The number of seconds of look back (from now) used by the `filter[queried]` - filter logic. - - Must be sent with `filter[queried]` and is only applied when `filter[queried]=true`. - - If `filter[queried]=false`, this parameter is ignored and default queried-window - behavior applies. - - If `filter[queried]` is not provided, sending this parameter returns a 400. - - For example: `GET /api/v2/metrics?filter[queried]=true&filter[queried][window][seconds]=15552000`.' + - description: Only return metrics that have been queried or not queried in + the specified window. Dependent on being sent with `filter[queried]`. example: 15552000 in: query name: filter[queried][window][seconds] required: false schema: + default: 2592000 format: int64 maximum: 15552000 - minimum: 0 + minimum: 1 type: integer - - description: 'Filter metrics that have been submitted with the given tags. - Supports boolean and wildcard expressions. - - Can only be combined with the filter[queried] filter.' - example: env IN (staging,test) AND service:web + - description: Only return metrics that were submitted with tags matching this + expression. You can use AND, OR, IN, and wildcards (for example, service:web*). + example: env IN (staging,test) AND service:web* in: query name: filter[tags] required: false schema: type: string - - description: (Preview) Filter metrics that are used in dashboards, monitors, - notebooks, SLOs. + - description: Only return metrics that are used in at least one dashboard, + monitor, notebook, or SLO. example: true in: query name: filter[related_assets] required: false schema: type: boolean - - description: 'The number of seconds of look back (from now) to apply to a - filter[tag] query. - - Default value is 3600 (1 hour), maximum value is 5,184,000 (60 days).' + - description: Only return metrics that have been actively reporting in the + specified window. example: 3600 in: query name: window[seconds] required: false schema: + default: 3600 format: int64 + maximum: 2592000 + minimum: 1 type: integer - - description: Maximum number of results returned. + - description: Maximum number of results per page. Use with `page[cursor]` for + pagination. in: query name: page[size] required: false @@ -92359,12 +92340,9 @@ paths: maximum: 10000 minimum: 1 type: integer - - description: 'String to query the next page of results. - - This key is provided with each valid response from the API in `meta.pagination.next_cursor`. - - Once the `meta.pagination.next_cursor` key is null, all pages have been - retrieved.' + - description: Cursor for pagination. Use `page[size]` to opt-in to pagination + and get the first page; for subsequent pages, use the value from `meta.pagination.next_cursor` + in the response. Pagination is complete when `next_cursor` is null. in: query name: page[cursor] required: false diff --git a/data/api/v2/translate_actions.json b/data/api/v2/translate_actions.json index 181f7097b26..e3880f2e686 100644 --- a/data/api/v2/translate_actions.json +++ b/data/api/v2/translate_actions.json @@ -2230,7 +2230,7 @@ "request_schema_description": "The request for a logs list." }, "ListTagConfigurations": { - "description": "Returns all metrics for your organization that match the given filter parameters.\nOptionally, paginate by using the `page[cursor]` and/or `page[size]` query parameters.\nTo fetch the first page, pass in a query parameter with either a valid `page[size]` or an empty cursor like `page[cursor]=`. To fetch the next page, pass in the `next_cursor` value from the response as the new `page[cursor]` value.\nOnce the `meta.pagination.next_cursor` value is null, all pages have been retrieved.", + "description": "Get a list of actively reporting metrics for your organization. Pagination is optional using the `page[cursor]` and `page[size]` query parameters.", "summary": "Get a list of metrics" }, "DeleteBulkTagsMetricsConfiguration": {