ai_total_prompts
Retrieves the total number of AI prompts captured. Filters for applications where both app and promptClass are not null.
Response
Returns GenAIAggregatedResponse
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. |
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 {
ai_total_prompts(start_time: "123456789", end_time: "123456789", page_size: 10, page_number: 10) {
entries(limit: 10, order_by: [{ name: ASC, total: ASC }], filter_by: { name: { in: ["AWS"] } }) {
name
total
}
obfuscated
}
}
}RESPONSE
{
"data": {
"GENERATIVE_AI": {
"ai_total_prompts": {
"entries": [{
"name": "example_value",
"total": 123
}],
"obfuscated": true
}
}
}
}