Alert configurations
Alert Configurations allow customization of settings for different alert types within the Alerting module.
Configurations are used to define specific behavior, thresholds, and rules associated with each alert type. They are dedicated resources.
Each alert type can have a different set of configurations. By configuring alert types, you can tailor the behavior of the alerts to meet specific requirements.
Alert configurations can be personalized for a specific organization. This means that each organization can have its own set of configuration values for the alert types. If a configuration is not set, a default value set by mediarithmics will be used.
Allowed configurations
Alert configurations are identified by combining three values: config_key
, organisation_id
, and alert_type
. The config_key
uniquely identifies a specific configuration setting, while the organisation_id
and alert_type
specify the organization and alert type to which the configuration belongs.
Here is a list of available configuration keys and their sample values:
config | config_value | Editable in the UI |
---|---|---|
|
| |
| Sample value: Volume drops apply to all segments if not defined | |
| Value is an integer such as | |
alert_type: SEGMENT_INITIAL_LOADING | Value is an integer & reprents a number of hours Defaults to | |
alert_type: SEGMENT_INITIAL_LOADING | Value is an integer & reprents a number of hours Defaults to | |
alert_type: SEGMENT_INITIAL_LOADING | Value is an integer. Defaults to |
Accessing configurations
You can list/edit configurations for your organizations by API.
It is much easier to edit configurations through the UI when available.
Get all configurations set up for an organisation
GET
https://api.mediarithmics.com/v1/alert_type_configs
If a configuration from the allowed list is not setup, it won't be returned by this call but fall back to the default platform value in usage.
Query Parameters
Name | Type | Description |
---|---|---|
organisation_id* | Int | ID of the organisation |
Creates a new configuration entry
POST
https://api.mediarithmics.com/v1/alert_type_configs/config_key=:configKey/organisation_id=:organisationId/alert_type=:alertType
Path Parameters
Name | Type | Description |
---|---|---|
configKey* | string | Configuration key. Use the list of allowed configurations. Other keys won't have an impact. |
organisationId* | string | ID of the organisation for which to create the configuration |
alertType* | string | AlertType. Use the list of allowed configurations. |
Request Body
Name | Type | Description |
---|---|---|
config_value* | string | The value of the configuration. Use the list of allowed configurations for the correct value format, depending on your configuration. |
Change the value or archive a configuration
PUT
https://api.mediarithmics.com/v1/alert_type_configs/config_key=:configKey/organisation_id=:organisationId/alert_type=:alertType
Path Parameters
Name | Type | Description |
---|---|---|
configKey* | string | Configuration key. Use the list of allowed configurations. Other keys won't have an impact. |
organisationId* | string | ID of the organisation for which to create the configuration |
alertType* | string | AlertType. Use the list of allowed configurations. |
Request Body
Name | Type | Description |
---|---|---|
config_value* | string | The value of the configuration. Use the list of allowed configurations for the correct value format, depending on your configuration. |
archived | Boolean |
|
Deletes a config
DELETE
https://api.mediarithmics.com/v1/alert_type_configs/config_key=:configKey/organisation_id=:organisationId/alert_type=:alertType
Path Parameters
Name | Type | Description |
---|---|---|
configKey* | string | Configuration key. Use the list of allowed configurations. Other keys won't have an impact. |
organisationId* | string | ID of the organisation for which to create the configuration |
alertType* | string | AlertType. Use the list of allowed configurations. |
Archived configurations
Configurations can be archived using the PUT request. An archived configuration is not used anymore by the platform (fallback to default value) but is easier to reactivate later.
Last updated