Skip to main content

Search Unified Alerts

POST 

/v2/unified-alerts/search

Search for unified alerts based on filters.

Request

Body

required
    filter object

    How filters work: Filters are optional. We match all selected categories (AND), but will include results for any value selected within a single category (OR).

    alertIds string[]

    A list of alert IDs to filter by.

    dashboardIds string[]

    A list of dashboard IDs to filter by.

    panelIds string[]

    A list of panel IDs to filter by.

    searchTerm string

    A search term to filter alerts by title. Search is case-insensitive and matches partial titles.

    source string

    Possible values: [LOG_ALERT, METRIC_ALERT]

    The source type of the alert.

    severities string[]

    Possible values: [INFO, LOW, MEDIUM, HIGH, SEVERE]

    A list of severities to filter by.

    tags string[]

    A list of tags to filter by.

    enabled boolean

    Whether to filter by enabled alerts.

    createdBy string[]

    A list of users who created the alerts to filter by.

    updatedBy string[]

    A list of users who last updated the alerts to filter by.

    sort object[]

    Sort criteria for the search results. By field and sort direction.

  • Array [
  • field string

    Possible values: [title, severity, tags, updatedAt, createdBy, updatedBy, enabled]

    The field to sort by.

    direction string

    Possible values: [ASC, DESC]

    The sort direction.

  • ]
  • pagination object

    Default pagination is a page of 25 results. Look for the total field in the response for the number of available results overall, and use the pagination function to page through the results.

    pageNumber int32

    Default value: 1

    If you overshoot the page number, it will return empty with no results, but it won't fail the request.

    pageSize int32

    Default value: 25

    Controls the number of results per page.

Responses

A list of unified alerts matching the search criteria.

Schema
    total integer

    The total number of unified alerts matching the search criteria.

    results object[]

    The list of unified alerts matching the search criteria.

    pagination object

    Default pagination is a page of 25 results. Look for the total field in the response for the number of available results overall, and use the pagination function to page through the results.

    pageNumber int32

    Default value: 1

    If you overshoot the page number, it will return empty with no results, but it won't fail the request.

    pageSize int32

    Default value: 25

    Controls the number of results per page.

Loading...