Skip to content
Start here

Get DNS queries by response code summary

client.Radar.DNS.Summary.ResponseCode(ctx, query) (*DNSSummaryResponseCodeResponse, error)
GET/radar/dns/summary/response_code

Retrieves the distribution of DNS queries by response code.

Security
API Token

The preferred authorization scheme for interacting with the Cloudflare API. Create a token.

Example:Authorization: Bearer Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY
API Email + API Key

The previous authorization scheme for interacting with the Cloudflare API, used in conjunction with a Global API key.

Example:X-Auth-Email: user@example.com

The previous authorization scheme for interacting with the Cloudflare API. When possible, use API tokens instead of Global API keys.

Example:X-Auth-Key: 144c9defac04969c7bfad8efaa8ea194
Accepted Permissions (at least one required)
User Details WriteUser Details Read
ParametersExpand Collapse
query DNSSummaryResponseCodeParams
ASN param.Field[[]string]Optional

Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with - to exclude ASNs from results. For example, -174, 3356 excludes results from AS174, but includes results from AS3356.

Continent param.Field[[]string]Optional

Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with - to exclude continents from results. For example, -EU,NA excludes results from EU, but includes results from NA.

DateEnd param.Field[[]Time]Optional

End of the date range (inclusive).

DateRange param.Field[[]string]Optional

Filters results by date range. For example, use 7d and 7dcontrol to compare this week with the previous week. Use this parameter or set specific start and end dates (dateStart and dateEnd parameters).

DateStart param.Field[[]Time]Optional

Start of the date range.

Format param.Field[DNSSummaryResponseCodeParamsFormat]Optional

Format in which results will be returned.

const DNSSummaryResponseCodeParamsFormatJson DNSSummaryResponseCodeParamsFormat = "JSON"
const DNSSummaryResponseCodeParamsFormatCsv DNSSummaryResponseCodeParamsFormat = "CSV"
LimitPerGroup param.Field[int64]Optional

Limits the number of objects per group to the top items within the specified time range. When item count exceeds the limit, extra items appear grouped under an “other” category.

Location param.Field[[]string]Optional

Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with - to exclude locations from results. For example, -US,PT excludes results from the US, but includes results from PT.

Name param.Field[[]string]Optional

Array of names used to label the series in the response.

Nodata param.Field[[]bool]Optional

Specifies whether the response includes empty DNS responses (NODATA).

Protocol param.Field[[]DNSSummaryResponseCodeParamsProtocol]Optional

Filters results by DNS transport protocol.

const DNSSummaryResponseCodeParamsProtocolUdp DNSSummaryResponseCodeParamsProtocol = "UDP"
const DNSSummaryResponseCodeParamsProtocolTCP DNSSummaryResponseCodeParamsProtocol = "TCP"
const DNSSummaryResponseCodeParamsProtocolHTTPS DNSSummaryResponseCodeParamsProtocol = "HTTPS"
const DNSSummaryResponseCodeParamsProtocolTLS DNSSummaryResponseCodeParamsProtocol = "TLS"
QueryType param.Field[[]DNSSummaryResponseCodeParamsQueryType]Optional

Filters results by DNS query type.

const DNSSummaryResponseCodeParamsQueryTypeA DNSSummaryResponseCodeParamsQueryType = "A"
const DNSSummaryResponseCodeParamsQueryTypeAAAA DNSSummaryResponseCodeParamsQueryType = "AAAA"
const DNSSummaryResponseCodeParamsQueryTypeA6 DNSSummaryResponseCodeParamsQueryType = "A6"
const DNSSummaryResponseCodeParamsQueryTypeAfsdb DNSSummaryResponseCodeParamsQueryType = "AFSDB"
const DNSSummaryResponseCodeParamsQueryTypeAny DNSSummaryResponseCodeParamsQueryType = "ANY"
const DNSSummaryResponseCodeParamsQueryTypeApl DNSSummaryResponseCodeParamsQueryType = "APL"
const DNSSummaryResponseCodeParamsQueryTypeAtma DNSSummaryResponseCodeParamsQueryType = "ATMA"
const DNSSummaryResponseCodeParamsQueryTypeAXFR DNSSummaryResponseCodeParamsQueryType = "AXFR"
const DNSSummaryResponseCodeParamsQueryTypeCAA DNSSummaryResponseCodeParamsQueryType = "CAA"
const DNSSummaryResponseCodeParamsQueryTypeCdnskey DNSSummaryResponseCodeParamsQueryType = "CDNSKEY"
const DNSSummaryResponseCodeParamsQueryTypeCds DNSSummaryResponseCodeParamsQueryType = "CDS"
const DNSSummaryResponseCodeParamsQueryTypeCERT DNSSummaryResponseCodeParamsQueryType = "CERT"
const DNSSummaryResponseCodeParamsQueryTypeCNAME DNSSummaryResponseCodeParamsQueryType = "CNAME"
const DNSSummaryResponseCodeParamsQueryTypeCsync DNSSummaryResponseCodeParamsQueryType = "CSYNC"
const DNSSummaryResponseCodeParamsQueryTypeDhcid DNSSummaryResponseCodeParamsQueryType = "DHCID"
const DNSSummaryResponseCodeParamsQueryTypeDlv DNSSummaryResponseCodeParamsQueryType = "DLV"
const DNSSummaryResponseCodeParamsQueryTypeDname DNSSummaryResponseCodeParamsQueryType = "DNAME"
const DNSSummaryResponseCodeParamsQueryTypeDNSKEY DNSSummaryResponseCodeParamsQueryType = "DNSKEY"
const DNSSummaryResponseCodeParamsQueryTypeDoa DNSSummaryResponseCodeParamsQueryType = "DOA"
const DNSSummaryResponseCodeParamsQueryTypeDS DNSSummaryResponseCodeParamsQueryType = "DS"
const DNSSummaryResponseCodeParamsQueryTypeEid DNSSummaryResponseCodeParamsQueryType = "EID"
const DNSSummaryResponseCodeParamsQueryTypeEui48 DNSSummaryResponseCodeParamsQueryType = "EUI48"
const DNSSummaryResponseCodeParamsQueryTypeEui64 DNSSummaryResponseCodeParamsQueryType = "EUI64"
const DNSSummaryResponseCodeParamsQueryTypeGpos DNSSummaryResponseCodeParamsQueryType = "GPOS"
const DNSSummaryResponseCodeParamsQueryTypeGid DNSSummaryResponseCodeParamsQueryType = "GID"
const DNSSummaryResponseCodeParamsQueryTypeHinfo DNSSummaryResponseCodeParamsQueryType = "HINFO"
const DNSSummaryResponseCodeParamsQueryTypeHip DNSSummaryResponseCodeParamsQueryType = "HIP"
const DNSSummaryResponseCodeParamsQueryTypeHTTPS DNSSummaryResponseCodeParamsQueryType = "HTTPS"
const DNSSummaryResponseCodeParamsQueryTypeIpseckey DNSSummaryResponseCodeParamsQueryType = "IPSECKEY"
const DNSSummaryResponseCodeParamsQueryTypeIsdn DNSSummaryResponseCodeParamsQueryType = "ISDN"
const DNSSummaryResponseCodeParamsQueryTypeIxfr DNSSummaryResponseCodeParamsQueryType = "IXFR"
const DNSSummaryResponseCodeParamsQueryTypeKey DNSSummaryResponseCodeParamsQueryType = "KEY"
const DNSSummaryResponseCodeParamsQueryTypeKx DNSSummaryResponseCodeParamsQueryType = "KX"
const DNSSummaryResponseCodeParamsQueryTypeL32 DNSSummaryResponseCodeParamsQueryType = "L32"
const DNSSummaryResponseCodeParamsQueryTypeL64 DNSSummaryResponseCodeParamsQueryType = "L64"
const DNSSummaryResponseCodeParamsQueryTypeLOC DNSSummaryResponseCodeParamsQueryType = "LOC"
const DNSSummaryResponseCodeParamsQueryTypeLp DNSSummaryResponseCodeParamsQueryType = "LP"
const DNSSummaryResponseCodeParamsQueryTypeMaila DNSSummaryResponseCodeParamsQueryType = "MAILA"
const DNSSummaryResponseCodeParamsQueryTypeMailb DNSSummaryResponseCodeParamsQueryType = "MAILB"
const DNSSummaryResponseCodeParamsQueryTypeMB DNSSummaryResponseCodeParamsQueryType = "MB"
const DNSSummaryResponseCodeParamsQueryTypeMd DNSSummaryResponseCodeParamsQueryType = "MD"
const DNSSummaryResponseCodeParamsQueryTypeMf DNSSummaryResponseCodeParamsQueryType = "MF"
const DNSSummaryResponseCodeParamsQueryTypeMg DNSSummaryResponseCodeParamsQueryType = "MG"
const DNSSummaryResponseCodeParamsQueryTypeMinfo DNSSummaryResponseCodeParamsQueryType = "MINFO"
const DNSSummaryResponseCodeParamsQueryTypeMr DNSSummaryResponseCodeParamsQueryType = "MR"
const DNSSummaryResponseCodeParamsQueryTypeMX DNSSummaryResponseCodeParamsQueryType = "MX"
const DNSSummaryResponseCodeParamsQueryTypeNAPTR DNSSummaryResponseCodeParamsQueryType = "NAPTR"
const DNSSummaryResponseCodeParamsQueryTypeNb DNSSummaryResponseCodeParamsQueryType = "NB"
const DNSSummaryResponseCodeParamsQueryTypeNbstat DNSSummaryResponseCodeParamsQueryType = "NBSTAT"
const DNSSummaryResponseCodeParamsQueryTypeNid DNSSummaryResponseCodeParamsQueryType = "NID"
const DNSSummaryResponseCodeParamsQueryTypeNimloc DNSSummaryResponseCodeParamsQueryType = "NIMLOC"
const DNSSummaryResponseCodeParamsQueryTypeNinfo DNSSummaryResponseCodeParamsQueryType = "NINFO"
const DNSSummaryResponseCodeParamsQueryTypeNS DNSSummaryResponseCodeParamsQueryType = "NS"
const DNSSummaryResponseCodeParamsQueryTypeNsap DNSSummaryResponseCodeParamsQueryType = "NSAP"
const DNSSummaryResponseCodeParamsQueryTypeNsec DNSSummaryResponseCodeParamsQueryType = "NSEC"
const DNSSummaryResponseCodeParamsQueryTypeNsec3 DNSSummaryResponseCodeParamsQueryType = "NSEC3"
const DNSSummaryResponseCodeParamsQueryTypeNsec3Param DNSSummaryResponseCodeParamsQueryType = "NSEC3PARAM"
const DNSSummaryResponseCodeParamsQueryTypeNull DNSSummaryResponseCodeParamsQueryType = "NULL"
const DNSSummaryResponseCodeParamsQueryTypeNxt DNSSummaryResponseCodeParamsQueryType = "NXT"
const DNSSummaryResponseCodeParamsQueryTypeOpenpgpkey DNSSummaryResponseCodeParamsQueryType = "OPENPGPKEY"
const DNSSummaryResponseCodeParamsQueryTypeOpt DNSSummaryResponseCodeParamsQueryType = "OPT"
const DNSSummaryResponseCodeParamsQueryTypePTR DNSSummaryResponseCodeParamsQueryType = "PTR"
const DNSSummaryResponseCodeParamsQueryTypePx DNSSummaryResponseCodeParamsQueryType = "PX"
const DNSSummaryResponseCodeParamsQueryTypeRkey DNSSummaryResponseCodeParamsQueryType = "RKEY"
const DNSSummaryResponseCodeParamsQueryTypeRp DNSSummaryResponseCodeParamsQueryType = "RP"
const DNSSummaryResponseCodeParamsQueryTypeRrsig DNSSummaryResponseCodeParamsQueryType = "RRSIG"
const DNSSummaryResponseCodeParamsQueryTypeRt DNSSummaryResponseCodeParamsQueryType = "RT"
const DNSSummaryResponseCodeParamsQueryTypeSig DNSSummaryResponseCodeParamsQueryType = "SIG"
const DNSSummaryResponseCodeParamsQueryTypeSink DNSSummaryResponseCodeParamsQueryType = "SINK"
const DNSSummaryResponseCodeParamsQueryTypeSMIMEA DNSSummaryResponseCodeParamsQueryType = "SMIMEA"
const DNSSummaryResponseCodeParamsQueryTypeSOA DNSSummaryResponseCodeParamsQueryType = "SOA"
const DNSSummaryResponseCodeParamsQueryTypeSPF DNSSummaryResponseCodeParamsQueryType = "SPF"
const DNSSummaryResponseCodeParamsQueryTypeSRV DNSSummaryResponseCodeParamsQueryType = "SRV"
const DNSSummaryResponseCodeParamsQueryTypeSSHFP DNSSummaryResponseCodeParamsQueryType = "SSHFP"
const DNSSummaryResponseCodeParamsQueryTypeSVCB DNSSummaryResponseCodeParamsQueryType = "SVCB"
const DNSSummaryResponseCodeParamsQueryTypeTa DNSSummaryResponseCodeParamsQueryType = "TA"
const DNSSummaryResponseCodeParamsQueryTypeTalink DNSSummaryResponseCodeParamsQueryType = "TALINK"
const DNSSummaryResponseCodeParamsQueryTypeTkey DNSSummaryResponseCodeParamsQueryType = "TKEY"
const DNSSummaryResponseCodeParamsQueryTypeTLSA DNSSummaryResponseCodeParamsQueryType = "TLSA"
const DNSSummaryResponseCodeParamsQueryTypeTSIG DNSSummaryResponseCodeParamsQueryType = "TSIG"
const DNSSummaryResponseCodeParamsQueryTypeTXT DNSSummaryResponseCodeParamsQueryType = "TXT"
const DNSSummaryResponseCodeParamsQueryTypeUinfo DNSSummaryResponseCodeParamsQueryType = "UINFO"
const DNSSummaryResponseCodeParamsQueryTypeUID DNSSummaryResponseCodeParamsQueryType = "UID"
const DNSSummaryResponseCodeParamsQueryTypeUnspec DNSSummaryResponseCodeParamsQueryType = "UNSPEC"
const DNSSummaryResponseCodeParamsQueryTypeURI DNSSummaryResponseCodeParamsQueryType = "URI"
const DNSSummaryResponseCodeParamsQueryTypeWks DNSSummaryResponseCodeParamsQueryType = "WKS"
const DNSSummaryResponseCodeParamsQueryTypeX25 DNSSummaryResponseCodeParamsQueryType = "X25"
const DNSSummaryResponseCodeParamsQueryTypeZonemd DNSSummaryResponseCodeParamsQueryType = "ZONEMD"
TLD param.Field[[]string]Optional

Filters results by top-level domain.

ReturnsExpand Collapse
type DNSSummaryResponseCodeResponse struct{…}
Meta DNSSummaryResponseCodeResponseMeta

Metadata for the results.

ConfidenceInfo DNSSummaryResponseCodeResponseMetaConfidenceInfo
Annotations []DNSSummaryResponseCodeResponseMetaConfidenceInfoAnnotation
DataSource DNSSummaryResponseCodeResponseMetaConfidenceInfoAnnotationsDataSource

Data source for annotations.

One of the following:
const DNSSummaryResponseCodeResponseMetaConfidenceInfoAnnotationsDataSourceAll DNSSummaryResponseCodeResponseMetaConfidenceInfoAnnotationsDataSource = "ALL"
const DNSSummaryResponseCodeResponseMetaConfidenceInfoAnnotationsDataSourceAIBots DNSSummaryResponseCodeResponseMetaConfidenceInfoAnnotationsDataSource = "AI_BOTS"
const DNSSummaryResponseCodeResponseMetaConfidenceInfoAnnotationsDataSourceAIGateway DNSSummaryResponseCodeResponseMetaConfidenceInfoAnnotationsDataSource = "AI_GATEWAY"
const DNSSummaryResponseCodeResponseMetaConfidenceInfoAnnotationsDataSourceBGP DNSSummaryResponseCodeResponseMetaConfidenceInfoAnnotationsDataSource = "BGP"
const DNSSummaryResponseCodeResponseMetaConfidenceInfoAnnotationsDataSourceBots DNSSummaryResponseCodeResponseMetaConfidenceInfoAnnotationsDataSource = "BOTS"
const DNSSummaryResponseCodeResponseMetaConfidenceInfoAnnotationsDataSourceConnectionAnomaly DNSSummaryResponseCodeResponseMetaConfidenceInfoAnnotationsDataSource = "CONNECTION_ANOMALY"
const DNSSummaryResponseCodeResponseMetaConfidenceInfoAnnotationsDataSourceCT DNSSummaryResponseCodeResponseMetaConfidenceInfoAnnotationsDataSource = "CT"
const DNSSummaryResponseCodeResponseMetaConfidenceInfoAnnotationsDataSourceDNS DNSSummaryResponseCodeResponseMetaConfidenceInfoAnnotationsDataSource = "DNS"
const DNSSummaryResponseCodeResponseMetaConfidenceInfoAnnotationsDataSourceDNSMagnitude DNSSummaryResponseCodeResponseMetaConfidenceInfoAnnotationsDataSource = "DNS_MAGNITUDE"
const DNSSummaryResponseCodeResponseMetaConfidenceInfoAnnotationsDataSourceDNSAS112 DNSSummaryResponseCodeResponseMetaConfidenceInfoAnnotationsDataSource = "DNS_AS112"
const DNSSummaryResponseCodeResponseMetaConfidenceInfoAnnotationsDataSourceDos DNSSummaryResponseCodeResponseMetaConfidenceInfoAnnotationsDataSource = "DOS"
const DNSSummaryResponseCodeResponseMetaConfidenceInfoAnnotationsDataSourceEmailRouting DNSSummaryResponseCodeResponseMetaConfidenceInfoAnnotationsDataSource = "EMAIL_ROUTING"
const DNSSummaryResponseCodeResponseMetaConfidenceInfoAnnotationsDataSourceEmailSecurity DNSSummaryResponseCodeResponseMetaConfidenceInfoAnnotationsDataSource = "EMAIL_SECURITY"
const DNSSummaryResponseCodeResponseMetaConfidenceInfoAnnotationsDataSourceFw DNSSummaryResponseCodeResponseMetaConfidenceInfoAnnotationsDataSource = "FW"
const DNSSummaryResponseCodeResponseMetaConfidenceInfoAnnotationsDataSourceFwPg DNSSummaryResponseCodeResponseMetaConfidenceInfoAnnotationsDataSource = "FW_PG"
const DNSSummaryResponseCodeResponseMetaConfidenceInfoAnnotationsDataSourceHTTP DNSSummaryResponseCodeResponseMetaConfidenceInfoAnnotationsDataSource = "HTTP"
const DNSSummaryResponseCodeResponseMetaConfidenceInfoAnnotationsDataSourceHTTPControl DNSSummaryResponseCodeResponseMetaConfidenceInfoAnnotationsDataSource = "HTTP_CONTROL"
const DNSSummaryResponseCodeResponseMetaConfidenceInfoAnnotationsDataSourceHTTPCrawlerReferer DNSSummaryResponseCodeResponseMetaConfidenceInfoAnnotationsDataSource = "HTTP_CRAWLER_REFERER"
const DNSSummaryResponseCodeResponseMetaConfidenceInfoAnnotationsDataSourceHTTPOrigins DNSSummaryResponseCodeResponseMetaConfidenceInfoAnnotationsDataSource = "HTTP_ORIGINS"
const DNSSummaryResponseCodeResponseMetaConfidenceInfoAnnotationsDataSourceIQI DNSSummaryResponseCodeResponseMetaConfidenceInfoAnnotationsDataSource = "IQI"
const DNSSummaryResponseCodeResponseMetaConfidenceInfoAnnotationsDataSourceLeakedCredentials DNSSummaryResponseCodeResponseMetaConfidenceInfoAnnotationsDataSource = "LEAKED_CREDENTIALS"
const DNSSummaryResponseCodeResponseMetaConfidenceInfoAnnotationsDataSourceNet DNSSummaryResponseCodeResponseMetaConfidenceInfoAnnotationsDataSource = "NET"
const DNSSummaryResponseCodeResponseMetaConfidenceInfoAnnotationsDataSourceRobotsTXT DNSSummaryResponseCodeResponseMetaConfidenceInfoAnnotationsDataSource = "ROBOTS_TXT"
const DNSSummaryResponseCodeResponseMetaConfidenceInfoAnnotationsDataSourceSpeed DNSSummaryResponseCodeResponseMetaConfidenceInfoAnnotationsDataSource = "SPEED"
const DNSSummaryResponseCodeResponseMetaConfidenceInfoAnnotationsDataSourceWorkersAI DNSSummaryResponseCodeResponseMetaConfidenceInfoAnnotationsDataSource = "WORKERS_AI"
Description string
EndDate Time
formatdate-time
EventType DNSSummaryResponseCodeResponseMetaConfidenceInfoAnnotationsEventType

Event type for annotations.

One of the following:
const DNSSummaryResponseCodeResponseMetaConfidenceInfoAnnotationsEventTypeEvent DNSSummaryResponseCodeResponseMetaConfidenceInfoAnnotationsEventType = "EVENT"
const DNSSummaryResponseCodeResponseMetaConfidenceInfoAnnotationsEventTypeGeneral DNSSummaryResponseCodeResponseMetaConfidenceInfoAnnotationsEventType = "GENERAL"
const DNSSummaryResponseCodeResponseMetaConfidenceInfoAnnotationsEventTypeOutage DNSSummaryResponseCodeResponseMetaConfidenceInfoAnnotationsEventType = "OUTAGE"
const DNSSummaryResponseCodeResponseMetaConfidenceInfoAnnotationsEventTypePartialProjection DNSSummaryResponseCodeResponseMetaConfidenceInfoAnnotationsEventType = "PARTIAL_PROJECTION"
const DNSSummaryResponseCodeResponseMetaConfidenceInfoAnnotationsEventTypePipeline DNSSummaryResponseCodeResponseMetaConfidenceInfoAnnotationsEventType = "PIPELINE"
const DNSSummaryResponseCodeResponseMetaConfidenceInfoAnnotationsEventTypeTrafficAnomaly DNSSummaryResponseCodeResponseMetaConfidenceInfoAnnotationsEventType = "TRAFFIC_ANOMALY"
IsInstantaneous bool

Whether event is a single point in time or a time range.

LinkedURL string
formaturi
StartDate Time
formatdate-time
Tags []stringOptional
Level int64

Provides an indication of how much confidence Cloudflare has in the data.

DateRange []DNSSummaryResponseCodeResponseMetaDateRange
EndTime Time

Adjusted end of date range.

formatdate-time
StartTime Time

Adjusted start of date range.

formatdate-time
LastUpdated Time

Timestamp of the last dataset update.

formatdate-time
Normalization DNSSummaryResponseCodeResponseMetaNormalization

Normalization method applied to the results. Refer to Normalization methods.

One of the following:
const DNSSummaryResponseCodeResponseMetaNormalizationPercentage DNSSummaryResponseCodeResponseMetaNormalization = "PERCENTAGE"
const DNSSummaryResponseCodeResponseMetaNormalizationMin0Max DNSSummaryResponseCodeResponseMetaNormalization = "MIN0_MAX"
const DNSSummaryResponseCodeResponseMetaNormalizationMinMax DNSSummaryResponseCodeResponseMetaNormalization = "MIN_MAX"
const DNSSummaryResponseCodeResponseMetaNormalizationRawValues DNSSummaryResponseCodeResponseMetaNormalization = "RAW_VALUES"
const DNSSummaryResponseCodeResponseMetaNormalizationPercentageChange DNSSummaryResponseCodeResponseMetaNormalization = "PERCENTAGE_CHANGE"
const DNSSummaryResponseCodeResponseMetaNormalizationRollingAverage DNSSummaryResponseCodeResponseMetaNormalization = "ROLLING_AVERAGE"
const DNSSummaryResponseCodeResponseMetaNormalizationOverlappedPercentage DNSSummaryResponseCodeResponseMetaNormalization = "OVERLAPPED_PERCENTAGE"
const DNSSummaryResponseCodeResponseMetaNormalizationRatio DNSSummaryResponseCodeResponseMetaNormalization = "RATIO"
Units []DNSSummaryResponseCodeResponseMetaUnit

Measurement units for the results.

Name string
Value string
Summary0 map[string, string]

Get DNS queries by response code summary

package main

import (
  "context"
  "fmt"

  "github.com/stainless-sdks/cloudflare-go"
  "github.com/stainless-sdks/cloudflare-go/option"
  "github.com/stainless-sdks/cloudflare-go/radar"
)

func main() {
  client := cloudflare.NewClient(
    option.WithAPIToken("Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY"),
  )
  response, err := client.Radar.DNS.Summary.ResponseCode(context.TODO(), radar.DNSSummaryResponseCodeParams{

  })
  if err != nil {
    panic(err.Error())
  }
  fmt.Printf("%+v\n", response.Meta)
}
{
  "result": {
    "meta": {
      "confidenceInfo": {
        "annotations": [
          {
            "dataSource": "ALL",
            "description": "Cable cut in Tonga",
            "endDate": "2019-12-27T18:11:19.117Z",
            "eventType": "EVENT",
            "isInstantaneous": true,
            "linkedUrl": "https://example.com",
            "startDate": "2019-12-27T18:11:19.117Z",
            "tags": [
              "BOT_CLASS"
            ]
          }
        ],
        "level": 0
      },
      "dateRange": [
        {
          "endTime": "2022-09-17T10:22:57.555Z",
          "startTime": "2022-09-16T10:22:57.555Z"
        }
      ],
      "lastUpdated": "2019-12-27T18:11:19.117Z",
      "normalization": "PERCENTAGE",
      "units": [
        {
          "name": "*",
          "value": "requests"
        }
      ]
    },
    "summary_0": {
      "NOERROR": "70",
      "NOTIMP": "5",
      "NXDOMAIN": "10",
      "REFUSED": "5",
      "SERVFAIL": "5"
    }
  },
  "success": true
}
Returns Examples
{
  "result": {
    "meta": {
      "confidenceInfo": {
        "annotations": [
          {
            "dataSource": "ALL",
            "description": "Cable cut in Tonga",
            "endDate": "2019-12-27T18:11:19.117Z",
            "eventType": "EVENT",
            "isInstantaneous": true,
            "linkedUrl": "https://example.com",
            "startDate": "2019-12-27T18:11:19.117Z",
            "tags": [
              "BOT_CLASS"
            ]
          }
        ],
        "level": 0
      },
      "dateRange": [
        {
          "endTime": "2022-09-17T10:22:57.555Z",
          "startTime": "2022-09-16T10:22:57.555Z"
        }
      ],
      "lastUpdated": "2019-12-27T18:11:19.117Z",
      "normalization": "PERCENTAGE",
      "units": [
        {
          "name": "*",
          "value": "requests"
        }
      ]
    },
    "summary_0": {
      "NOERROR": "70",
      "NOTIMP": "5",
      "NXDOMAIN": "10",
      "REFUSED": "5",
      "SERVFAIL": "5"
    }
  },
  "success": true
}