embedded_ai_usage_by_department
Retrieves Embedded AI usage by department, grouped by departments and applications. Supports filtering by specific applications and different metric types (Volume, Transactions, Users).
Response
Returns GenAIDepartmentUsageResponse
Arguments
| Name | Description |
|---|---|
start_time - Long! | The start of the time range in Unix milliseconds. |
end_time - Long! | The end of the time range in Unix milliseconds. |
metric_type - GenAIMetricType! | The metric type to aggregate (BY_VOLUME, BY_TRANSACTIONS, or BY_USERS). |
apps - [String!] | List of specific applications to include in the analysis. |
QUERY
query GENERATIVE_AI {
GENERATIVE_AI {
embedded_ai_usage_by_department(start_time: "123456789", end_time: "123456789", metric_type: BY_VOLUME, apps: ["example_apps"]) {
entries {
id
name
total
entries {
name
total
}
}
obfuscated
}
}
}RESPONSE
{
"data": {
"GENERATIVE_AI": {
"embedded_ai_usage_by_department": {
"entries": [{
"id": 123,
"name": "example_value",
"total": 123,
"entries": [{
"name": "example_value",
"total": 123
}]
}],
"obfuscated": true
}
}
}
}