@@ -13177,13 +13177,16 @@ components:
1317713177 type: object
1317813178 SLOCorrectionCreateRequest:
1317913179 description: |-
13180- An object that defines a correction to be applied to an SLO .
13180+ An object that defines a correction to be applied to one or more SLOs .
1318113181 properties:
1318213182 data:
1318313183 $ref: "#/components/schemas/SLOCorrectionCreateData"
1318413184 type: object
1318513185 SLOCorrectionCreateRequestAttributes:
13186- description: The attribute object associated with the SLO correction to be created.
13186+ description: |-
13187+ The attribute object associated with the SLO correction to be created.
13188+
13189+ Exactly one of `slo_id` or `slo_query` must be provided.
1318713190 properties:
1318813191 category:
1318913192 $ref: "#/components/schemas/SLOCorrectionCategory"
@@ -13207,9 +13210,16 @@ components:
1320713210 example: FREQ=DAILY;INTERVAL=10;COUNT=5
1320813211 type: string
1320913212 slo_id:
13210- description: ID of the SLO that this correction applies to.
13213+ description: ID of the single SLO that this correction applies to.
1321113214 example: sloId
1321213215 type: string
13216+ slo_query:
13217+ description: |-
13218+ Query that matches the SLOs this correction applies to.
13219+ The query uses the [Events search syntax](https://docs.datadoghq.com/events/explorer/searching/)
13220+ and can filter SLOs by SLO tags.
13221+ example: "env:prod service:checkout"
13222+ type: string
1321313223 start:
1321413224 description: Starting time of the correction in epoch seconds.
1321513225 example: 1600000000
@@ -13220,7 +13230,6 @@ components:
1322013230 example: UTC
1322113231 type: string
1322213232 required:
13223- - slo_id
1322413233 - start
1322513234 - category
1322613235 type: object
@@ -13284,7 +13293,12 @@ components:
1328413293 nullable: true
1328513294 type: string
1328613295 slo_id:
13287- description: ID of the SLO that this correction applies to.
13296+ description: ID of the single SLO that this correction applies to.
13297+ nullable: true
13298+ type: string
13299+ slo_query:
13300+ description: Query that matches the SLOs this correction applies to.
13301+ nullable: true
1328813302 type: string
1328913303 start:
1329013304 description: Starting time of the correction in epoch seconds.
@@ -13356,6 +13370,13 @@ components:
1335613370 are `FREQ`, `INTERVAL`, `COUNT`, `UNTIL` and `BYDAY`.
1335713371 example: FREQ=DAILY;INTERVAL=10;COUNT=5
1335813372 type: string
13373+ slo_query:
13374+ description: |-
13375+ Query that matches the SLOs this correction applies to.
13376+ The query uses the [Events search syntax](https://docs.datadoghq.com/events/explorer/searching/)
13377+ and can filter SLOs by SLO tags.
13378+ example: "env:prod service:checkout"
13379+ type: string
1335913380 start:
1336013381 description: Starting time of the correction in epoch seconds.
1336113382 example: 1600000000
@@ -37493,7 +37514,8 @@ paths:
3749337514 - slos_read
3749437515 post:
3749537516 description: |-
37496- Create an SLO Correction.
37517+ Create an SLO correction. Use `slo_id` to apply the correction to a single SLO, or `slo_query` to apply the
37518+ correction to SLOs that match a query. Exactly one of `slo_id` or `slo_query` is required.
3749737519 operationId: CreateSLOCorrection
3749837520 requestBody:
3749937521 content:
@@ -37510,6 +37532,17 @@ paths:
3751037532 start: 1600000000
3751137533 timezone: UTC
3751237534 type: correction
37535+ slo_query:
37536+ value:
37537+ data:
37538+ attributes:
37539+ category: "Scheduled Maintenance"
37540+ description: "Planned maintenance window for checkout services."
37541+ end: 1600003600
37542+ slo_query: "env:prod service:checkout"
37543+ start: 1600000000
37544+ timezone: UTC
37545+ type: correction
3751337546 schema:
3751437547 $ref: "#/components/schemas/SLOCorrectionCreateRequest"
3751537548 description: Create an SLO Correction
@@ -37669,6 +37702,17 @@ paths:
3766937702 start: 1600000000
3767037703 timezone: UTC
3767137704 type: correction
37705+ slo_query:
37706+ value:
37707+ data:
37708+ attributes:
37709+ category: "Scheduled Maintenance"
37710+ description: "Updated correction for checkout services."
37711+ end: 1600003600
37712+ slo_query: "env:prod service:checkout"
37713+ start: 1600000000
37714+ timezone: UTC
37715+ type: correction
3767237716 schema:
3767337717 $ref: "#/components/schemas/SLOCorrectionUpdateRequest"
3767437718 description: The edited SLO correction object.
0 commit comments