For the complete documentation index, see llms.txt. This page is also available as Markdown.

Alerts

Operations related to Alerts for monitoring platform events and triggering notifications based on predefined conditions. Enables automated alerting for critical events such as segment drops, with configurable alert types and delivery preferences.

Find alerts

get
/alerts
Query parameters
organisation_idinteger · int64Optional

Organisation owning the alerts

community_idstringOptional

Community owning the alerts

datamart_idstringOptional

Datamart owning the alerts

alert_typestring · enumOptional

The type of the alerts

Possible values:
alert_subtypestring · enumOptional

The subtype of the alerts

Possible values:
segment_idstringOptional

Segment link to the alert

archivedbooleanOptional

If true the result will contain only archived alerts

first_resultinteger · int32Optional

Offset from which the search must be performed

max_resultsinteger · int32Optional

Number of maximum items that shall be return by this search

fromstringOptional

We return alerts from this date

tostringOptional

We return alerts to this date

fetch_allbooleanOptional

Either we should return archived AND unarchived alerts or not

group_bybooleanOptional

Either we should return only last non-archived alert for each segment

Responses
200

Success !

application/json
totalintegerRequired
max_resultsintegerRequired
countintegerRequired
first_resultintegerRequired
statusstring · enumRequiredPossible values:
get/alerts
GET /v1/alerts HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
  "total": 1,
  "max_results": 1,
  "count": 1,
  "data": [
    {
      "drop_rate_from_initial": 0,
      "user_point_count": 0,
      "created_ts": 0,
      "segment": {
        "segment_type": "USER_LIST",
        "segment_id": "text",
        "segment_name": "text",
        "feeds_count": 0,
        "user_points_count": 0
      },
      "last_count_ts": 0,
      "id": "text",
      "archived": false,
      "count": 0,
      "expiration": 0,
      "archived_by": "text",
      "organisation_id": "text",
      "archived_ts": 0,
      "user_point_count_from_initial": 0,
      "community_id": "text",
      "drop_rate": 0,
      "datamart_id": "text"
    }
  ],
  "first_result": 1,
  "status": "ok"
}

Archive/unarchive an alert

put
/alerts/{alert_id}
Path parameters
alert_idstringRequired

The alert id

Query parameters
archivebooleanRequired
Responses
200

Success !

application/json
statusstring · enumRequiredPossible values:
put/alerts/{alert_id}
PUT /v1/alerts/{alert_id}?archive=true HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
  "status": "ok",
  "data": {
    "type": "SEGMENT_VOLUME_DROP",
    "drop_rate_from_initial": 0,
    "user_point_count": 0,
    "created_ts": 0,
    "segment": {
      "segment_type": "USER_LIST",
      "segment_id": "text",
      "segment_name": "text",
      "feeds_count": 0,
      "user_points_count": 0
    },
    "last_count_ts": 0,
    "id": "text",
    "archived": false,
    "count": 0,
    "expiration": 0,
    "archived_by": "text",
    "organisation_id": "text",
    "archived_ts": 0,
    "user_point_count_from_initial": 0,
    "community_id": "text",
    "drop_rate": 0,
    "datamart_id": "text"
  }
}

Delete an alert

delete
/alerts/{alert_id}
Path parameters
alert_idstringRequired

The alert id

Responses
200

Success response

application/json
statusstring · enumRequiredPossible values:
delete/alerts/{alert_id}
DELETE /v1/alerts/{alert_id} HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
  "status": "ok"
}

Last updated

Was this helpful?