gen_ai_insights_on_usage_by_users
Retrieves Gen AI usage insights (total volume) aggregated by users Provides traffic volume data for GenAI applications with user-level filtering
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 - UsersAggregationFilter | Base Filters to apply on the usage by users |
QUERY
query GENERATIVE_AI {
GENERATIVE_AI {
gen_ai_insights_on_usage_by_users(start_time: "123456789", end_time: "123456789", filter: { department_id: 10, user: { id: 10 }, app_status: UN_SANCTIONED }) {
entries(limit: 10, order_by: [{ name: ASC, total: ASC }], filter_by: { name: { in: ["AWS"] } }) {
name
total
}
obfuscated
}
}
}RESPONSE
{
"data": {
"GENERATIVE_AI": {
"gen_ai_insights_on_usage_by_users": {
"entries": [{
"name": "example_value",
"total": 123
}],
"obfuscated": true
}
}
}
}