API Stability Long-Term

The deleteAlert() GraphQL mutation may be used to delete an alert in LogScale.

For more information on alerts, see the Triggers documentation page.

Syntax

Below is the syntax for the deleteAlert() mutation field:

graphql
deleteAlert(
     input: DeleteAlert!
   ): boolean!

Below is an example of how this mutation field might be used:

Show:
graphql
mutation {
  deleteAlert(input: 
       {viewName: "humio", 
        id: "WKoeRcQ0EpuUskKvIJrGSXunEQZ09kU1" }
  )
}
Example Responses
Show:
json
{
  "data": {
    "deleteAlert": true
  }
}

Given Datatypes

For deleteAlert(), there are two parameters. Each is described below:

Table: DeleteAlert

ParameterTypeRequiredDefaultStabilityDescription
Some arguments may be required, as indicated in the Required column. For some fields, this column indicates that a result will always be returned for this column.
Table last updated: Sep 18, 2024
idstringyes Long-TermThe unique identifier of the alert.
viewNamestringyes Long-TermThe name of the view for the alert.