The queryQuotaUsage() GraphQL query returns the query quota usage for a particular user.

For more information on query quotas, see the Query Quotas documentation page.

Syntax

Below is the syntax for the queryQuotaUsage() query field:

queryQuotaUsage(username: string!): [QueryQuotaUsage!]!

Returned Datatypes

The returned datatype queryQuotaUsage() has its own parameters. Below is a list of them along with their datatypes and a description of each:

Table: QueryQuotaUsage

ParameterTypeRequired[a]DefaultDescription
intervalQueryQuotaIntervalyes The interval for setting the query quota: PerDay, PerHour, PerTenMinutes, PerMinute.
queryCountintegeryes The number queries.
staticCostlongyes The permitted amount of static cost points, a combination of both memory and CPU consumption by the query.
liveCostlongyes The permitted amount of live cost points, a combination of both memory and CPU consumption by the query.

[a] Some arguments may be required, as indicated in this column. For some fields, this column indicates that a result will always be returned for it.