Skip to main content

Overview

When you know which validator you want incidents for, you can query that validator by its resource name and expand the result to include all of its incidents, without using the incidentGroups query.

Steps

1

Construct the query

Write a query that calls validatorByResourceName, with variables for namespaceId and resourceName.
2

Execute the query

Pass the query and set the variable values.
3

Iterate over the result

Iterate over each incident and print its value and how much it deviated.

Full code sample

Python

Example response

JSON