[
{
"id": 4,
"agent_id": 17,
"name": "High red-flag rate",
"severity": "warning",
"state": "active",
"window_ms": 300000,
"cooldown_ms": 900000,
"recipients": [
"oncall@acme.com"
],
"notification_channels": [
"email"
],
"condition_tree": {
"children": [
{
"lhs": "call_outcome",
"op": "eq",
"rhs": "Failed",
"type": "predicate"
},
{
"children": [
{
"lhs": "red_flag",
"op": "eq",
"rhs": "Hallucination",
"type": "predicate"
},
{
"lhs": "red_flag_count",
"op": "gte",
"rhs": 3,
"type": "predicate"
}
],
"op": "OR",
"type": "group"
}
],
"op": "AND",
"type": "group"
},
"created_at": "2026-07-14T09:22:31Z",
"updated_at": "2026-07-20T11:40:08Z",
"description": "<string>",
"paused_reason": null,
"threshold_type": "percentage",
"threshold_n": 123,
"threshold_percentage": 20,
"threshold_minimum": 10,
"last_triggered": "2026-07-31T14:05:12Z",
"created_by": 123,
"updated_by": 123
}
]