v1

latestOpenAPI 3.0.02026-07-14198572488.4 KB
Reporting

Retrieve WAF events source report.

For given site it checks cloudflare stats to get WAF events source data and returns it.

get/v1/reporting/sites/{id}/waf/events-source

Path parameters

idinteger required

ID of the Site you are interacting with

Example:8880000888

Query parameters

duration'30m' | '1h' | '6h' | '12h' | '24h' | '72h' | '7d' | '30d' required

Duration that the listed data is for (m = minutes, h = hours, d = days)

Example:7d

Response

OK

errorsstring[]

Example response

{
  "errors": [
    "bf095f43-72a7-45cc-b4c3-cfbace9695cb"
  ],
  "data": {
    "viewer": {
      "__typename": "viewer",
      "zones": [
        {
          "__typename": "zone",
          "topASNs": [
            {
              "__typename": "ZoneFirewallEventsAdaptiveGroups",
              "avg": {
                "__typename": "ZoneFirewallEventsAdaptiveGroupsAvg",
                "sampleInterval": 3.8457300275482096
              },
              "count": 25661,
              "dimensions": {
                "__typename": "ZoneFirewallEventsAdaptiveGroupsDimensions",
                "description": "AMAZON-AES",
                "metric": "100016",
                "ts": "2024-08-19T20:05:00Z"
              }
            }
          ],
          "topCountries": [
            {
              "__typename": "ZoneFirewallEventsAdaptiveGroups",
              "avg": {
                "__typename": "ZoneFirewallEventsAdaptiveGroupsAvg",
                "sampleInterval": 3.8457300275482096
              },
              "count": 25661,
              "dimensions": {
                "__typename": "ZoneFirewallEventsAdaptiveGroupsDimensions",
                "metric": "100016",
                "ts": "2024-08-19T20:05:00Z"
              }
            }
          ],
          "topFirewallRules": [
            {
              "__typename": "ZoneFirewallEventsAdaptiveGroups",
              "avg": {
                "__typename": "ZoneFirewallEventsAdaptiveGroupsAvg",
                "sampleInterval": 3.8457300275482096
              },
              "count": 25661,
              "dimensions": {
                "__typename": "ZoneFirewallEventsAdaptiveGroupsDimensions",
                "metric": "100016",
                "ts": "2024-08-19T20:05:00Z"
              }
            }
          ],
          "topHosts": [
            {
              "__typename": "ZoneFirewallEventsAdaptiveGroups",
              "avg": {
                "__typename": "ZoneFirewallEventsAdaptiveGroupsAvg",
                "sampleInterval": 3.8457300275482096
              },
              "count": 25661,
              "dimensions": {
                "__typename": "ZoneFirewallEventsAdaptiveGroupsDimensions",
                "metric": "100016",
                "ts": "2024-08-19T20:05:00Z"
              }
            }
          ],
          "topHTTPMethods": [
            {
              "__typename": "ZoneFirewallEventsAdaptiveGroups",
              "avg": {
                "__typename": "ZoneFirewallEventsAdaptiveGroupsAvg",
                "sampleInterval": 3.8457300275482096
              },
              "count": 25661,
              "dimensions": {
                "__typename": "ZoneFirewallEventsAdaptiveGroupsDimensions",
                "metric": "100016",
                "ts": "2024-08-19T20:05:00Z"
              }
            }
          ],
          "topIPs": [
            {
              "__typename": "ZoneFirewallEventsAdaptiveGroups",
              "avg": {
                "__typename": "ZoneFirewallEventsAdaptiveGroupsAvg",
                "sampleInterval": 3.8457300275482096
              },
              "count": 25661,
              "dimensions": {
                "__typename": "ZoneFirewallEventsAdaptiveGroupsDimensions",
                "metric": "100016",
                "ts": "2024-08-19T20:05:00Z"
              }
            }
          ],
          "topRatelimitRules": [
            {
              "__typename": "ZoneFirewallEventsAdaptiveGroups",
              "avg": {
                "__typename": "ZoneFirewallEventsAdaptiveGroupsAvg",
                "sampleInterval": 3.8457300275482096
              },
              "count": 25661,
              "dimensions": {
                "__typename": "ZoneFirewallEventsAdaptiveGroupsDimensions",
                "metric": "100016",
                "ts": "2024-08-19T20:05:00Z"
              }
            }
          ],
          "topUriPaths": [
            {
              "__typename": "ZoneFirewallEventsAdaptiveGroups",
              "avg": {
                "__typename": "ZoneFirewallEventsAdaptiveGroupsAvg",
                "sampleInterval": 3.8457300275482096
              },
              "count": 25661,
              "dimensions": {
                "__typename": "ZoneFirewallEventsAdaptiveGroupsDimensions",
                "metric": "100016",
                "ts": "2024-08-19T20:05:00Z"
              }
            }
          ],
          "topUserAgents": [
            {
              "__typename": "ZoneFirewallEventsAdaptiveGroups",
              "avg": {
                "__typename": "ZoneFirewallEventsAdaptiveGroupsAvg",
                "sampleInterval": 3.8457300275482096
              },
              "count": 25661,
              "dimensions": {
                "__typename": "ZoneFirewallEventsAdaptiveGroupsDimensions",
                "metric": "100016",
                "ts": "2024-08-19T20:05:00Z"
              }
            }
          ],
          "topWAFRules": [
            {
              "__typename": "ZoneFirewallEventsAdaptiveGroups",
              "avg": {
                "__typename": "ZoneFirewallEventsAdaptiveGroupsAvg",
                "sampleInterval": 3.8457300275482096
              },
              "count": 25661,
              "dimensions": {
                "__typename": "ZoneFirewallEventsAdaptiveGroupsDimensions",
                "metric": "100016",
                "ts": "2024-08-19T20:05:00Z"
              }
            }
          ],
          "total": [
            {
              "__typename": "ZoneFirewallEventsAdaptiveGroups",
              "avg": {
                "__typename": "ZoneFirewallEventsAdaptiveGroupsAvg",
                "sampleInterval": 3.8457300275482096
              },
              "count": 25661
            }
          ]
        }
      ]
    }
  }
}