All SLOs for service 'Payments API' are GREEN. Safe to deploy.
No active freeze window configured for this service yet.
Deploys allowedNo explicit approval policy wired yet.
No approvals configuredNo deployment decisions logged for this service yet.
No history| SLO | SLI | Target | Error Budget Remaining | Burn Rate | Health |
|---|---|---|---|---|---|
| Payments Availability | 1.000 | 99.900 | 1.000 | 0.000 | Green |
Use this in CI to block deployments when the service is not safe.
curl -s "https://sre.sydatrix.com/api/safe_to_deploy/?service=Payments API&env=prod"
- name: Check if Payments API is safe to deploy
run: |
set -e
RESPONSE=$(curl -sS "https://sre.sydatrix.com/api/safe_to_deploy/?service=Payments API&env=prod")
echo "$RESPONSE"
SAFE=$(echo "$RESPONSE" | jq -r '.safe')
if [ "$SAFE" != "true" ]; then
echo "❌ Not safe to deploy: $(echo "$RESPONSE" | jq -r '.reason')"
exit 1
fi
echo "✅ Safe to deploy"
stage('Safe to Deploy – Payments API') {
steps {
script {
def response = sh(
script: "curl -sS 'https://sre.sydatrix.com/api/safe_to_deploy/?service=Payments API&env=prod'",
returnStdout: true
).trim()
echo "Safe-to-deploy response: ${response}"
def safe = sh(
script: "echo '${response}' | jq -r .safe",
returnStdout: true
).trim()
if (safe != 'true') {
def reason = sh(
script: "echo '${response}' | jq -r .reason",
returnStdout: true
).trim()
error "❌ Not safe to deploy: ${reason}"
}
echo "✅ Safe to deploy"
}
}
}
← Back to Services