gen_ai_apps_by_metric
Retrieves Gen AI application metrics grouped by application name, with optional action breakdown. Supports different metric types (Volume, Transactions, Users) for Gen AI applications only.
Response
Returns GenAIAppMetricResponse
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). |
page_size - Int | The page size for pagination (defaults to 100). |
page_number - Int | The page number for pagination (defaults to 0). |
QUERY
query GENERATIVE_AI {
GENERATIVE_AI {
gen_ai_apps_by_metric(start_time: "123456789", end_time: "123456789", metric_type: BY_VOLUME, page_size: 10, page_number: 10) {
entries {
name
total
entries {
name
total
}
}
obfuscated
}
}
}RESPONSE
{
"data": {
"GENERATIVE_AI": {
"gen_ai_apps_by_metric": {
"entries": [{
"name": "example_value",
"total": 123,
"entries": [{
"name": "example_value",
"total": 123
}]
}],
"obfuscated": true
}
}
}
}