Skip to content
Start here

Get AS112 DNS queries by IP version summary

client.Radar.AS112.Summary.IPVersion(ctx, query) (*AS112SummaryIPVersionResponse, error)
GET/radar/as112/summary/ip_version

Retrieves the distribution of DNS queries to AS112 by IP version.

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 AS112SummaryIPVersionParams
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[AS112SummaryIPVersionParamsFormat]Optional

Format in which results will be returned.

const AS112SummaryIPVersionParamsFormatJson AS112SummaryIPVersionParamsFormat = "JSON"
const AS112SummaryIPVersionParamsFormatCsv AS112SummaryIPVersionParamsFormat = "CSV"
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.

Protocol param.Field[[]AS112SummaryIPVersionParamsProtocol]Optional

Filters results by DNS transport protocol.

const AS112SummaryIPVersionParamsProtocolUdp AS112SummaryIPVersionParamsProtocol = "UDP"
const AS112SummaryIPVersionParamsProtocolTCP AS112SummaryIPVersionParamsProtocol = "TCP"
const AS112SummaryIPVersionParamsProtocolHTTPS AS112SummaryIPVersionParamsProtocol = "HTTPS"
const AS112SummaryIPVersionParamsProtocolTLS AS112SummaryIPVersionParamsProtocol = "TLS"
QueryType param.Field[[]AS112SummaryIPVersionParamsQueryType]Optional

Filters results by DNS query type.

const AS112SummaryIPVersionParamsQueryTypeA AS112SummaryIPVersionParamsQueryType = "A"
const AS112SummaryIPVersionParamsQueryTypeAAAA AS112SummaryIPVersionParamsQueryType = "AAAA"
const AS112SummaryIPVersionParamsQueryTypeA6 AS112SummaryIPVersionParamsQueryType = "A6"
const AS112SummaryIPVersionParamsQueryTypeAfsdb AS112SummaryIPVersionParamsQueryType = "AFSDB"
const AS112SummaryIPVersionParamsQueryTypeAny AS112SummaryIPVersionParamsQueryType = "ANY"
const AS112SummaryIPVersionParamsQueryTypeApl AS112SummaryIPVersionParamsQueryType = "APL"
const AS112SummaryIPVersionParamsQueryTypeAtma AS112SummaryIPVersionParamsQueryType = "ATMA"
const AS112SummaryIPVersionParamsQueryTypeAXFR AS112SummaryIPVersionParamsQueryType = "AXFR"
const AS112SummaryIPVersionParamsQueryTypeCAA AS112SummaryIPVersionParamsQueryType = "CAA"
const AS112SummaryIPVersionParamsQueryTypeCdnskey AS112SummaryIPVersionParamsQueryType = "CDNSKEY"
const AS112SummaryIPVersionParamsQueryTypeCds AS112SummaryIPVersionParamsQueryType = "CDS"
const AS112SummaryIPVersionParamsQueryTypeCERT AS112SummaryIPVersionParamsQueryType = "CERT"
const AS112SummaryIPVersionParamsQueryTypeCNAME AS112SummaryIPVersionParamsQueryType = "CNAME"
const AS112SummaryIPVersionParamsQueryTypeCsync AS112SummaryIPVersionParamsQueryType = "CSYNC"
const AS112SummaryIPVersionParamsQueryTypeDhcid AS112SummaryIPVersionParamsQueryType = "DHCID"
const AS112SummaryIPVersionParamsQueryTypeDlv AS112SummaryIPVersionParamsQueryType = "DLV"
const AS112SummaryIPVersionParamsQueryTypeDname AS112SummaryIPVersionParamsQueryType = "DNAME"
const AS112SummaryIPVersionParamsQueryTypeDNSKEY AS112SummaryIPVersionParamsQueryType = "DNSKEY"
const AS112SummaryIPVersionParamsQueryTypeDoa AS112SummaryIPVersionParamsQueryType = "DOA"
const AS112SummaryIPVersionParamsQueryTypeDS AS112SummaryIPVersionParamsQueryType = "DS"
const AS112SummaryIPVersionParamsQueryTypeEid AS112SummaryIPVersionParamsQueryType = "EID"
const AS112SummaryIPVersionParamsQueryTypeEui48 AS112SummaryIPVersionParamsQueryType = "EUI48"
const AS112SummaryIPVersionParamsQueryTypeEui64 AS112SummaryIPVersionParamsQueryType = "EUI64"
const AS112SummaryIPVersionParamsQueryTypeGpos AS112SummaryIPVersionParamsQueryType = "GPOS"
const AS112SummaryIPVersionParamsQueryTypeGid AS112SummaryIPVersionParamsQueryType = "GID"
const AS112SummaryIPVersionParamsQueryTypeHinfo AS112SummaryIPVersionParamsQueryType = "HINFO"
const AS112SummaryIPVersionParamsQueryTypeHip AS112SummaryIPVersionParamsQueryType = "HIP"
const AS112SummaryIPVersionParamsQueryTypeHTTPS AS112SummaryIPVersionParamsQueryType = "HTTPS"
const AS112SummaryIPVersionParamsQueryTypeIpseckey AS112SummaryIPVersionParamsQueryType = "IPSECKEY"
const AS112SummaryIPVersionParamsQueryTypeIsdn AS112SummaryIPVersionParamsQueryType = "ISDN"
const AS112SummaryIPVersionParamsQueryTypeIxfr AS112SummaryIPVersionParamsQueryType = "IXFR"
const AS112SummaryIPVersionParamsQueryTypeKey AS112SummaryIPVersionParamsQueryType = "KEY"
const AS112SummaryIPVersionParamsQueryTypeKx AS112SummaryIPVersionParamsQueryType = "KX"
const AS112SummaryIPVersionParamsQueryTypeL32 AS112SummaryIPVersionParamsQueryType = "L32"
const AS112SummaryIPVersionParamsQueryTypeL64 AS112SummaryIPVersionParamsQueryType = "L64"
const AS112SummaryIPVersionParamsQueryTypeLOC AS112SummaryIPVersionParamsQueryType = "LOC"
const AS112SummaryIPVersionParamsQueryTypeLp AS112SummaryIPVersionParamsQueryType = "LP"
const AS112SummaryIPVersionParamsQueryTypeMaila AS112SummaryIPVersionParamsQueryType = "MAILA"
const AS112SummaryIPVersionParamsQueryTypeMailb AS112SummaryIPVersionParamsQueryType = "MAILB"
const AS112SummaryIPVersionParamsQueryTypeMB AS112SummaryIPVersionParamsQueryType = "MB"
const AS112SummaryIPVersionParamsQueryTypeMd AS112SummaryIPVersionParamsQueryType = "MD"
const AS112SummaryIPVersionParamsQueryTypeMf AS112SummaryIPVersionParamsQueryType = "MF"
const AS112SummaryIPVersionParamsQueryTypeMg AS112SummaryIPVersionParamsQueryType = "MG"
const AS112SummaryIPVersionParamsQueryTypeMinfo AS112SummaryIPVersionParamsQueryType = "MINFO"
const AS112SummaryIPVersionParamsQueryTypeMr AS112SummaryIPVersionParamsQueryType = "MR"
const AS112SummaryIPVersionParamsQueryTypeMX AS112SummaryIPVersionParamsQueryType = "MX"
const AS112SummaryIPVersionParamsQueryTypeNAPTR AS112SummaryIPVersionParamsQueryType = "NAPTR"
const AS112SummaryIPVersionParamsQueryTypeNb AS112SummaryIPVersionParamsQueryType = "NB"
const AS112SummaryIPVersionParamsQueryTypeNbstat AS112SummaryIPVersionParamsQueryType = "NBSTAT"
const AS112SummaryIPVersionParamsQueryTypeNid AS112SummaryIPVersionParamsQueryType = "NID"
const AS112SummaryIPVersionParamsQueryTypeNimloc AS112SummaryIPVersionParamsQueryType = "NIMLOC"
const AS112SummaryIPVersionParamsQueryTypeNinfo AS112SummaryIPVersionParamsQueryType = "NINFO"
const AS112SummaryIPVersionParamsQueryTypeNS AS112SummaryIPVersionParamsQueryType = "NS"
const AS112SummaryIPVersionParamsQueryTypeNsap AS112SummaryIPVersionParamsQueryType = "NSAP"
const AS112SummaryIPVersionParamsQueryTypeNsec AS112SummaryIPVersionParamsQueryType = "NSEC"
const AS112SummaryIPVersionParamsQueryTypeNsec3 AS112SummaryIPVersionParamsQueryType = "NSEC3"
const AS112SummaryIPVersionParamsQueryTypeNsec3Param AS112SummaryIPVersionParamsQueryType = "NSEC3PARAM"
const AS112SummaryIPVersionParamsQueryTypeNull AS112SummaryIPVersionParamsQueryType = "NULL"
const AS112SummaryIPVersionParamsQueryTypeNxt AS112SummaryIPVersionParamsQueryType = "NXT"
const AS112SummaryIPVersionParamsQueryTypeOpenpgpkey AS112SummaryIPVersionParamsQueryType = "OPENPGPKEY"
const AS112SummaryIPVersionParamsQueryTypeOpt AS112SummaryIPVersionParamsQueryType = "OPT"
const AS112SummaryIPVersionParamsQueryTypePTR AS112SummaryIPVersionParamsQueryType = "PTR"
const AS112SummaryIPVersionParamsQueryTypePx AS112SummaryIPVersionParamsQueryType = "PX"
const AS112SummaryIPVersionParamsQueryTypeRkey AS112SummaryIPVersionParamsQueryType = "RKEY"
const AS112SummaryIPVersionParamsQueryTypeRp AS112SummaryIPVersionParamsQueryType = "RP"
const AS112SummaryIPVersionParamsQueryTypeRrsig AS112SummaryIPVersionParamsQueryType = "RRSIG"
const AS112SummaryIPVersionParamsQueryTypeRt AS112SummaryIPVersionParamsQueryType = "RT"
const AS112SummaryIPVersionParamsQueryTypeSig AS112SummaryIPVersionParamsQueryType = "SIG"
const AS112SummaryIPVersionParamsQueryTypeSink AS112SummaryIPVersionParamsQueryType = "SINK"
const AS112SummaryIPVersionParamsQueryTypeSMIMEA AS112SummaryIPVersionParamsQueryType = "SMIMEA"
const AS112SummaryIPVersionParamsQueryTypeSOA AS112SummaryIPVersionParamsQueryType = "SOA"
const AS112SummaryIPVersionParamsQueryTypeSPF AS112SummaryIPVersionParamsQueryType = "SPF"
const AS112SummaryIPVersionParamsQueryTypeSRV AS112SummaryIPVersionParamsQueryType = "SRV"
const AS112SummaryIPVersionParamsQueryTypeSSHFP AS112SummaryIPVersionParamsQueryType = "SSHFP"
const AS112SummaryIPVersionParamsQueryTypeSVCB AS112SummaryIPVersionParamsQueryType = "SVCB"
const AS112SummaryIPVersionParamsQueryTypeTa AS112SummaryIPVersionParamsQueryType = "TA"
const AS112SummaryIPVersionParamsQueryTypeTalink AS112SummaryIPVersionParamsQueryType = "TALINK"
const AS112SummaryIPVersionParamsQueryTypeTkey AS112SummaryIPVersionParamsQueryType = "TKEY"
const AS112SummaryIPVersionParamsQueryTypeTLSA AS112SummaryIPVersionParamsQueryType = "TLSA"
const AS112SummaryIPVersionParamsQueryTypeTSIG AS112SummaryIPVersionParamsQueryType = "TSIG"
const AS112SummaryIPVersionParamsQueryTypeTXT AS112SummaryIPVersionParamsQueryType = "TXT"
const AS112SummaryIPVersionParamsQueryTypeUinfo AS112SummaryIPVersionParamsQueryType = "UINFO"
const AS112SummaryIPVersionParamsQueryTypeUID AS112SummaryIPVersionParamsQueryType = "UID"
const AS112SummaryIPVersionParamsQueryTypeUnspec AS112SummaryIPVersionParamsQueryType = "UNSPEC"
const AS112SummaryIPVersionParamsQueryTypeURI AS112SummaryIPVersionParamsQueryType = "URI"
const AS112SummaryIPVersionParamsQueryTypeWks AS112SummaryIPVersionParamsQueryType = "WKS"
const AS112SummaryIPVersionParamsQueryTypeX25 AS112SummaryIPVersionParamsQueryType = "X25"
const AS112SummaryIPVersionParamsQueryTypeZonemd AS112SummaryIPVersionParamsQueryType = "ZONEMD"
ResponseCode param.Field[[]AS112SummaryIPVersionParamsResponseCode]Optional

Filters results by DNS response code.

const AS112SummaryIPVersionParamsResponseCodeNoerror AS112SummaryIPVersionParamsResponseCode = "NOERROR"
const AS112SummaryIPVersionParamsResponseCodeFormerr AS112SummaryIPVersionParamsResponseCode = "FORMERR"
const AS112SummaryIPVersionParamsResponseCodeServfail AS112SummaryIPVersionParamsResponseCode = "SERVFAIL"
const AS112SummaryIPVersionParamsResponseCodeNxdomain AS112SummaryIPVersionParamsResponseCode = "NXDOMAIN"
const AS112SummaryIPVersionParamsResponseCodeNotimp AS112SummaryIPVersionParamsResponseCode = "NOTIMP"
const AS112SummaryIPVersionParamsResponseCodeRefused AS112SummaryIPVersionParamsResponseCode = "REFUSED"
const AS112SummaryIPVersionParamsResponseCodeYxdomain AS112SummaryIPVersionParamsResponseCode = "YXDOMAIN"
const AS112SummaryIPVersionParamsResponseCodeYxrrset AS112SummaryIPVersionParamsResponseCode = "YXRRSET"
const AS112SummaryIPVersionParamsResponseCodeNxrrset AS112SummaryIPVersionParamsResponseCode = "NXRRSET"
const AS112SummaryIPVersionParamsResponseCodeNotauth AS112SummaryIPVersionParamsResponseCode = "NOTAUTH"
const AS112SummaryIPVersionParamsResponseCodeNotzone AS112SummaryIPVersionParamsResponseCode = "NOTZONE"
const AS112SummaryIPVersionParamsResponseCodeBadsig AS112SummaryIPVersionParamsResponseCode = "BADSIG"
const AS112SummaryIPVersionParamsResponseCodeBadkey AS112SummaryIPVersionParamsResponseCode = "BADKEY"
const AS112SummaryIPVersionParamsResponseCodeBadtime AS112SummaryIPVersionParamsResponseCode = "BADTIME"
const AS112SummaryIPVersionParamsResponseCodeBadmode AS112SummaryIPVersionParamsResponseCode = "BADMODE"
const AS112SummaryIPVersionParamsResponseCodeBadname AS112SummaryIPVersionParamsResponseCode = "BADNAME"
const AS112SummaryIPVersionParamsResponseCodeBadalg AS112SummaryIPVersionParamsResponseCode = "BADALG"
const AS112SummaryIPVersionParamsResponseCodeBadtrunc AS112SummaryIPVersionParamsResponseCode = "BADTRUNC"
const AS112SummaryIPVersionParamsResponseCodeBadcookie AS112SummaryIPVersionParamsResponseCode = "BADCOOKIE"
ReturnsExpand Collapse
type AS112SummaryIPVersionResponse struct{…}
Meta AS112SummaryIPVersionResponseMeta

Metadata for the results.

ConfidenceInfo AS112SummaryIPVersionResponseMetaConfidenceInfo
Annotations []AS112SummaryIPVersionResponseMetaConfidenceInfoAnnotation
DataSource AS112SummaryIPVersionResponseMetaConfidenceInfoAnnotationsDataSource

Data source for annotations.

One of the following:
const AS112SummaryIPVersionResponseMetaConfidenceInfoAnnotationsDataSourceAll AS112SummaryIPVersionResponseMetaConfidenceInfoAnnotationsDataSource = "ALL"
const AS112SummaryIPVersionResponseMetaConfidenceInfoAnnotationsDataSourceAIBots AS112SummaryIPVersionResponseMetaConfidenceInfoAnnotationsDataSource = "AI_BOTS"
const AS112SummaryIPVersionResponseMetaConfidenceInfoAnnotationsDataSourceAIGateway AS112SummaryIPVersionResponseMetaConfidenceInfoAnnotationsDataSource = "AI_GATEWAY"
const AS112SummaryIPVersionResponseMetaConfidenceInfoAnnotationsDataSourceBGP AS112SummaryIPVersionResponseMetaConfidenceInfoAnnotationsDataSource = "BGP"
const AS112SummaryIPVersionResponseMetaConfidenceInfoAnnotationsDataSourceBots AS112SummaryIPVersionResponseMetaConfidenceInfoAnnotationsDataSource = "BOTS"
const AS112SummaryIPVersionResponseMetaConfidenceInfoAnnotationsDataSourceConnectionAnomaly AS112SummaryIPVersionResponseMetaConfidenceInfoAnnotationsDataSource = "CONNECTION_ANOMALY"
const AS112SummaryIPVersionResponseMetaConfidenceInfoAnnotationsDataSourceCT AS112SummaryIPVersionResponseMetaConfidenceInfoAnnotationsDataSource = "CT"
const AS112SummaryIPVersionResponseMetaConfidenceInfoAnnotationsDataSourceDNS AS112SummaryIPVersionResponseMetaConfidenceInfoAnnotationsDataSource = "DNS"
const AS112SummaryIPVersionResponseMetaConfidenceInfoAnnotationsDataSourceDNSMagnitude AS112SummaryIPVersionResponseMetaConfidenceInfoAnnotationsDataSource = "DNS_MAGNITUDE"
const AS112SummaryIPVersionResponseMetaConfidenceInfoAnnotationsDataSourceDNSAS112 AS112SummaryIPVersionResponseMetaConfidenceInfoAnnotationsDataSource = "DNS_AS112"
const AS112SummaryIPVersionResponseMetaConfidenceInfoAnnotationsDataSourceDos AS112SummaryIPVersionResponseMetaConfidenceInfoAnnotationsDataSource = "DOS"
const AS112SummaryIPVersionResponseMetaConfidenceInfoAnnotationsDataSourceEmailRouting AS112SummaryIPVersionResponseMetaConfidenceInfoAnnotationsDataSource = "EMAIL_ROUTING"
const AS112SummaryIPVersionResponseMetaConfidenceInfoAnnotationsDataSourceEmailSecurity AS112SummaryIPVersionResponseMetaConfidenceInfoAnnotationsDataSource = "EMAIL_SECURITY"
const AS112SummaryIPVersionResponseMetaConfidenceInfoAnnotationsDataSourceFw AS112SummaryIPVersionResponseMetaConfidenceInfoAnnotationsDataSource = "FW"
const AS112SummaryIPVersionResponseMetaConfidenceInfoAnnotationsDataSourceFwPg AS112SummaryIPVersionResponseMetaConfidenceInfoAnnotationsDataSource = "FW_PG"
const AS112SummaryIPVersionResponseMetaConfidenceInfoAnnotationsDataSourceHTTP AS112SummaryIPVersionResponseMetaConfidenceInfoAnnotationsDataSource = "HTTP"
const AS112SummaryIPVersionResponseMetaConfidenceInfoAnnotationsDataSourceHTTPControl AS112SummaryIPVersionResponseMetaConfidenceInfoAnnotationsDataSource = "HTTP_CONTROL"
const AS112SummaryIPVersionResponseMetaConfidenceInfoAnnotationsDataSourceHTTPCrawlerReferer AS112SummaryIPVersionResponseMetaConfidenceInfoAnnotationsDataSource = "HTTP_CRAWLER_REFERER"
const AS112SummaryIPVersionResponseMetaConfidenceInfoAnnotationsDataSourceHTTPOrigins AS112SummaryIPVersionResponseMetaConfidenceInfoAnnotationsDataSource = "HTTP_ORIGINS"
const AS112SummaryIPVersionResponseMetaConfidenceInfoAnnotationsDataSourceIQI AS112SummaryIPVersionResponseMetaConfidenceInfoAnnotationsDataSource = "IQI"
const AS112SummaryIPVersionResponseMetaConfidenceInfoAnnotationsDataSourceLeakedCredentials AS112SummaryIPVersionResponseMetaConfidenceInfoAnnotationsDataSource = "LEAKED_CREDENTIALS"
const AS112SummaryIPVersionResponseMetaConfidenceInfoAnnotationsDataSourceNet AS112SummaryIPVersionResponseMetaConfidenceInfoAnnotationsDataSource = "NET"
const AS112SummaryIPVersionResponseMetaConfidenceInfoAnnotationsDataSourceRobotsTXT AS112SummaryIPVersionResponseMetaConfidenceInfoAnnotationsDataSource = "ROBOTS_TXT"
const AS112SummaryIPVersionResponseMetaConfidenceInfoAnnotationsDataSourceSpeed AS112SummaryIPVersionResponseMetaConfidenceInfoAnnotationsDataSource = "SPEED"
const AS112SummaryIPVersionResponseMetaConfidenceInfoAnnotationsDataSourceWorkersAI AS112SummaryIPVersionResponseMetaConfidenceInfoAnnotationsDataSource = "WORKERS_AI"
Description string
EndDate Time
formatdate-time
EventType AS112SummaryIPVersionResponseMetaConfidenceInfoAnnotationsEventType

Event type for annotations.

One of the following:
const AS112SummaryIPVersionResponseMetaConfidenceInfoAnnotationsEventTypeEvent AS112SummaryIPVersionResponseMetaConfidenceInfoAnnotationsEventType = "EVENT"
const AS112SummaryIPVersionResponseMetaConfidenceInfoAnnotationsEventTypeGeneral AS112SummaryIPVersionResponseMetaConfidenceInfoAnnotationsEventType = "GENERAL"
const AS112SummaryIPVersionResponseMetaConfidenceInfoAnnotationsEventTypeOutage AS112SummaryIPVersionResponseMetaConfidenceInfoAnnotationsEventType = "OUTAGE"
const AS112SummaryIPVersionResponseMetaConfidenceInfoAnnotationsEventTypePartialProjection AS112SummaryIPVersionResponseMetaConfidenceInfoAnnotationsEventType = "PARTIAL_PROJECTION"
const AS112SummaryIPVersionResponseMetaConfidenceInfoAnnotationsEventTypePipeline AS112SummaryIPVersionResponseMetaConfidenceInfoAnnotationsEventType = "PIPELINE"
const AS112SummaryIPVersionResponseMetaConfidenceInfoAnnotationsEventTypeTrafficAnomaly AS112SummaryIPVersionResponseMetaConfidenceInfoAnnotationsEventType = "TRAFFIC_ANOMALY"
IsInstantaneous bool

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

LinkedURL string
formaturi
StartDate Time
formatdate-time
Level int64

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

DateRange []AS112SummaryIPVersionResponseMetaDateRange
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 AS112SummaryIPVersionResponseMetaNormalization

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

One of the following:
const AS112SummaryIPVersionResponseMetaNormalizationPercentage AS112SummaryIPVersionResponseMetaNormalization = "PERCENTAGE"
const AS112SummaryIPVersionResponseMetaNormalizationMin0Max AS112SummaryIPVersionResponseMetaNormalization = "MIN0_MAX"
const AS112SummaryIPVersionResponseMetaNormalizationMinMax AS112SummaryIPVersionResponseMetaNormalization = "MIN_MAX"
const AS112SummaryIPVersionResponseMetaNormalizationRawValues AS112SummaryIPVersionResponseMetaNormalization = "RAW_VALUES"
const AS112SummaryIPVersionResponseMetaNormalizationPercentageChange AS112SummaryIPVersionResponseMetaNormalization = "PERCENTAGE_CHANGE"
const AS112SummaryIPVersionResponseMetaNormalizationRollingAverage AS112SummaryIPVersionResponseMetaNormalization = "ROLLING_AVERAGE"
const AS112SummaryIPVersionResponseMetaNormalizationOverlappedPercentage AS112SummaryIPVersionResponseMetaNormalization = "OVERLAPPED_PERCENTAGE"
const AS112SummaryIPVersionResponseMetaNormalizationRatio AS112SummaryIPVersionResponseMetaNormalization = "RATIO"
Units []AS112SummaryIPVersionResponseMetaUnit

Measurement units for the results.

Name string
Value string
Summary0 AS112SummaryIPVersionResponseSummary0
IPv4 string

A numeric string.

IPv6 string

A numeric string.

Get AS112 DNS queries by IP version summary

package main

import (
  "context"
  "fmt"

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

func main() {
  client := cloudflare.NewClient(
    option.WithAPIToken("Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY"),
  )
  response, err := client.Radar.AS112.Summary.IPVersion(context.TODO(), radar.AS112SummaryIPVersionParams{

  })
  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"
          }
        ],
        "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": {
      "IPv4": "10",
      "IPv6": "10"
    }
  },
  "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"
          }
        ],
        "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": {
      "IPv4": "10",
      "IPv6": "10"
    }
  },
  "success": true
}