Read detectors
detectors list takes --limit (50 by default, up to 200), plus --since, --from, and --to. These filter on when the detector was created, not when it last ran. detectors get shows the full configuration.
Read findings
findings list takes --limit (50 by default, up to 200), --since, --from, --to, --detector (an ID, name, or template), and --trace. Time flags take the same values as traces list.
findings get takes a finding ID or --trace, not both.
Create a detector
--name and --template are required. Creating a name that already exists in the project returns that detector unchanged.
Trigger conditions take
= or != on model_name and environment; >, >=, <, <=, or = on cost, total_tokens, duration_ms, and errors; and = or contains on metadata, with a key.
Nested fields are easier in a file:
detector.json
Change a detector
--trigger-conditions and --output-schema replace the whole array, and [] removes the trigger. The template can’t change.
--enabled and --enable-rca take no value, so they can only turn something on. To turn one off, use a file:
off.json
Delete a detector
--reason. The detector’s findings stay readable.