gen_ai_top_users
Retrieves top Gen AI users by metric, with optional application breakdown. First step to get top users list for GEN_AI applications only.
Response
Returns GenAITopUsersSimpleResponse
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 or BY_TRANSACTIONS). |
apps - [String!] | List of specific applications to include in the analysis. |
QUERY
query GENERATIVE_AI {
GENERATIVE_AI {
gen_ai_top_users(start_time: "123456789", end_time: "123456789", metric_type: BY_VOLUME, apps: ["example_apps"]) {
entries {
id
name
total
}
obfuscated
}
}
}RESPONSE
{
"data": {
"GENERATIVE_AI": {
"gen_ai_top_users": {
"entries": [{
"id": 123,
"name": "example_value",
"total": 123
}],
"obfuscated": true
}
}
}
}