query ThreadSingleValueMetric($input: ThreadSingleValueMetricInput!) {
threadSingleValueMetric(input: $input) {
values {
value
group {
dimension
value
label
}
}
threadIds
machineUsers
}
}{
"input": {
"metricName": "service_level_agreement_compliance_frt",
"mode": "METRIC"
}
}{
"data": {
"threadSingleValueMetric": {
"values": [
{
"value": 1.5,
"group": {
"dimension": "ASSIGNEE",
"value": "string",
"label": "string"
}
}
],
"threadIds": [
"id"
],
"machineUsers": "INCLUDE"
}
}
}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.
threads_csat__* metrics require filters.surveyResponse.rating (an integer from 1 to 3).
Requires metrics:read; grouping by assignee or filtering assignedToUser to anyone
other than the caller additionally requires metricsAgent:read.
threadSingleValueMetric(input: ThreadSingleValueMetricInput!): ThreadSingleValueMetric!Arguments
Returns
One aggregate value per group bucket. Null in threadIds mode.
The distinct thread ids behind the value. Populated only when mode is threadIds; null otherwise.
The machine-user mode the result used: the requested machineUsers, or the metric's default when it was omitted.
query ThreadSingleValueMetric($input: ThreadSingleValueMetricInput!) {
threadSingleValueMetric(input: $input) {
values {
value
group {
dimension
value
label
}
}
threadIds
machineUsers
}
}{
"input": {
"metricName": "service_level_agreement_compliance_frt",
"mode": "METRIC"
}
}{
"data": {
"threadSingleValueMetric": {
"values": [
{
"value": 1.5,
"group": {
"dimension": "ASSIGNEE",
"value": "string",
"label": "string"
}
}
],
"threadIds": [
"id"
],
"machineUsers": "INCLUDE"
}
}
}Was this page helpful?

