| Field | Type | Description |
|---|---|---|
name | string | Display name for the condition |
condition_slug | string | Unique identifier for the condition |
condition_type | string | Must be "single_log" for online eval |
condition_policy | object | JSON structure defining evaluation rules |
| Field | Type | Description |
|---|---|---|
description | string | Description of the condition |
condition_policy object contains:
rules (array): Array of rule objects, each with:
field (string): Field to evaluate (e.g., "status_code", "latency", "model")operator (string): Comparison operator (see available operators below)value (any): Value to compare againstconnector (string): How to combine rules ("AND" or "OR")equals, not_equalsgreater_than, less_than, greater_than_or_equal, less_than_or_equalcontains, not_containsin, not_instatus_code: HTTP status codelatency: Request latency in secondstotal_tokens: Total token countinput_tokens: Input token countoutput_tokens: Output token countcost: Request costmodel: Model name| Field | Type | Description |
|---|---|---|
id | string | Unique condition identifier (save this for creating automations) |
name | string | Display name of the condition |
condition_slug | string | URL-friendly identifier |
condition_type | string | Type of condition ("single_log") |
description | string | Description of the condition |
condition_policy | object | The condition policy with rules and connector |
unique_organization_id | string | Organization identifier |
created_at | string | ISO timestamp of creation |
updated_at | string | ISO timestamp of last update |