Skip to content

ostra events stats

Get aggregated stats for a trigger

ostra events stats <trigger-id> [flags]
--filter string Metadata filter (JSON)
--from string Start time
-h, --help help for stats
--interval string Bucket interval (e.g. 5m, 1h)
--measure string Measure: count (default) or sum:<metadata key> (e.g. sum:cost_usd)
--to string End time
--api-key string API key for authentication
--api-key-file string File holding the API key (keeps it off argv)
--connect-timeout duration Connect timeout (0 disables) (default 5s)
--endpoint string API endpoint URL
-o, --output string Output format: json, table, csv
-q, --quiet Minimal output
--timeout duration Request timeout (0 disables) (default 10s)