embedded_ai_insights_on_usage_by_department
Retrieves Embedded AI usage insights (total volume) aggregated by department Provides traffic volume data grouped by departments for Embedded AI applications
Response
Returns GenAIAggregatedResponse
Arguments
| Name | Description |
|---|---|
start_time - Long! | The start time of the query window, as a Unix timestamp. |
end_time - Long! | The end time of the query window, as a Unix timestamp. |
filter - DepartmentCountFilter | Base Filters to apply on the usage by department |
QUERY
query GENERATIVE_AI {
GENERATIVE_AI {
embedded_ai_insights_on_usage_by_department(start_time: "123456789", end_time: "123456789", filter: { app_status: UN_SANCTIONED, action: ACTION_TAKEN_ALLOWED, department_id: 10 }) {
entries(limit: 10, order_by: [{ name: ASC, total: ASC }], filter_by: { name: { in: ["AWS"] } }) {
name
total
}
obfuscated
}
}
}RESPONSE
{
"data": {
"GENERATIVE_AI": {
"embedded_ai_insights_on_usage_by_department": {
"entries": [{
"name": "example_value",
"total": 123
}],
"obfuscated": true
}
}
}
}