Query metrics

projectMetrics(input: ProjectMetricsInput!): MetricQueryResult!

Requires project.metrics.read.

Arguments

ArgumentTypeRequired
inputProjectMetricsInput!Yes

Input fields

input

ProjectMetricsInput

FieldTypeRequired
projectReferenceString!Yes
metricString!Yes
startStringNo
endStringNo
stepStringNo
aggregationMetricAggregationNo
labelsJSONNo

Response

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

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

Example

graphql
query ProjectMetrics($input: ProjectMetricsInput!) {
  projectMetrics(input: $input) {
    series {
      labels
      metric
    }
    stats {
      queryTimeMs
    }
  }
}
json
{
  "input": {
    "projectReference": "00000000-0000-4000-8000-000000000001",
    "metric": "example"
  }
}