preventedRisksStats
Aggregated counts of guideline-applied prompts and policy-blocked tool calls for the given window, with deltas vs the prior equivalent window. Powers the VibeSec Prevented Risks page stat cards.
Examples
query PreventedRisksStats($input: PreventedRisksStatsInput!) {
preventedRisksStats(input: $input) {
guidelinesApplied
toolCallsBlocked
totalPrevented
deltaGuidelinesApplied
deltaToolCallsBlocked
deltaTotalPrevented
}
}Variables
This is an example input showing all available input fields. Only fields marked as required in the schema are mandatory.
{
"input": {
"from": "example",
"to": "example"
}
}curl -X POST \
https://api.cloud.ox.security/api/apollo-gateway \
-H 'Content-Type: application/json' \
-H 'Authorization: YOUR_API_TOKEN' \
-d '{
"query": "query PreventedRisksStats($input: PreventedRisksStatsInput!) { preventedRisksStats(input: $input) { guidelinesApplied toolCallsBlocked totalPrevented deltaGuidelinesApplied deltaToolCallsBlocked deltaTotalPrevented } }",
"variables": {
"input": {
"from": "example",
"to": "example"
}
}
}'Arguments
You can use the following argument(s) to customize your preventedRisksStats query.
Fields
Return type: PreventedRisksStatsResponse!
You can use the following field(s) to specify what information your preventedRisksStats query will return. Please note that some fields may have their own subfields.
guidelinesApplied Int!
Number of guidelines applied in the current window
toolCallsBlocked Int!
Number of tool calls blocked in the current window
totalPrevented Int!
Total number of risks prevented in the current window
deltaGuidelinesApplied Int!
Change in guidelines applied compared with the previous window
deltaToolCallsBlocked Int!
Change in tool calls blocked compared with the previous window
deltaTotalPrevented Int!
Change in total risks prevented compared with the previous window
Last updated