Alert endpoints allow you to review or manage traffic alert rules, which monitor your integrations for healthy traffic. Learn about alerts.
There are two types of traffic alert rules: No Traffic or Error Threshold.
You can retrieve an alert rule, as well as create, update, or delete it. Alternatively, you can retrieve a list of alert rules. An alert rule response contains details about any related subscription links.
You can also retrieve a subscription link for an alert rule, as well as create, pause, or delete it.
Create environment alert (deprecated)
Create a traffic alert rule for a specific environment within a Redox organization. You can specify the details for the traffic alert rule via API or the Redox dashboard (learn how to create a traffic alert rule in the dashboard).
This endpoint allows you to create one traffic alert rule at a time. To create multiple traffic alert rules, you can create your own script and programmatically create a batch of alerts in an environment.
This endpoint is deprecated. Use Create alert instead.
cURL request example
Request Body Schema
- namerequired, string
Defines the name to assign to the new traffic alert rule.
- dataFlowIdrequired, number
Contains the unique identifier of the data flow (i.e., subscription).
- alertTyperequired, string
Specifies the type of new traffic alert rule. Currently, we support either No Traffic or Error Threshold types.
Possible Values:no-traffic
,error-threshold
- alertConfigurationrequired,
- alertLookbackISODurationstring
Specifies the ISO duration or time range that the traffic alert rule should evaluate for the trigger condition. For example, whether the condition is met in the most recent 2 hours.
Defines the conditions of a No Traffic alert rule, which monitors a data flow (i.e., subscription) for no completed traffic during a designated time frame.
- notificationrequired, object
- idstring
Displays the unique identifier of this notification configuration.
Format: uuid - typestring
Defines the type of notification that's sent when a traffic alert rule is triggered. Currently, we only support email notifications.
Value:email
- configurationobject
- toArray of string
Defines the list of email addresses that a notification is sent to whenever the traffic alert rule is either triggered or resolved. At least one email must be listed.
- metaobject
- versionstring
Lists the major and minor version number for the format of the returned payload. The payload format or shape may change between minor versions, like including additional or extended fields in later versions. We include the version data in each response so that you have the option to handle the signaled differences.
- payloadobject
- alertobject
Contains the details about the traffic alert rule.
- idstring
Displays the unique identifier of the new traffic alert rule.
Format: uuid - namestring
Displays the assigned name of the traffic alert rule.
- connectingOrgobject
Contains the details about the Redox organization associated with this log.
- idinteger
Identifies the specific Redox organization that you're operating in or on behalf of.
- namestring
Displays the human readable name of the Redox organization.
- dataFlowobject
Contains the details about the data flow, or subscription, that the traffic alert rule applies to.
- idnumber
Displays the identifier of the specified subscription in the Redox organization.
- sourceobject
Contains the details about the system that initiates the data exchange in the subscription.
- idstring
Displays the unique identifier of the system that initiates the data exchange in the subscription.
Format: uuid - namestring
Displays the name of the system that initiates the data exchange in the subscription.
- destinationobject
Contains the details about the intended endpoint of the subscription.
- idstring
Displays the unique identifier of the endpoint system in the subscription.
Format: uuid - namestring
Displays the name of the endpoint system in the subscription.
- dataModelstring
Identifies the data model being used to exchange data between systems.
- alertTypeobject
- codestring
Displays one of two possible values that specify the type of traffic that the alert monitors, whether completed or failed traffic.
Possible Values:no-traffic
,error-threshold
- alertConfiguration
Contains the required configuration fields for the specified type of traffic alert rule.
- alertLookbackISODurationstring
Specifies the ISO duration or time range that the traffic alert rule should evaluate for the trigger condition. For example, whether the condition is met in the most recent 2 hours.
Defines the conditions of a No Traffic alert rule, which monitors a data flow (i.e., subscription) for no completed traffic during a designated time frame.
- latestStatusobject
Contains the details of the most recent status of the traffic alert rule.
- codestring
Displays the most recent status of the traffic alert rule. The unknown status is often assigned if the alert is new or recently unpaused.
Possible Values:triggered
,okay
,paused
,unknown
- timestampstring
Displays the date and time of the latest alert in ISO 8601 format.
- notificationobject
- idstring
Displays the unique identifier of this notification configuration.
Format: uuid - typestring
Defines the type of notification that's sent when a traffic alert rule is triggered. Currently, we only support email notifications.
Value:email
- configurationobject
- toArray of string
Defines the list of email addresses that a notification is sent to whenever the traffic alert rule is either triggered or resolved. At least one email must be listed.
- creatingUserobject
Identifies the user that created the traffic alert rule.
- idnumber
Displays the unique identifier of the user that created the traffic alert rule.
- namestring
Displays the name of the user that created the traffic alert rule.
- emailstring
Displays the contact information, specifically the email address, of the user that created the traffic alert rule.