Get the SLO definitions
You must have the read
privileges for the SLOs feature in the Observability section of the Kibana feature privileges.
Path parameters
-
An identifier for the space. If
/s/
and the identifier are omitted from the path, the default space is used.
Query parameters
-
Indicates if the API returns only outdated SLO or all SLO definitions
-
Filters the SLOs by tag
-
Filters the SLOs by name
-
The page to use for pagination, must be greater or equal than 1
-
Number of SLOs returned by page
Maximum value is
1000
. Default value is100
.
Responses
-
Successful request
A paginated response of SLO definitions matching the query.
One of: Hide attributes Show attributes
-
Hide results attributes Show results attributes object
-
The budgeting method to use when computing the rollup data.
Values are
occurrences
ortimeslices
. -
The creation date
-
The description of the SLO.
-
Indicate if the SLO is enabled
-
The identifier of the SLO.
indicator
object Required One of: Defines properties for a custom query indicator type
Hide attributes Show attributes
-
An object containing the indicator parameters.
Hide params attributes Show params attributes object
-
The kibana data view id to use, primarily used to include data view runtime mappings. Make sure to save SLO again if you add/update run time fields to the data view and if those fields are being used in slo queries.
-
The index or index pattern to use
-
The timestamp field used in the source indice.
-
-
The type of indicator.
Value is
sli.kql.custom
.
Defines properties for the APM availability indicator type
Hide attributes Show attributes
-
An object containing the indicator parameters.
Hide params attributes Show params attributes object
-
The APM service environment or "*"
-
KQL query used for filtering the data
-
The index used by APM metrics
-
The APM service name
-
The APM transaction name or "*"
-
The APM transaction type or "*"
-
-
The type of indicator.
Value is
sli.apm.transactionErrorRate
.
Defines properties for the APM latency indicator type
Hide attributes Show attributes
-
An object containing the indicator parameters.
Hide params attributes Show params attributes object
-
The APM service environment or "*"
-
KQL query used for filtering the data
-
The index used by APM metrics
-
The APM service name
-
The latency threshold in milliseconds
-
The APM transaction name or "*"
-
The APM transaction type or "*"
-
-
The type of indicator.
Value is
sli.apm.transactionDuration
.
Defines properties for a custom metric indicator type
Hide attributes Show attributes
-
An object containing the indicator parameters.
Hide params attributes Show params attributes object
-
The kibana data view id to use, primarily used to include data view runtime mappings. Make sure to save SLO again if you add/update run time fields to the data view and if those fields are being used in slo queries.
-
the KQL query to filter the documents with.
-
An object defining the "good" metrics and equation
Hide good attributes Show good attributes object
-
The index or index pattern to use
-
The timestamp field used in the source indice.
-
An object defining the "total" metrics and equation
Hide total attributes Show total attributes object
-
-
The type of indicator.
Value is
sli.metric.custom
.
Defines properties for a histogram indicator type
Hide attributes Show attributes
-
An object containing the indicator parameters.
Hide params attributes Show params attributes object
-
The kibana data view id to use, primarily used to include data view runtime mappings. Make sure to save SLO again if you add/update run time fields to the data view and if those fields are being used in slo queries.
-
the KQL query to filter the documents with.
-
An object defining the "good" events
Hide good attributes Show good attributes object
-
The type of aggregation to use.
Values are
value_count
orrange
. -
The field use to aggregate the good events.
-
The filter for good events.
-
The starting value of the range. Only required for "range" aggregations.
-
The ending value of the range. Only required for "range" aggregations.
-
-
The index or index pattern to use
-
The timestamp field used in the source indice.
-
An object defining the "total" events
Hide total attributes Show total attributes object
-
The type of aggregation to use.
Values are
value_count
orrange
. -
The field use to aggregate the good events.
-
The filter for total events.
-
The starting value of the range. Only required for "range" aggregations.
-
The ending value of the range. Only required for "range" aggregations.
-
-
-
The type of indicator.
Value is
sli.histogram.custom
.
Defines properties for a timeslice metric indicator type
Hide attributes Show attributes
-
An object containing the indicator parameters.
Hide params attributes Show params attributes object
-
The kibana data view id to use, primarily used to include data view runtime mappings. Make sure to save SLO again if you add/update run time fields to the data view and if those fields are being used in slo queries.
-
the KQL query to filter the documents with.
-
The index or index pattern to use
-
An object defining the metrics, equation, and threshold to determine if it's a good slice or not
Hide metric attributes Show metric attributes object
-
The comparator to use to compare the equation to the threshold.
Values are
GT
,GTE
,LT
, orLTE
. -
The equation to calculate the metric.
-
List of metrics with their name, aggregation type, and field.
Any of: Hide attributes Show attributes
-
The aggregation type of the metric.
Values are
sum
,avg
,min
,max
,std_deviation
,last_value
, orcardinality
. -
The field of the metric.
-
The filter to apply to the metric.
-
The name of the metric. Only valid options are A-Z
Format should match the following pattern:
^[A-Z]$
.
Hide attributes Show attributes
-
The aggregation type of the metric. Only valid option is "percentile"
Value is
percentile
. -
The field of the metric.
-
The filter to apply to the metric.
-
The name of the metric. Only valid options are A-Z
Format should match the following pattern:
^[A-Z]$
. -
The percentile value.
Hide attributes Show attributes
-
-
The threshold used to determine if the metric is a good slice or not.
-
-
The timestamp field used in the source indice.
-
-
The type of indicator.
Value is
sli.metric.timeslice
.
-
-
the value derived from the groupBy field, if present, otherwise '*'
-
The name of the SLO.
-
Defines properties for the SLO objective
Hide objective attributes Show objective attributes object
-
the target objective between 0 and 1 excluded
Minimum value is
0
, maximum value is100
. -
the target objective for each slice when using a timeslices budgeting method
Minimum value is
0
, maximum value is100
. -
the duration of each slice when using a timeslices budgeting method, as {duraton}{unit}
-
-
The SLO revision
-
Defines properties for SLO settings.
Hide settings attributes Show settings attributes object
-
The interval between checks for changes in the source data. The minimum value is 1m and the maximum is 59m. The default value is 1 minute.
Default value is
1m
. -
Start aggregating data from the time the SLO is created, instead of backfilling data from the beginning of the time window.
Default value is
false
. -
The time delay in minutes between the current time and the latest source data time. Increasing the value will delay any alerting. The default value is 1 minute. The minimum value is 1m and the maximum is 359m. It should always be greater then source index refresh interval.
Default value is
1m
. -
The date field that is used to identify new documents in the source. It is strongly recommended to use a field that contains the ingest timestamp. If you use a different field, you might need to set the delay such that it accounts for data transmission delays. When unspecified, we use the indicator timestamp field.
-
-
The SLO computed data
Hide summary attributes Show summary attributes object
-
Hide errorBudget attributes Show errorBudget attributes object
-
The error budget consummed, as a percentage of the initial value.
-
The initial error budget, as 1 - objective
-
Only for SLO defined with occurrences budgeting method and calendar aligned time window.
-
The error budget remaining, as a percentage of the initial value.
-
-
Values are
NO_DATA
,HEALTHY
,DEGRADING
, orVIOLATED
.
-
-
List of tags
-
Defines properties for the SLO time window
Hide timeWindow attributes Show timeWindow attributes object
-
the duration formatted as {duration}{unit}. Accepted values for rolling: 7d, 30d, 90d. Accepted values for calendar aligned: 1w (weekly) or 1M (monthly)
-
Indicates weither the time window is a rolling or a calendar aligned time window.
Values are
rolling
orcalendarAligned
.
-
-
The last update date
-
The internal SLO version
-
Hide attributes Show attributes
-
for backward compability
Default value is
1
. -
for backward compability
-
Hide results attributes Show results attributes object
-
The budgeting method to use when computing the rollup data.
Values are
occurrences
ortimeslices
. -
The creation date
-
The description of the SLO.
-
Indicate if the SLO is enabled
-
The identifier of the SLO.
indicator
object Required One of: Defines properties for a custom query indicator type
Hide attributes Show attributes
-
An object containing the indicator parameters.
Hide params attributes Show params attributes object
-
The kibana data view id to use, primarily used to include data view runtime mappings. Make sure to save SLO again if you add/update run time fields to the data view and if those fields are being used in slo queries.
-
The index or index pattern to use
-
The timestamp field used in the source indice.
-
-
The type of indicator.
Value is
sli.kql.custom
.
Defines properties for the APM availability indicator type
Hide attributes Show attributes
-
An object containing the indicator parameters.
Hide params attributes Show params attributes object
-
The APM service environment or "*"
-
KQL query used for filtering the data
-
The index used by APM metrics
-
The APM service name
-
The APM transaction name or "*"
-
The APM transaction type or "*"
-
-
The type of indicator.
Value is
sli.apm.transactionErrorRate
.
Defines properties for the APM latency indicator type
Hide attributes Show attributes
-
An object containing the indicator parameters.
Hide params attributes Show params attributes object
-
The APM service environment or "*"
-
KQL query used for filtering the data
-
The index used by APM metrics
-
The APM service name
-
The latency threshold in milliseconds
-
The APM transaction name or "*"
-
The APM transaction type or "*"
-
-
The type of indicator.
Value is
sli.apm.transactionDuration
.
Defines properties for a custom metric indicator type
Hide attributes Show attributes
-
An object containing the indicator parameters.
Hide params attributes Show params attributes object
-
The kibana data view id to use, primarily used to include data view runtime mappings. Make sure to save SLO again if you add/update run time fields to the data view and if those fields are being used in slo queries.
-
the KQL query to filter the documents with.
-
An object defining the "good" metrics and equation
Hide good attributes Show good attributes object
-
The index or index pattern to use
-
The timestamp field used in the source indice.
-
An object defining the "total" metrics and equation
Hide total attributes Show total attributes object
-
-
The type of indicator.
Value is
sli.metric.custom
.
Defines properties for a histogram indicator type
Hide attributes Show attributes
-
An object containing the indicator parameters.
Hide params attributes Show params attributes object
-
The kibana data view id to use, primarily used to include data view runtime mappings. Make sure to save SLO again if you add/update run time fields to the data view and if those fields are being used in slo queries.
-
the KQL query to filter the documents with.
-
An object defining the "good" events
Hide good attributes Show good attributes object
-
The type of aggregation to use.
Values are
value_count
orrange
. -
The field use to aggregate the good events.
-
The filter for good events.
-
The starting value of the range. Only required for "range" aggregations.
-
The ending value of the range. Only required for "range" aggregations.
-
-
The index or index pattern to use
-
The timestamp field used in the source indice.
-
An object defining the "total" events
Hide total attributes Show total attributes object
-
The type of aggregation to use.
Values are
value_count
orrange
. -
The field use to aggregate the good events.
-
The filter for total events.
-
The starting value of the range. Only required for "range" aggregations.
-
The ending value of the range. Only required for "range" aggregations.
-
-
-
The type of indicator.
Value is
sli.histogram.custom
.
Defines properties for a timeslice metric indicator type
Hide attributes Show attributes
-
An object containing the indicator parameters.
Hide params attributes Show params attributes object
-
The kibana data view id to use, primarily used to include data view runtime mappings. Make sure to save SLO again if you add/update run time fields to the data view and if those fields are being used in slo queries.
-
the KQL query to filter the documents with.
-
The index or index pattern to use
-
An object defining the metrics, equation, and threshold to determine if it's a good slice or not
Hide metric attributes Show metric attributes object
-
The comparator to use to compare the equation to the threshold.
Values are
GT
,GTE
,LT
, orLTE
. -
The equation to calculate the metric.
-
List of metrics with their name, aggregation type, and field.
Any of: Hide attributes Show attributes
-
The aggregation type of the metric.
Values are
sum
,avg
,min
,max
,std_deviation
,last_value
, orcardinality
. -
The field of the metric.
-
The filter to apply to the metric.
-
The name of the metric. Only valid options are A-Z
Format should match the following pattern:
^[A-Z]$
.
Hide attributes Show attributes
-
The aggregation type of the metric. Only valid option is "percentile"
Value is
percentile
. -
The field of the metric.
-
The filter to apply to the metric.
-
The name of the metric. Only valid options are A-Z
Format should match the following pattern:
^[A-Z]$
. -
The percentile value.
Hide attributes Show attributes
-
-
The threshold used to determine if the metric is a good slice or not.
-
-
The timestamp field used in the source indice.
-
-
The type of indicator.
Value is
sli.metric.timeslice
.
-
-
the value derived from the groupBy field, if present, otherwise '*'
-
The name of the SLO.
-
Defines properties for the SLO objective
Hide objective attributes Show objective attributes object
-
the target objective between 0 and 1 excluded
Minimum value is
0
, maximum value is100
. -
the target objective for each slice when using a timeslices budgeting method
Minimum value is
0
, maximum value is100
. -
the duration of each slice when using a timeslices budgeting method, as {duraton}{unit}
-
-
The SLO revision
-
Defines properties for SLO settings.
Hide settings attributes Show settings attributes object
-
The interval between checks for changes in the source data. The minimum value is 1m and the maximum is 59m. The default value is 1 minute.
Default value is
1m
. -
Start aggregating data from the time the SLO is created, instead of backfilling data from the beginning of the time window.
Default value is
false
. -
The time delay in minutes between the current time and the latest source data time. Increasing the value will delay any alerting. The default value is 1 minute. The minimum value is 1m and the maximum is 359m. It should always be greater then source index refresh interval.
Default value is
1m
. -
The date field that is used to identify new documents in the source. It is strongly recommended to use a field that contains the ingest timestamp. If you use a different field, you might need to set the delay such that it accounts for data transmission delays. When unspecified, we use the indicator timestamp field.
-
-
The SLO computed data
Hide summary attributes Show summary attributes object
-
Hide errorBudget attributes Show errorBudget attributes object
-
The error budget consummed, as a percentage of the initial value.
-
The initial error budget, as 1 - objective
-
Only for SLO defined with occurrences budgeting method and calendar aligned time window.
-
The error budget remaining, as a percentage of the initial value.
-
-
Values are
NO_DATA
,HEALTHY
,DEGRADING
, orVIOLATED
.
-
-
List of tags
-
Defines properties for the SLO time window
Hide timeWindow attributes Show timeWindow attributes object
-
the duration formatted as {duration}{unit}. Accepted values for rolling: 7d, 30d, 90d. Accepted values for calendar aligned: 1w (weekly) or 1M (monthly)
-
Indicates weither the time window is a rolling or a calendar aligned time window.
Values are
rolling
orcalendarAligned
.
-
-
The last update date
-
The internal SLO version
-
-
the cursor to provide to get the next paged results
-
Bad request
-
Unauthorized response
-
Unauthorized response
curl \
--request GET 'http://localhost:5601/s/default/internal/observability/slos/_definitions' \
--header "Authorization: $API_KEY" \
--header "kbn-xsrf: string"