Query
query ThreadSingleValueMetric($input: ThreadSingleValueMetricInput!) {
threadSingleValueMetric(input: $input) {
values {
value
group {
dimension
value
label
}
}
threadIds
}
}Variables
{
"input": {
"metricName": "service_level_agreement_compliance_frt",
"mode": "METRIC"
}
}Response
{
"data": {
"threadSingleValueMetric": {
"values": [
{
"value": 1.5,
"group": {
"dimension": "ASSIGNEE",
"value": "string",
"label": "string"
}
}
],
"threadIds": [
"id"
]
}
}
}Queries
threadSingleValueMetric
Fetch an aggregate (single-value) metric for threads with rich filter and group-by support.
Returns one value per group bucket for the specified date range and SingleValueMetricName, making
it suitable for summary dashboards or leaderboard-style breakdowns by assignee, tier, or label
type. Requires metrics:read; grouping by assignee or filtering assignedToUser to anyone
other than the caller additionally requires metricsAgent:read.
QUERY
threadSingleValueMetric(input: ThreadSingleValueMetricInput!): ThreadSingleValueMetric!Arguments
input
required
Returns
values
One aggregate value per group bucket. Null in threadIds mode.
threadIds
[ID!]
The distinct thread ids behind the value. Populated only when mode is threadIds; null otherwise.
Query
query ThreadSingleValueMetric($input: ThreadSingleValueMetricInput!) {
threadSingleValueMetric(input: $input) {
values {
value
group {
dimension
value
label
}
}
threadIds
}
}Variables
{
"input": {
"metricName": "service_level_agreement_compliance_frt",
"mode": "METRIC"
}
}Response
{
"data": {
"threadSingleValueMetric": {
"values": [
{
"value": 1.5,
"group": {
"dimension": "ASSIGNEE",
"value": "string",
"label": "string"
}
}
],
"threadIds": [
"id"
]
}
}
}Was this page helpful?

