Skip to content

CICD-499 · Failed deployment recovery time measurement ​

Encyclopedia · Pipeline governance and operational management · All snippets

Previous · CICD-498 · Next · CICD-500

1. Where it fits ​

  • Placement delivery metrics report.
  • Prerequisites trusted policy checkout and normalized deployment events with scoped access.
  • Platforms local-linux, github-actions, gitea-actions.

2. Copy the snippet ​

bash
jq -s '[.[] | select(.failed_at and .restored_at) | (.restored_at|fromdateiso8601)-(.failed_at|fromdateiso8601)] | {samples:length,recovery_seconds:.}' incident-deployments.jsonl

3. How it works ​

The expression filters or transforms the input JSON. Where jq -e is used, a false or empty result can fail the gate.

4. Verify the result ​

Filter to deployment-caused incidents and define healthy restoration consistently. Report unresolved incidents separately.

Validation syntax-validated (Bash parse). Status definitions.