List all triggers on the provided dataset or environment.
The dataset slug or use __all__ for endpoints that support environment-wide operations.
OK
The unique identifier (ID) for this Trigger.
The slug of the dataset this trigger belongs to. For environment-wide triggers, this will be "all".
A short, human-readable name for this Trigger, which will be displayed in the UI and when the trigger fires.
1 - 120A longer description, displayed on the Trigger's detail page.
1023A list of key-value pairs to help identify the Trigger.
10[{ "key": "team", "value": "blue" }]The threshold over which the trigger will fire, specified as both an operator and a value.
The interval in seconds in which to check the results of the query’s calculation against the threshold. Cannot be more than 4 times the query's duration (i.e. duration <= frequency*4). See A Caveat on Time for more information on specifying a query's duration. minimum: 60 maximum: 86400 multipleOf: 60 default: 900
How often to fire an alert when a trigger threshold is crossed.
on_change sends a trigger notification when the result of the specified calculation crosses the threshold.
The trigger resolves only when the result of the query no longer satisfies the threshold condition.on_true keeps sending a trigger notification at current frequency when and while the threshold is met.
(This reflects the same behavior as the "Send an alert every time a threshold is met" checkbox in the Honeycomb UI.)on_change, on_true If true, the trigger will not be evaluated and alerts will not be sent.
If true, the trigger has crossed its specified threshold without resolving.
A list of Recipients to notify when the Trigger fires. Using type+target is deprecated. First, create the Recipient via the Recipients API, and then specify the ID.
The schedule type used by the trigger. The default is frequency, where the trigger runs at the specified frequency. The window type means that the trigger will run at the specified frequency, but only in the time window specified in the evaluation_schedule field.
frequency, window A schedule that determines when the trigger is run. When the time is within the scheduled window, the trigger will be run at the specified frequency. Outside of the window, the trigger will not be run.
Additional properties needed to configure this trigger with a dynamic baseline threshold.
{
"offset_minutes": 60,
"type": "percentage"
}An inline query specification that is a strict subset of the standard Query Specification.
Required Fields:
calculations: At least one aggregate calculation (e.g., COUNT, AVG, SUM). Cannot use HEATMAP or CONCURRENCY.time_range: Query duration in seconds. Must be between the trigger frequency and the lesser of (4 × frequency) or 86400 (24 hours).Prohibited Fields:
orders: Not supported. Trigger queries automatically order results based on the threshold operator.limit: Not supported. All matching result groups are evaluated.start_time and end_time: Not supported. Use time_range instead for relative time windows.usage_mode: Not supported for triggers.Calculation Restrictions:
filters.Metrics Dataset Specific:
granularity field is supported and must be within calculated min/max bounds based on time range.Standard Datasets:
granularity field is not supported.Learn more about Triggers.
The ID of an existing saved Query that meets the trigger query requirements.
The referenced query must satisfy the same restrictions as inline trigger queries:
orders, limit, start_time, end_time, or usage_mode fields settime_range relative to trigger frequencygranularity field (within calculated bounds)granularity fieldThe API will validate the referenced query meets these criteria when creating or updating the trigger.
See the inline query field documentation above for complete trigger query requirements and learn more about Triggers.