Get run analytics

getAccountRunAnalytics(command: RunsGetAccountRunAnalyticsCommand!): RunsAccountAnalytics!

Arguments

ArgumentTypeRequired
commandRunsGetAccountRunAnalyticsCommand!Yes

Input fields

command

RunsGetAccountRunAnalyticsCommand

FieldTypeRequiredDescription
accountIdIDNoAccount to report; omitted, use the authorized context account or caller default. Requires account.billing.read.
presetStringNoWhole local days, defaulting to 30d. Explicit from/to bounds take precedence over preset, including SDK-supplied defaults.
fromStringNoInclusive start. Supply both from and to; these bounds take precedence over preset.
toStringNoExclusive end, no later than the end of today in timezone.
timezoneStringNo
granularityStringNoUTC hours, or local calendar days, Monday-based weeks and months.
groupBy[String!]NoGrouping dimensions supported by this operation. Repeat the parameter or use a comma-separated list.
compareStringNoCompare preceding calendar months for whole-month custom ranges, local days for whole-day ranges and presets, or equal elapsed duration otherwise.
label[String!]NoProject label filters as key or key=value, repeated or comma-separated.
projectReferenceStringNoOptional project UUID or slug to scope analytics to a single project.

Response

Returns RunsAccountAnalytics!. Open the type for its fields and nested types.

All fields of RunsAccountAnalytics.

Types marked with ! cannot be null. Lists use [Type] notation. The type index lists all published input and response types.

Example

graphql
query GetAccountRunAnalytics($command: RunsGetAccountRunAnalyticsCommand!) {
  getAccountRunAnalytics(command: $command) {
    groupBy
  }
}
json
{
  "command": {}
}