@@ -285,14 +285,14 @@ type lbResp struct {
285285 ZoneTag string `json:"zoneTag"`
286286}
287287
288- type cloudflareResponseDnsFirewall struct {
288+ type cloudflareResponseDNSFirewall struct {
289289 Viewer struct {
290290 Accounts []dnsFirewallAccountResp `json:"accounts"`
291291 } `json:"viewer"`
292292}
293293
294294type dnsFirewallAccountResp struct {
295- DnsFirewallAnalyticsAdaptiveGroups []struct {
295+ DNSFirewallAnalyticsAdaptiveGroups []struct {
296296 Count uint64 `json:"count"`
297297 Dimensions struct {
298298 ClusterTag string `json:"clusterTag"`
@@ -1020,7 +1020,7 @@ func filterNonFreePlanZones(zones []cfzones.Zone) (filteredZones []cfzones.Zone)
10201020 return
10211021}
10221022
1023- func fetchDnsFirewallTotals (accountID string ) (* cloudflareResponseDnsFirewall , error ) {
1023+ func fetchDNSFirewallTotals (accountID string ) (* cloudflareResponseDNSFirewall , error ) {
10241024 request := graphql .NewRequest (`
10251025query ($accountID: string, $mintime: Time!, $maxtime: Time!, $limit: Int!) {
10261026 viewer {
@@ -1053,7 +1053,7 @@ query ($accountID: string, $mintime: Time!, $maxtime: Time!, $limit: Int!) {
10531053 ctx , cancel := context .WithTimeout (context .Background (), cftimeout )
10541054 defer cancel ()
10551055
1056- var resp cloudflareResponseDnsFirewall
1056+ var resp cloudflareResponseDNSFirewall
10571057 if err := gql .Client .Run (ctx , request , & resp ); err != nil {
10581058 log .Errorf ("error fetching DNS Firewall totals, err :%v" , err )
10591059 return nil , err
0 commit comments