For the complete documentation index, see llms.txt. This page is also available as Markdown.

getRisksPreventedWeekly

Get risks prevented grouped by week.

Examples

query GetRisksPreventedWeekly($input: ActiveUsersWeeklyInput) {
  getRisksPreventedWeekly(input: $input) {
    week
    risksPreventedCount
  }
}

Variables

This is an example input showing all available input fields. Only fields marked as required in the schema are mandatory.

{
  "input": {
    "dateRange": {
      "from": 1749000000000,
      "to": 1749900000000
    }
  }
}
curl -X POST \
https://api.cloud.ox.security/api/apollo-gateway \
-H 'Content-Type: application/json' \
-H 'Authorization: YOUR_API_TOKEN' \
-d '{
 "query": "query GetRisksPreventedWeekly($input: ActiveUsersWeeklyInput) { getRisksPreventedWeekly(input: $input) { week risksPreventedCount } }",
 "variables": {
    "input": {
      "dateRange": {
        "from": 1749000000000,
        "to": 1749900000000
      }
    }
  }
}'

Arguments

You can use the following argument(s) to customize your getRisksPreventedWeekly query.

Argument
Description
Supported fields

Optional date range filter

Fields

Return type: [RisksPreventedWeeklyItem!]!

You can use the following field(s) to specify what information your getRisksPreventedWeekly query will return. Please note that some fields may have their own subfields.

Field
Description
Supported fields

week String!

ISO string of the week start date

risksPreventedCount Int!

Number of risks prevented in the week

policyBlocksCount Int! ⚠️

Deprecated: Reporting-service dropped the separate policy-blocks series (OXDEV-85749); always 0, pending schema removal.

Last updated