Skip to main content

performanceAnalytics

Requires permission analytics:sales:read.

Performance analytics for a period. Limited to the customers you may see.. Needs the sales analytics read permission.

Errors: a failed call returns a GraphQL errors entry, not a field on the result, and data may be null or partial. Read the entry's extensions.code and message; every shape and code is in the Error reference.

Example:

query PerformanceAnalytics($period: AnalyticsPeriod!) {
performanceAnalytics(period: $period) {
apiMetrics {
averageResponseTime
errorCount
totalRequests
}
}
}

Variables:

{
"period": "LAST_6_MONTHS"
}

Response:

{
"data": {
"performanceAnalytics": {
"apiMetrics": {
"averageResponseTime": 0,
"errorCount": 0,
"totalRequests": 0
}
}
}
}
performanceAnalytics(
period: AnalyticsPeriod!
): PerformanceAnalytics!

Arguments​

performanceAnalytics.period ● AnalyticsPeriod! non-null enum​

The reporting period to analyse.

Type​

PerformanceAnalytics object​

How the system and its users are performing.