Triggers let you receive notifications when your data in Honeycomb crosses the thresholds that you configure.
The graph on which to alert is as flexible as a Honeycomb query, which helps reduce false positives due to known errors.Triggers fire
This API allows you to list, create, update, and delete Triggers.
The API key must have the Manage Triggers permission. Learn more about API keys here.
List all triggers on the provided dataset.
OK
Unauthorized
Forbidden
Not Found
Error
[- {
- "id": "string",
- "name": "string",
- "description": "string",
- "threshold": {
- "op": ">",
- "value": 0,
- "exceeded_limit": 1
}, - "frequency": 0,
- "alert_type": "on_change",
- "disabled": false,
- "triggered": true,
- "recipients": [
- {
- "id": "string",
- "type": "pagerduty",
- "target": "string",
- "details": {
- "pagerduty_severity": "string"
}
}
], - "evaluation_schedule_type": "frequency",
- "evaluation_schedule": {
- "window": {
- "days_of_week": [
- "sunday"
], - "start_time": "14:00",
- "end_time": "21:00"
}
}, - "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "query": { },
- "query_id": "string"
}
]
Create a trigger on the provided dataset.
name | string [ 1 .. 120 ] characters A short, human-readable name for this Trigger, which will be displayed in the UI and when the trigger fires. |
description | string <= 1023 characters A longer description, displayed on the Trigger's detail page. |
object The threshold over which the trigger will fire, specified as both an operator and a value. | |
frequency | integer 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. |
alert_type | string Default: "on_change" How often to fire an alert when a trigger threshold is crossed.
|
disabled | boolean Default: false If true, the trigger will not be evaluated and alerts will not be sent. |
Array of objects (NotificationRecipient) A list of Recipients to notify when the Trigger fires. Using | |
evaluation_schedule_type | string 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. |
object 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. | |
query | object A query ID or an inline query that is a strict subset of a Query Specification. |
Success - trigger created
The provided request body was invalid. Most APIs will return a DetailedError for this condition, explaining what went wrong, but some older APIs only return a GenericError.
Unauthorized
Forbidden
Not Found
The provided request body was over the maximum allowed size.
Invalid request
{- "name": "string",
- "description": "string",
- "threshold": {
- "op": ">",
- "value": 0,
- "exceeded_limit": 1
}, - "frequency": 0,
- "alert_type": "on_change",
- "disabled": false,
- "recipients": [
- {
- "id": "string",
- "type": "pagerduty",
- "target": "string",
- "details": {
- "pagerduty_severity": "string"
}
}
], - "evaluation_schedule_type": "frequency",
- "evaluation_schedule": {
- "window": {
- "days_of_week": [
- "sunday"
], - "start_time": "14:00",
- "end_time": "21:00"
}
}, - "query": { }
}
{- "id": "string",
- "name": "string",
- "description": "string",
- "threshold": {
- "op": ">",
- "value": 0,
- "exceeded_limit": 1
}, - "frequency": 0,
- "alert_type": "on_change",
- "disabled": false,
- "triggered": true,
- "recipients": [
- {
- "id": "string",
- "type": "pagerduty",
- "target": "string",
- "details": {
- "pagerduty_severity": "string"
}
}
], - "evaluation_schedule_type": "frequency",
- "evaluation_schedule": {
- "window": {
- "days_of_week": [
- "sunday"
], - "start_time": "14:00",
- "end_time": "21:00"
}
}, - "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "query": { },
- "query_id": "string"
}
Fetch details for a single Trigger by Trigger ID.
Success
Unauthorized
Not Found
{- "id": "string",
- "name": "string",
- "description": "string",
- "threshold": {
- "op": ">",
- "value": 0,
- "exceeded_limit": 1
}, - "frequency": 0,
- "alert_type": "on_change",
- "disabled": false,
- "triggered": true,
- "recipients": [
- {
- "id": "string",
- "type": "pagerduty",
- "target": "string",
- "details": {
- "pagerduty_severity": "string"
}
}
], - "evaluation_schedule_type": "frequency",
- "evaluation_schedule": {
- "window": {
- "days_of_week": [
- "sunday"
], - "start_time": "14:00",
- "end_time": "21:00"
}
}, - "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "query": { },
- "query_id": "string"
}
Update a trigger by specifying the trigger ID and the same fields used when creating a new trigger.
name | string [ 1 .. 120 ] characters A short, human-readable name for this Trigger, which will be displayed in the UI and when the trigger fires. |
description | string <= 1023 characters A longer description, displayed on the Trigger's detail page. |
object The threshold over which the trigger will fire, specified as both an operator and a value. | |
frequency | integer 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. |
alert_type | string Default: "on_change" How often to fire an alert when a trigger threshold is crossed.
|
disabled | boolean Default: false If true, the trigger will not be evaluated and alerts will not be sent. |
Array of objects A list of Recipients to notify when the Trigger fires. Using | |
evaluation_schedule_type | string 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. |
object 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. | |
query | object A query ID or an inline query that is a strict subset of a Query Specification. |
query_id | string The ID of a Query that meets the criteria for being used as a Trigger, per above. |
Success
Error
Unauthorized
Not Found
Invalid request
{- "name": "string",
- "description": "string",
- "threshold": {
- "op": ">",
- "value": 0,
- "exceeded_limit": 1
}, - "frequency": 0,
- "alert_type": "on_change",
- "disabled": false,
- "recipients": [
- {
- "id": "string",
- "type": "pagerduty",
- "target": "string",
- "details": {
- "pagerduty_severity": "string"
}
}
], - "evaluation_schedule_type": "frequency",
- "evaluation_schedule": {
- "window": {
- "days_of_week": [
- "sunday"
], - "start_time": "14:00",
- "end_time": "21:00"
}
}, - "query": { },
- "query_id": "string"
}
{- "id": "string",
- "name": "string",
- "description": "string",
- "threshold": {
- "op": ">",
- "value": 0,
- "exceeded_limit": 1
}, - "frequency": 0,
- "alert_type": "on_change",
- "disabled": false,
- "triggered": true,
- "recipients": [
- {
- "id": "string",
- "type": "pagerduty",
- "target": "string",
- "details": {
- "pagerduty_severity": "string"
}
}
], - "evaluation_schedule_type": "frequency",
- "evaluation_schedule": {
- "window": {
- "days_of_week": [
- "sunday"
], - "start_time": "14:00",
- "end_time": "21:00"
}
}, - "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "query": { },
- "query_id": "string"
}
Delete a trigger by specifying the trigger ID. The body of the DELETE request should be empty.
Success - no content
Unauthorized
Not Found
{- "error": "unknown API key - check your credentials"
}
List all triggers that will alert a given Recipient. Important: This request will return all Triggers associated with the specific Recipient across your entire Honeycomb team rather than being scoped to a dataset or environment.
Success
Unauthorized
Not Found
Error
[- {
- "id": "string",
- "name": "string",
- "description": "string",
- "threshold": {
- "op": ">",
- "value": 0,
- "exceeded_limit": 1
}, - "frequency": 0,
- "alert_type": "on_change",
- "disabled": false,
- "triggered": true,
- "recipients": [
- {
- "id": "string",
- "type": "pagerduty",
- "target": "string",
- "details": {
- "pagerduty_severity": "string"
}
}
], - "evaluation_schedule_type": "frequency",
- "evaluation_schedule": {
- "window": {
- "days_of_week": [
- "sunday"
], - "start_time": "14:00",
- "end_time": "21:00"
}
}, - "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "query": { },
- "query_id": "string"
}
]