A RasterAlarm adds minimum or maximum thresholds to a Raster Intersection.

Alarms are triggered on import of new raster data. Direct messages E-mails and/or sms-es are sent when a threshold is exceeded. If the message contains the [[var:warning_value]], [[var:warning_timestamp]] or [[var:warning_level]] placeholder tags these will be replaced by the most extreme threshold value and status.

Query parameters

name: Text filter on name. Supports various lookup types (name__exact by default).

active: Boolean filter on active. Either true or false.

organisation: Related filter on organisation. See the organisations endpoint.

page_size: The maximum number of results to return in list-view. The default is 10.

uuid: Text filter on uuid. Supports a comma-separated list of (fragments of) UUIDs. UUIDs must be specified in their canonical form (with hyphens, that is). Case insensitive. Only supports uuid__icontains, the default.

warning_timestamp: ISO date time filter on warning_timestamp date time field. Also supports gte and lte filters. Selects those alarms that are equal, greater or equal, or smaller or equal than the given iso8601 formated date and time. Needs both date and time specified. Alarms that do not have a notification are not returned.

Examples

?name=Example

?name__icontains=Examp

?name__icontains=Examp&page_size=100

?organisation__unique_id=c5e37ca3495045168f5d911c37ee2319

?warning_timestamp=2017-01-01T00:00Z

?warning_timestamp__lte=2017-01-01T00:00Z

?warning_timestamp__gte=2017-01-01T00:00Z

?active=true
GET /api/v3/rasteralarms/
HTTP 200 OK
Allow: GET, POST, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "count": 0,
    "next": null,
    "previous": null,
    "results": []
}