Skip to main content

slo_corrections

Creates, updates, deletes, gets or lists a slo_corrections resource.

Overview

Nameslo_corrections
TypeResource
Iddatadog.service_management.slo_corrections

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe ID of the SLO correction.
attributesobjectThe attribute object associated with the SLO correction.
typestringSLO correction resource type. (correction) (default: correction, example: correction)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_slocorrectionselectslo_correction_idGet an SLO correction.
get_slocorrectionsselectslo_idGet corrections applied to an SLO
list_slocorrectionselectoffset, limitGet all Service Level Objective corrections.
create_slocorrectioninsertCreate an SLO correction. Use slo_id to apply the correction to a single SLO, or slo_query to apply the<br />correction to SLOs that match a query. Exactly one of slo_id or slo_query is required.
update_slocorrectionupdateslo_correction_idUpdate the specified SLO correction object.
delete_slocorrectiondeleteslo_correction_idPermanently delete the specified SLO correction object.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
sitestringThe Datadog site (region) for your organization, for example datadoghq.com, us3.datadoghq.com, us5.datadoghq.com, ap1.datadoghq.com, ap2.datadoghq.com, datadoghq.eu, ddog-gov.com. Resolved from the DD_SITE environment variable when set. Optional: defaults to datadoghq.com, or the value of the DD_SITE environment variable when set; a WHERE value overrides both.
slo_correction_idstringThe ID of the SLO correction object.
slo_idstringThe ID of the service level objective object.
limitinteger (int64)The number of SLO corrections to return in the response. Default is 25.
offsetinteger (int64)The specific offset to use as the beginning of the returned response.

SELECT examples

Get an SLO correction.

SELECT
id,
attributes,
type
FROM datadog.service_management.slo_corrections
WHERE slo_correction_id = '{{ slo_correction_id }}' -- required
;

INSERT examples

Create an SLO correction. Use slo_id to apply the correction to a single SLO, or slo_query to apply the<br />correction to SLOs that match a query. Exactly one of slo_id or slo_query is required.

INSERT INTO datadog.service_management.slo_corrections (
data
)
SELECT
'{{ data }}'
RETURNING
data
;

UPDATE examples

Update the specified SLO correction object.

UPDATE datadog.service_management.slo_corrections
SET
data = '{{ data }}'
WHERE
slo_correction_id = '{{ slo_correction_id }}' --required
RETURNING
data;

DELETE examples

Permanently delete the specified SLO correction object.

DELETE FROM datadog.service_management.slo_corrections
WHERE slo_correction_id = '{{ slo_correction_id }}' --required
;