embedded_ai_insights_on_usage_by_location
Retrieves Embedded AI usage insights (total volume) aggregated by location Provides traffic volume data grouped by locations 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 - LocationAggregationFilter | Base Filters to apply on the usage by location |
QUERY
query GENERATIVE_AI {
GENERATIVE_AI {
embedded_ai_insights_on_usage_by_location(start_time: "123456789", end_time: "123456789", filter: { location_id: 10, app_status: UN_SANCTIONED, action: ACTION_TAKEN_ALLOWED }) {
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_location": {
"entries": [{
"name": "example_value",
"total": 123
}],
"obfuscated": true
}
}
}
}