@@ -17239,6 +17239,89 @@ components:
1723917239 - started_at
1724017240 - finished_at
1724117241 type: object
17242+ DORADeploymentPatchRemediation:
17243+ description: Remediation details for the deployment.
17244+ properties:
17245+ id:
17246+ description: The ID of the remediation action.
17247+ example: eG42zNIkVjM
17248+ type: string
17249+ type:
17250+ $ref: '#/components/schemas/DORADeploymentPatchRemediationType'
17251+ required:
17252+ - id
17253+ - type
17254+ type: object
17255+ DORADeploymentPatchRemediationType:
17256+ description: The type of remediation action taken.
17257+ enum:
17258+ - rollback
17259+ - rollforward
17260+ example: rollback
17261+ type: string
17262+ x-enum-varnames:
17263+ - ROLLBACK
17264+ - ROLLFORWARD
17265+ DORADeploymentPatchRequest:
17266+ description: Request to patch a DORA deployment event.
17267+ example:
17268+ data:
17269+ attributes:
17270+ change_failure: true
17271+ remediation:
17272+ id: eG42zNIkVjM
17273+ type: rollback
17274+ id: z_RwVLi7v4Y
17275+ type: dora_deployment_patch_request
17276+ properties:
17277+ data:
17278+ $ref: '#/components/schemas/DORADeploymentPatchRequestData'
17279+ required:
17280+ - data
17281+ type: object
17282+ DORADeploymentPatchRequestAttributes:
17283+ description: Attributes for patching a DORA deployment event.
17284+ properties:
17285+ change_failure:
17286+ description: Indicates whether the deployment resulted in a change failure.
17287+ example: true
17288+ type: boolean
17289+ remediation:
17290+ $ref: '#/components/schemas/DORADeploymentPatchRemediation'
17291+ type: object
17292+ DORADeploymentPatchRequestData:
17293+ description: The JSON:API data for patching a deployment.
17294+ example:
17295+ attributes:
17296+ change_failure: true
17297+ remediation:
17298+ id: eG42zNIkVjM
17299+ type: rollback
17300+ id: z_RwVLi7v4Y
17301+ type: dora_deployment_patch_request
17302+ properties:
17303+ attributes:
17304+ $ref: '#/components/schemas/DORADeploymentPatchRequestAttributes'
17305+ id:
17306+ description: The ID of the deployment to patch.
17307+ example: z_RwVLi7v4Y
17308+ type: string
17309+ type:
17310+ $ref: '#/components/schemas/DORADeploymentPatchRequestDataType'
17311+ required:
17312+ - type
17313+ - id
17314+ - attributes
17315+ type: object
17316+ DORADeploymentPatchRequestDataType:
17317+ default: dora_deployment_patch_request
17318+ description: JSON:API type for DORA deployment patch request.
17319+ enum:
17320+ - dora_deployment_patch_request
17321+ example: dora_deployment_patch_request
17322+ type: string
17323+ x-enum-varnames:
17324+ - DORA_DEPLOYMENT_PATCH_REQUEST
1724217325 DORADeploymentRequest:
1724317326 description: Request to create a DORA deployment event.
1724417327 properties:
@@ -74974,6 +75057,46 @@ paths:
7497475057 operator: OR
7497575058 permissions:
7497675059 - dora_metrics_read
75060+ patch:
75061+ description: Use this API endpoint to patch a deployment event.
75062+ operationId: PatchDORADeployment
75063+ parameters:
75064+ - description: The ID of the deployment event.
75065+ in: path
75066+ name: deployment_id
75067+ required: true
75068+ schema:
75069+ type: string
75070+ requestBody:
75071+ content:
75072+ application/json:
75073+ schema:
75074+ $ref: '#/components/schemas/DORADeploymentPatchRequest'
75075+ required: true
75076+ responses:
75077+ '202':
75078+ description: Accepted
75079+ '400':
75080+ content:
75081+ application/json:
75082+ schema:
75083+ $ref: '#/components/schemas/JSONAPIErrorResponse'
75084+ description: Bad Request
75085+ '403':
75086+ $ref: '#/components/responses/NotAuthorizedResponse'
75087+ '429':
75088+ $ref: '#/components/responses/TooManyRequestsResponse'
75089+ security:
75090+ - apiKeyAuth: []
75091+ appKeyAuth: []
75092+ summary: Patch a deployment event
75093+ tags:
75094+ - DORA Metrics
75095+ x-codegen-request-body-name: body
75096+ x-permission:
75097+ operator: OR
75098+ permissions:
75099+ - dora_metrics_write
7497775100 /api/v2/dora/failure:
7497875101 post:
7497975102 description: 'Use this API endpoint to provide failure data.
0 commit comments