Purpose

Generate slo SRE artifacts for a service/window context.

Location

sre/slo/generate.sh

Preconditions

  • Required tools: bash, date
  • Required permissions: write access when --output is used
  • Required environment variables: none

Arguments

Flag Required Default Description
--service NAME Yes N/A Service name
--window LABEL No current Time window label
--output PATH No stdout Output file
--json No false Emit JSON output
--dry-run No false Print actions only

Usage

sre/slo/generate.sh --service payments --window 24h --dry-run

Output

  • Exit codes: 0 success, 2 invalid arguments.