Get alerts

get/v2/environments/{environmentId}/alerts
Page View

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.

Get alerts

Retrieve a list of existing traffic alert rules for a specific environment within a Redox organization. You can only retrieve a list of alerts for one environment per query.

Request parameters

cURL request example

bash
1
curl 'https://api.redoxengine.com/platform/v2/environments/{environmentId}/alerts' \
2
--request GET \
3
--header 'Authorization: Bearer $API_TOKEN' \
4
--header 'accept: application/json'

Response fields and example

Example payload generated from schema
1
{
2
"meta": {
3
"version": "1.0.0"
4
},
5
"payload": {
6
"alerts": [
7
{
8
"id": "dc5d2a43-df19-459c-b14f-450584ce1c55",
9
"name": "My important alert",
10
"environment": {
11
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
12
},
13
"organization": {
14
"id": 122,
15
"name": "string"
16
},
17
"alertType": {
18
"code": "no-traffic"
19
},
20
"alertConfiguration": {
21
"alertLookbackISODuration": "PT12H"
22
},
23
"notification": {
24
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
25
"type": {
26
"code": "no-traffic"
27
},
28
"configuration": {
29
"to": [
30
"exampleEmail@example.com"
31
]
32
}
33
},
34
"ignoreDaysOfWeek": [
35
"SATURDAY"
36
],
37
"ignoreHolidays": false,
38
"timeZone": "America/Adak",
39
"alertLinks": [
40
{
41
"id": "dc5d2a43-df19-459c-b14f-450584ce1c55",
42
"assignment": {
43
"id": "1ee1d994-652f-44b5-9342-4b3e8b9918ee",
44
"kind": "alert"
45
},
46
"subscription": {
47
"id": "8675309",
48
"dataModel": "PatientAdmin",
49
"source": {
50
"id": "1ee1d994-652f-44b5-9342-4b3e8b9918ee",
51
"name": "string"
52
},
53
"destination": {
54
"id": "39a858ea-4474-4d04-b37e-88862fe4054d",
55
"name": "string"
56
},
57
"serviceRegion": "AWS_USA_EAST_1"
58
},
59
"connectingOrganization": {
60
"id": 122,
61
"name": "string"
62
},
63
"latestStatus": {
64
"code": "triggered",
65
"timestamp": "2024-04-28T19:17:16.719Z"
66
},
67
"environment": {
68
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
69
},
70
"createdAt": "2024-04-25T18:17:16.719Z",
71
"createdBy": {
72
"id": 0,
73
"name": "string",
74
"email": "string"
75
},
76
"updatedAt": "2024-04-25T18:17:16.719Z",
77
"updatedBy": {
78
"id": 0,
79
"name": "string",
80
"email": "string"
81
}
82
}
83
],
84
"createdAt": "2024-04-25T18:17:16.719Z",
85
"createdBy": {
86
"id": 0,
87
"name": "string",
88
"email": "string"
89
},
90
"updatedAt": "2024-04-25T18:17:16.719Z",
91
"updatedBy": {
92
"id": 0,
93
"name": "string",
94
"email": "string"
95
}
96
}
97
]
98
}
99
}
  • meta
    object
    • version
      string

      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.

  • payload
    object
    • alerts
      Array of object
      • id
        string

        Displays the unique identifier of the link for a given alert.

        Format: uuid
      • name
        string

        Displays the name of the alert.

      • environment
        object

        Contains metadata about the environment within the associated Redox organization.

        • id
          string

          Contains the unique identifier of the Redox environment.

          Format: uuid
      • organization
        object

        Contains metadata about the Redox organization.

        • id
          number

          Contains the unique identifier of the Redox organization.

        • name
          nullable, string

          Contains the human-readable name of the Redox organization.

      • alertType
        object

        Specifies the type of alert.

        • code
          string

          Describes the alert type.

          Possible Values: no-traffic, error-threshold
      • alertConfiguration

        Contains the alert configuration fields for the specified type of traffic alert rule.

          Defines the conditions of a No Traffic alert rule, which monitors a subscription for no completed traffic during a designated time frame.

        • alertLookbackISODuration
          string

          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.

      • notification
        object

        Contains the notification configuration fields for the specified type of traffic alert rule.

        • id
          string

          Displays the unique identifier of this notification configuration.

          Format: uuid
        • type
          object

          Specifies the type of alert.

          • code
            string

            Describes the alert type.

            Possible Values: no-traffic, error-threshold
        • configuration
          object

          Contains the configuration field for the traffic alert rule.

          • to
            Array 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.

      • ignoreDaysOfWeek
        Array of string

        Designates the weekend days of the week that your organization won't receive notifications for this alert if triggered.

        Possible Values: SATURDAY, SUNDAY
      • ignoreHolidays
        boolean

        Indicates whether your organization will receive notifications for this alert on holidays, as specified by Redox.

      • timeZone
        nullable, string

        Indicates the time zone that will be used for ignored days. Redox doesn't send alert notifications on ignored days. Set to null if you want to use the default time zone, which is the time zone designated by your connection's organization settings. If not designated, U.S. Central time will be the default instead.

        Possible Values: America/Adak, America/Anchorage, America/Chicago, America/Denver, America/Edmonton, America/Halifax, America/Los_Angeles, America/New_York, America/Phoenix, America/Regina, America/St_Johns, America/Toronto, America/Vancouver, America/Winnipeg, Pacific/Honolulu, UTC
      • Contains any links related to this alert.

        • id
          string

          Displays the unique identifier of the link for a specified alert.

          Format: uuid
        • assignment
          object

          Specifies the alert this link is assigned to.

          • id
            string

            Contains the unique identifier of the alert.

          • kind
            string

            Identifies what kind of link is assigned.

            Value: alert
        • subscription
          object

          Identifies the subscription that the alert is linked to.

          • id
            number

            Contains the unique identifier of subscription.

          • dataModel
            string

            Identifies the Redox data model that the link applies to.

          • source
            object

            Specifies the source of the subscription that the alert is linked to.

            • id
              string

              Contains the unique identifier of the source.

            • name
              nullable, string

              Displays the human-readable name of the source.

          • destination
            object

            Specifies the destination of the subscription that the alert is linked to.

            • id
              string

              Contains the unique identifier of the destination.

            • name
              nullable, string

              Displays the human-readable name of the destination.

          • serviceRegion
            string

            Identifies the region that the subscription is operating in.

            Possible Values: AWS_USA_EAST_1, AWS_CAN_CENTRAL, GCP_USA_CENTRAL_1
        • connectingOrganization
          object

          Specifies the organization the asset is connected to when the subscription relates to a partner organization.

          • id
            number

            Contains the unique identifier of the Redox organization.

          • name
            nullable, string

            Contains the human-readable name of the Redox organization.

        • latestStatus
          object

          Contains the code and timestamp for the current status of the alert for this link.

          • code
            string

            Describes the current status of the alert.

            Possible Values: triggered, okay, paused, unknown
          • timestamp
            string

            Contains date and time for the current status update.

        • environment
          object

          Contains metadata about the environment within the associated Redox organization.

          • id
            string

            Contains the unique identifier of the Redox environment.

            Format: uuid
        • createdAt
          string

          Displays the date and time that the asset was originally created in ISO 8601 format.

        • createdBy
          object

          Contains the metadata about the user who created the asset.

          • id
            number

            Contains the unique identifier of the user.

          • name
            nullable, string

            Displays the user's full name.

          • email
            nullable, string

            Displays the user's email address.

        • updatedAt
          string

          Displays the date and time that the asset was last updated in ISO 8601 format.

        • updatedBy
          object

          Contains the metadata about the user who last updated the asset.

          • id
            number

            Contains the unique identifier of the user.

          • name
            nullable, string

            Displays the user's full name.

          • email
            nullable, string

            Displays the user's email address.

      • createdAt
        string

        Displays the date and time that the asset was originally created in ISO 8601 format.

      • createdBy
        object

        Contains the metadata about the user who created the asset.

        • id
          number

          Contains the unique identifier of the user.

        • name
          nullable, string

          Displays the user's full name.

        • email
          nullable, string

          Displays the user's email address.

      • updatedAt
        string

        Displays the date and time that the asset was last updated in ISO 8601 format.

      • updatedBy
        object

        Contains the metadata about the user who last updated the asset.

        • id
          number

          Contains the unique identifier of the user.

        • name
          nullable, string

          Displays the user's full name.

        • email
          nullable, string

          Displays the user's email address.