Query
query ThreadHeatmapMetric($input: ThreadHeatmapMetricInput!) {
threadHeatmapMetric(input: $input) {
days {
total
percentage
}
threadIds
}
}Variables
{
"input": {
"metricName": "threads_created_count_heatmap",
"from": "string",
"to": "string",
"mode": "METRIC"
}
}Response
{
"data": {
"threadHeatmapMetric": {
"days": [
[
{
"total": 1,
"percentage": 1.5
}
]
],
"threadIds": [
"id"
]
}
}
}Queries
threadHeatmapMetric
Fetch a heatmap metric for threads with filter support, distributing thread activity across a
7-day × 24-hour grid. Unlike the legacy heatmapMetric, this query uses the unified
ThreadMetricFilters input for consistent filtering by label, tier, assignee, and more.
Requires metrics:read; filtering assignedToUser to anyone other than the caller
additionally requires metricsAgent:read.
QUERY
threadHeatmapMetric(input: ThreadHeatmapMetricInput!): ThreadHeatmapMetric!Arguments
input
required
Returns
days
[[ThreadHeatmapHour!]!]
7 elements (Monday=0 … Sunday=6), each containing 24 hourly buckets (hour 0–23 UTC). Null in threadIds mode.
threadIds
[ID!]
The distinct thread ids behind the clicked cell. Populated only when mode is threadIds; null otherwise.
Query
query ThreadHeatmapMetric($input: ThreadHeatmapMetricInput!) {
threadHeatmapMetric(input: $input) {
days {
total
percentage
}
threadIds
}
}Variables
{
"input": {
"metricName": "threads_created_count_heatmap",
"from": "string",
"to": "string",
"mode": "METRIC"
}
}Response
{
"data": {
"threadHeatmapMetric": {
"days": [
[
{
"total": 1,
"percentage": 1.5
}
]
],
"threadIds": [
"id"
]
}
}
}Was this page helpful?

