get-traffic-timeline
Time-bucketed flow counts from ONE Explorer query: how many flows and connections fell into each 15m/1h/6h/1d bucket of the window, with every bucket present (zeros included).
Instructions
Time-bucketed flow counts from ONE Explorer query: how many flows and connections fell into each 15m/1h/6h/1d bucket of the window, with every bucket present (zeros included). Use it for 'blocked flows per hour for app X' instead of one summary query per bucket. Rows are bucketed by first_detected; Explorer aggregates a persistent connection (and, for older data, several days) into one row, so rows_spanning_buckets and resolution_note say how much the start of the window is smeared. spikes=true applies the shared rule: a bucket >= 3x the median of the non-zero buckets is a spike, and worst names the largest with its multiple.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bucket | No | Bucket size (default 1h). Buckets align to the wall clock, not the window start. Max 2000 buckets. | |
| spikes | No | Add `spikes`: median of non-zero buckets, threshold (3x), the buckets above it and the worst one | |
| end_date | No | YYYY-MM-DD or ISO-8601 timestamp; defaults to today | |
| split_by | No | Add a per-bucket breakdown: by_policy_decision or by_flow_direction | |
| query_name | No | ||
| start_date | No | YYYY-MM-DD or ISO-8601 timestamp; defaults to lookback_days ago | |
| max_results | No | Query cap (default 200000); counts are lower bounds when hit | |
| lookback_days | No | Used when start_date is omitted (default 1) | |
| exclude_sources | No | Sources to exclude | |
| include_sources | No | Sources to include: label HREFs or key=value (entries are ANDed), IP list/workload HREFs, FQDNs, IPs | |
| exclude_services | No | ||
| include_services | No | ||
| policy_decisions | No | e.g. ['blocked'] for a blocked-flow timeline | |
| exclude_destinations | No | Destinations to exclude | |
| include_destinations | No | Destinations to include, same forms as include_sources | |
| exclude_workloads_from_ip_list_query | No |