From 51dec399d1ddb8b2adc611ac3b2a74dc6484ed2c Mon Sep 17 00:00:00 2001 From: Sefinek Date: Sun, 18 Aug 2024 16:44:17 +0200 Subject: [PATCH] Update query --- scripts/payload.js | 52 +++++++++++++++++++++++----------------------- 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/scripts/payload.js b/scripts/payload.js index 44d7fda..5c98b9b 100644 --- a/scripts/payload.js +++ b/scripts/payload.js @@ -1,30 +1,30 @@ const query = `query ListFirewallEvents($zoneTag: string, $filter: FirewallEventsAdaptiveFilter_InputObject) { - viewer { - zones(filter: { zoneTag: $zoneTag }) { - firewallEventsAdaptive( - filter: $filter - limit: 500 - orderBy: [datetime_DESC] - ) { - action - clientASNDescription - clientAsn - clientCountryName - clientIP - clientRequestHTTPHost - clientRequestHTTPMethodName - clientRequestHTTPProtocol - clientRequestPath - clientRequestQuery - datetime - rayName - ruleId - source - userAgent - } - } - } - }`; + viewer { + zones(filter: { zoneTag: $zoneTag }) { + firewallEventsAdaptive( + filter: $filter, + limit: 500, + orderBy: [datetime_DESC] + ) { + action + clientASNDescription + clientAsn + clientCountryName + clientIP + clientRequestHTTPHost + clientRequestHTTPMethodName + clientRequestHTTPProtocol + clientRequestPath + clientRequestQuery + datetime + rayName + ruleId + source + userAgent + } + } + } +}`; module.exports = () => { const variables = {