Query
query Reports {
reports {
incidentReport {
breakdowns {
compliance {
__typename
}
location {
__typename
}
severity {
__typename
}
type {
__typename
}
}
currentPeriodTotal
previousPeriodTotal
totalsOverPeriods {
period
total
}
}
inspectionReport {
breakdowns {
findingsByCategory {
__typename
}
findingsByLocation {
__typename
}
}
total
totalsOverPeriods {
period
total
}
}
}
}Response
{
"data": {
"reports": {
"incidentReport": {
"breakdowns": {
"compliance": [
{
"__typename": "Breakdown"
}
],
"location": [
{
"__typename": "Breakdown"
}
],
"severity": [
{
"__typename": "Breakdown"
}
],
"type": [
{
"__typename": "Breakdown"
}
]
},
"currentPeriodTotal": 1,
"previousPeriodTotal": 1,
"totalsOverPeriods": [
{
"period": "string",
"total": 1
}
]
},
"inspectionReport": {
"breakdowns": {
"findingsByCategory": [
{
"__typename": "Breakdown"
}
],
"findingsByLocation": [
{
"__typename": "Breakdown"
}
]
},
"total": 1,
"totalsOverPeriods": [
{
"period": "string",
"total": 1
}
]
}
}
}
}Queries
reports
Analytics reports over the organization’s incidents and inspection findings.
QUERY
reports: Reports!Returns
incidentReport
Counts of closed incidents over a range of calendar months or days.
Arguments
range
Window to report on; the 6 calendar months ending now when omitted.
inspectionReport
Counts of inspection findings over a range of calendar months or days.
Arguments
range
Window to report on; the 6 calendar months ending now when omitted.
Query
query Reports {
reports {
incidentReport {
breakdowns {
compliance {
__typename
}
location {
__typename
}
severity {
__typename
}
type {
__typename
}
}
currentPeriodTotal
previousPeriodTotal
totalsOverPeriods {
period
total
}
}
inspectionReport {
breakdowns {
findingsByCategory {
__typename
}
findingsByLocation {
__typename
}
}
total
totalsOverPeriods {
period
total
}
}
}
}Response
{
"data": {
"reports": {
"incidentReport": {
"breakdowns": {
"compliance": [
{
"__typename": "Breakdown"
}
],
"location": [
{
"__typename": "Breakdown"
}
],
"severity": [
{
"__typename": "Breakdown"
}
],
"type": [
{
"__typename": "Breakdown"
}
]
},
"currentPeriodTotal": 1,
"previousPeriodTotal": 1,
"totalsOverPeriods": [
{
"period": "string",
"total": 1
}
]
},
"inspectionReport": {
"breakdowns": {
"findingsByCategory": [
{
"__typename": "Breakdown"
}
],
"findingsByLocation": [
{
"__typename": "Breakdown"
}
]
},
"total": 1,
"totalsOverPeriods": [
{
"period": "string",
"total": 1
}
]
}
}
}
}