API Stability Long-Term

The clearErrorOnFilterAlert() GraphQL mutation may be used to clear the error status on a filter alert. The status will be updated, though, if the error reoccurs.

For more information on filter alerts, see the Filter alerts documentation page.

Syntax

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

graphql
clearErrorOnFilterAlert(
      input: ClearErrorOnFilterAlertInput!
   ): FilterAlert!

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

Show:
graphql
mutation {
  clearErrorOnFilterAlert(input:
       { viewName: "humio", 
         id: "pvnPez4zbRDJqnS87HE1oZseiocfOGdN" } )
  {name, enabled}
}
Example Responses
Show:
json
{
  "data": {
    "clearErrorOnFilterAlert": {
      "name": "Great Filtration Watcher",
      "enabled": true
    }
  }
}

Given Datatypes

For ClearErrorOnFilterAlertInput, there are only two parameters. Below is a list of them along with a description of each:

Table: ClearErrorOnFilterAlertInput

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 17, 2024
idstringyes Long-TermThe unique identifier of the filter alert.
viewNameRepoOrViewNameyes Long-TermName of the view of the filter alert. RepoOrViewName is a scalar.

Returned Datatypes

The returned datatype filterAlert has many parameters. Below is a list of them along with a description of each:

Table: FilterAlert

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: Mar 26, 2025
actions[action]yes Long-TermList of unique identifiers for actions to fire on query result. See Action.
allowedActions[AssetAction]yes PreviewList of actions allowed on which to filter query results. See AssetAction.
descriptionstring  Long-TermDescription of the filter alert.
enabledbooleanyes Long-TermWhether the filter alert is enabled.
idstringyes Long-TermThe unique identifier of the filter alert.
labels[string]yes Long-TermLabels attached to the filter alert.
lastErrorstring  Long-TermLast error encountered while running the filter alert.
lastErrorTimelong  Long-TermUnix timestamp for last error.
lastSuccessfulPolllong  Long-TermUnix timestamp for last successful poll of the filter alert query. If this is not quite recent, then the alert might be having problems.
lastTriggeredlong  Long-TermUnix timestamp for last execution of trigger.
lastWarnings[string]yes Long-TermLast warnings encountered while running the filter alert.
modifiedInfomodifiedInfo  Long-TermUser or token used to modify the asset. See ModifiedInfo. This is a preview and subject to change.
namestringyes Long-TermThe name of the filter alert.
packagePackageInstallation  Long-TermThe package of which the alert was installed. See PackageInstallation.
packageIdVersionedPackageSpecifier  Long-TermThe unique identifier of the package of which the alert was installed. VersionedPackageSpecifier is a scalar.
queryOwnershipqueryOwnershipyes Long-TermOwnership of the query run by this alert. See QueryOwnership.
queryStringstringyes Long-TermThe LogScale query to execute.
resourcestringyes Short-TermThe resource identifier for this filter alert.
throttleFieldstring  Long-TermA field to throttle on. Can only be set if throttleTimeSeconds is set.
throttleTimeSecondslong  Long-TermThe throttle time in seconds.
yamlTemplateyamlyes Long-TermYAML specification of the filter alert.