arazzo: 1.0.1 info: title: Raygun Inspect Latest Deployment Errors summary: Read the latest deployment and drill into an error group it introduced. description: >- A post-release regression flow. The workflow reads the latest deployment for an application, lists the error groups attributed to that deployment, and drills into the first attributed error group to inspect its status and message. Because the error-group listing is exposed by both the deployments and errors descriptions, the listing step is bound to the deployments description explicitly. Every step spells out its request inline so the flow can be read and executed without opening the underlying OpenAPI description. version: 1.0.0 sourceDescriptions: - name: deploymentsApi url: ../openapi/raygun-deployments-api-openapi.yml type: openapi - name: errorsApi url: ../openapi/raygun-errors-api-openapi.yml type: openapi workflows: - workflowId: inspect-latest-deployment-errors summary: Read the latest deployment and inspect an error group it introduced. description: >- Reads the latest deployment for the application, lists the error groups attributed to that deployment, and reads the first attributed error group to inspect its current status. inputs: type: object required: - applicationIdentifier - errorGroupIdentifier properties: applicationIdentifier: type: string description: The Raygun application identifier to inspect. errorGroupIdentifier: type: string description: The identifier of an error group attributed to the latest deployment. steps: - stepId: getLatestDeployment description: >- Read the latest deployment for the application to establish the release under inspection. operationId: get-latest-deployment parameters: - name: application-identifier in: path value: $inputs.applicationIdentifier successCriteria: - condition: $statusCode == 200 outputs: deploymentIdentifier: $response.body#/identifier version: $response.body#/version - stepId: listLatestDeploymentErrorGroups description: >- List the error groups attributed to the latest deployment. This listing is provided by both the deployments and errors descriptions, so it is bound to the deployments description explicitly. operationId: $sourceDescriptions.deploymentsApi.list-error-groups-from-latest-deployment parameters: - name: application-identifier in: path value: $inputs.applicationIdentifier successCriteria: - condition: $statusCode == 200 outputs: errorGroups: $response.body firstErrorGroupIdentifier: $response.body#/0/identifier - stepId: getErrorGroup description: >- Read the targeted error group attributed to the latest deployment to inspect its status and message. operationId: get-error-group parameters: - name: application-identifier in: path value: $inputs.applicationIdentifier - name: error-group-identifier in: path value: $inputs.errorGroupIdentifier successCriteria: - condition: $statusCode == 200 outputs: status: $response.body#/status message: $response.body#/message outputs: deploymentIdentifier: $steps.getLatestDeployment.outputs.deploymentIdentifier version: $steps.getLatestDeployment.outputs.version status: $steps.getErrorGroup.outputs.status message: $steps.getErrorGroup.outputs.message