Skip to content

Alerts

Generated from openapi.json (API version 0.54.3). 23 endpoints. See the API overview for the base URL and how to sign requests.

POST /alerts/facets/options

Needs read:alert.

Query alert facet options. Accepts dictionary where key is facet id and value is cel to query facet

Body (application/json, required): FacetOptionsQueryDto

Field Type Required Description
cel string or null no
facet_queries object or null no

Responses

  • 200 Successful Response: object

GET /alerts/facets

Needs read:alert.

Get alert facets

Responses

  • 200 Successful Response: array of object

GET /alerts/facets/fields

Needs read:alert.

Get potential fields for alert facets

Responses

  • 200 Successful Response: array of object

POST /alerts/query

Needs read:alert.

Get last alerts occurrence

Body (application/json, required): QueryDto

Field Type Required Description
cel string or null no
limit integer or null no
offset integer or null no
sort_by string or null no
sort_dir string or null no
sort_options array of SortOptionsDto or null no

Responses

  • 200 Successful Response: object

GET /alerts

Needs read:alert.

Get last alerts occurrence

Query parameters

Name Type Required Description
limit integer no

Responses

  • 200 Successful Response: array of AlertDto

DELETE /alerts

Needs delete:alert.

Delete alert by finerprint and last received time

Body (application/json, required): DeleteRequestBody

Field Type Required Description
fingerprint string yes
lastReceived string yes
restore boolean no

Responses

  • 200 Successful Response: object

POST /alerts/batch

Needs read:alert.

Get alerts by fingerprints

Body (application/json, required): array of string

Responses

  • 200 Successful Response: array of AlertDto

GET /alerts/{fingerprint}/history

Needs read:alert.

Get alert history

Path parameters

Name Type Required Description
fingerprint string yes

Responses

  • 200 Successful Response: array of AlertDto

POST /alerts/{fingerprint}/assign/{last_received}

Needs read:alert.

Assign alert to user

Path parameters

Name Type Required Description
fingerprint string yes
last_received string yes

Query parameters

Name Type Required Description
unassign boolean no

Responses

  • 200 Successful Response: object

POST /alerts/event

Needs write:alert.

Receive a generic alert event

Query parameters

Name Type Required Description
provider_id string or null no
fingerprint string or null no

Body (application/json, required): AlertDto or array of AlertDto or object

Responses

  • 202 Successful Response: AlertDto or array of AlertDto

GET /alerts/event/netdata

No sign-in needed.

Helper function to complete Netdata webhook challenge

Responses

  • 200 Successful Response: object

POST /alerts/event/{provider_type}

Needs write:alert.

Receive an alert event from a provider

Path parameters

Name Type Required Description
provider_type string yes

Query parameters

Name Type Required Description
provider_id string or null no
provider_name string or null no
fingerprint string or null no

Responses

  • 202 Successful Response: object

GET /alerts/{fingerprint}

Needs read:alert.

Get alert by fingerprint

Path parameters

Name Type Required Description
fingerprint string yes

Responses

  • 200 Successful Response: AlertDto

POST /alerts/enrich/note

Needs read:alert.

Enrich an alert note

Body (application/json, required): EnrichAlertNoteRequestBody

Field Type Required Description
note string yes
fingerprint string yes

Responses

  • 200 Successful Response: object

POST /alerts/batch_enrich

Needs write:alert.

Enrich alerts by providing either a list of fingerprints or a CEL expression to select alerts. Examples for CEL: “name.contains(‘CPU’)”, “labels.severity == ‘critical’”, “name.contains(‘Memory’) && labels.region == ‘us-east-1’”

Query parameters

Name Type Required Description
dispose_on_new_alert boolean or null no Dispose on new alert

Body (application/json, required): BatchEnrichAlertRequestBody

Field Type Required Description
enrichments object yes
fingerprints array of string or null no
cel string or null no

Responses

  • 200 Successful Response: object

POST /alerts/enrich

Needs write:alert.

Enrich an alert

Query parameters

Name Type Required Description
dispose_on_new_alert boolean or null no Dispose on new alert

Body (application/json, required): EnrichAlertRequestBody

Field Type Required Description
enrichments object yes
fingerprint string yes

Responses

  • 200 Successful Response: object

POST /alerts/unenrich

Needs write:alert.

Un-Enrich an alert

Body (application/json, required): UnEnrichAlertRequestBody

Field Type Required Description
enrichments array of string yes
fingerprint string yes

Responses

  • 200 Successful Response: object

POST /alerts/search

Needs read:alert.

Search alerts

Body (application/json, required): SearchAlertsRequest

Field Type Required Description
query PresetSearchQuery yes
timeframe integer yes

Responses

  • 200 Successful Response: array of AlertDto

POST /alerts/audit

Needs read:alert.

Get alert timeline audit trail for multiple fingerprints

Body (application/json, required): array of string

Responses

  • 200 Successful Response: array of AlertAuditDto

GET /alerts/{fingerprint}/audit

Needs read:alert.

Get alert timeline audit trail

Path parameters

Name Type Required Description
fingerprint string yes

Responses

  • 200 Successful Response: array of AlertAuditDto

GET /alerts/quality/metrics

Needs read:alert.

Get alert quality

Query parameters

Name Type Required Description
fields array of string or null no
time_stamp string or null no

Responses

  • 200 Successful Response: object

GET /alerts/event/error

Needs read:alert.

Get alerts that Avacom failed to process

Query parameters

Name Type Required Description
limit integer no

Responses

  • 200 Successful Response: array of AlertErrorDto

POST /alerts/event/error/dismiss

Needs write:alert.

Dismiss error alerts. If alert_id is provided, dismisses that specific alert. If no alert_id is provided, dismisses all alerts.

Body (application/json): DismissAlertRequest

Field Type Required Description
alert_id string or null no

Responses

  • 200 Successful Response: object