API Stability Long-Term

The enableAlert() GraphQL mutation may be used to enable an alert.

Syntax

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

graphql
enableAlert(
      input: EnableAlert!
   ): boolean!

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

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

Given Datatypes

For EnableAlert, there are two straightforward parameters that may be given. They're listed and described below:

Table: EnableAlert

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.
viewNameRepoOrViewNameyes Long-TermThe name of the view of the alert. RepoOrViewName is a scalar.