@@ -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
@@ -17287,6 +17308,7 @@ components:
1728717308 - $ref: "#/components/schemas/SyntheticsBasicAuthDigest"
1728817309 - $ref: "#/components/schemas/SyntheticsBasicAuthOauthClient"
1728917310 - $ref: "#/components/schemas/SyntheticsBasicAuthOauthROP"
17311+ - $ref: "#/components/schemas/SyntheticsBasicAuthJWT"
1729017312 SyntheticsBasicAuthDigest:
1729117313 description: Object to handle digest authentication when performing the test.
1729217314 properties:
@@ -17314,6 +17336,78 @@ components:
1731417336 type: string
1731517337 x-enum-varnames:
1731617338 - DIGEST
17339+ SyntheticsBasicAuthJWT:
17340+ description: Object to handle JWT authentication when performing the test.
17341+ properties:
17342+ addClaims:
17343+ $ref: "#/components/schemas/SyntheticsBasicAuthJWTAddClaims"
17344+ algorithm:
17345+ $ref: "#/components/schemas/SyntheticsBasicAuthJWTAlgorithm"
17346+ expiresIn:
17347+ description: Token time-to-live in seconds.
17348+ example: 3600
17349+ format: int64
17350+ minimum: 1
17351+ type: integer
17352+ header:
17353+ description: Custom JWT header as a JSON string.
17354+ example: '{"kid": "my-key-id"}'
17355+ type: string
17356+ payload:
17357+ description: JWT claims as a JSON string.
17358+ example: '{"sub": "1234567890", "name": "John Doe"}'
17359+ type: string
17360+ secret:
17361+ description: |-
17362+ Signing key for the JWT authentication. Use the shared secret for `HS256`
17363+ or the private key (PEM format) for `RS256` and `ES256`.
17364+ example: "mysecretkey"
17365+ type: string
17366+ tokenPrefix:
17367+ description: Prefix added before the token in the `Authorization` header. Defaults to `Bearer`.
17368+ example: "Bearer"
17369+ type: string
17370+ type:
17371+ $ref: "#/components/schemas/SyntheticsBasicAuthJWTType"
17372+ required:
17373+ - algorithm
17374+ - payload
17375+ - secret
17376+ - type
17377+ type: object
17378+ SyntheticsBasicAuthJWTAddClaims:
17379+ description: Standard JWT claims to automatically inject.
17380+ properties:
17381+ exp:
17382+ description: Whether to inject the `exp` (expiration) claim.
17383+ example: true
17384+ type: boolean
17385+ iat:
17386+ description: Whether to inject the `iat` (issued at) claim.
17387+ example: true
17388+ type: boolean
17389+ type: object
17390+ SyntheticsBasicAuthJWTAlgorithm:
17391+ description: Algorithm to use for the JWT authentication.
17392+ enum:
17393+ - HS256
17394+ - RS256
17395+ - ES256
17396+ example: "HS256"
17397+ type: string
17398+ x-enum-varnames:
17399+ - HS256
17400+ - RS256
17401+ - ES256
17402+ SyntheticsBasicAuthJWTType:
17403+ default: "jwt"
17404+ description: The type of authentication to use when performing the test.
17405+ enum:
17406+ - jwt
17407+ example: "jwt"
17408+ type: string
17409+ x-enum-varnames:
17410+ - JWT
1731717411 SyntheticsBasicAuthNTLM:
1731817412 description: Object to handle `NTLM` authentication when performing the test.
1731917413 properties:
@@ -37493,7 +37587,8 @@ paths:
3749337587 - slos_read
3749437588 post:
3749537589 description: |-
37496- Create an SLO Correction.
37590+ Create an SLO correction. Use `slo_id` to apply the correction to a single SLO, or `slo_query` to apply the
37591+ correction to SLOs that match a query. Exactly one of `slo_id` or `slo_query` is required.
3749737592 operationId: CreateSLOCorrection
3749837593 requestBody:
3749937594 content:
@@ -37510,6 +37605,17 @@ paths:
3751037605 start: 1600000000
3751137606 timezone: UTC
3751237607 type: correction
37608+ slo_query:
37609+ value:
37610+ data:
37611+ attributes:
37612+ category: "Scheduled Maintenance"
37613+ description: "Planned maintenance window for checkout services."
37614+ end: 1600003600
37615+ slo_query: "env:prod service:checkout"
37616+ start: 1600000000
37617+ timezone: UTC
37618+ type: correction
3751337619 schema:
3751437620 $ref: "#/components/schemas/SLOCorrectionCreateRequest"
3751537621 description: Create an SLO Correction
@@ -37669,6 +37775,17 @@ paths:
3766937775 start: 1600000000
3767037776 timezone: UTC
3767137777 type: correction
37778+ slo_query:
37779+ value:
37780+ data:
37781+ attributes:
37782+ category: "Scheduled Maintenance"
37783+ description: "Updated correction for checkout services."
37784+ end: 1600003600
37785+ slo_query: "env:prod service:checkout"
37786+ start: 1600000000
37787+ timezone: UTC
37788+ type: correction
3767237789 schema:
3767337790 $ref: "#/components/schemas/SLOCorrectionUpdateRequest"
3767437791 description: The edited SLO correction object.
0 commit comments