# AS112 ## Get AS112 DNS queries time series `client.Radar.AS112.Timeseries(ctx, query) (*AS112TimeseriesResponse, error)` **get** `/radar/as112/timeseries` Retrieves the AS112 DNS queries over time. ### Parameters - `query AS112TimeseriesParams` - `AggInterval param.Field[AS112TimeseriesParamsAggInterval]` Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). Refer to [Aggregation intervals](https://edgetunnel-b2h.pages.dev/radar/concepts/aggregation-intervals/). When omitted, the interval is auto-selected from the requested date range; finer intervals are only available for shorter ranges. If the requested interval is too granular for the date range, the request is rejected. - `const AS112TimeseriesParamsAggInterval15m AS112TimeseriesParamsAggInterval = "15m"` - `const AS112TimeseriesParamsAggInterval1h AS112TimeseriesParamsAggInterval = "1h"` - `const AS112TimeseriesParamsAggInterval1d AS112TimeseriesParamsAggInterval = "1d"` - `const AS112TimeseriesParamsAggInterval1w AS112TimeseriesParamsAggInterval = "1w"` - `Continent param.Field[[]string]` 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]` End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected. - `DateRange param.Field[[]string]` Filters results by relative date range ending at the current time, with each value producing a separate series. Use `d` for days (up to `364d`) or `w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters). - `DateStart param.Field[[]Time]` Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected. - `Format param.Field[AS112TimeseriesParamsFormat]` Format in which results will be returned. - `const AS112TimeseriesParamsFormatJson AS112TimeseriesParamsFormat = "JSON"` - `const AS112TimeseriesParamsFormatCsv AS112TimeseriesParamsFormat = "CSV"` - `Location param.Field[[]string]` 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]` Array of names used to label the series in the response. - `Protocol param.Field[[]AS112TimeseriesParamsProtocol]` Filters results by DNS transport protocol. - `const AS112TimeseriesParamsProtocolUdp AS112TimeseriesParamsProtocol = "UDP"` - `const AS112TimeseriesParamsProtocolTCP AS112TimeseriesParamsProtocol = "TCP"` - `const AS112TimeseriesParamsProtocolHTTPS AS112TimeseriesParamsProtocol = "HTTPS"` - `const AS112TimeseriesParamsProtocolTLS AS112TimeseriesParamsProtocol = "TLS"` - `QueryType param.Field[[]AS112TimeseriesParamsQueryType]` Filters results by DNS query type. - `const AS112TimeseriesParamsQueryTypeA AS112TimeseriesParamsQueryType = "A"` - `const AS112TimeseriesParamsQueryTypeAAAA AS112TimeseriesParamsQueryType = "AAAA"` - `const AS112TimeseriesParamsQueryTypeA6 AS112TimeseriesParamsQueryType = "A6"` - `const AS112TimeseriesParamsQueryTypeAfsdb AS112TimeseriesParamsQueryType = "AFSDB"` - `const AS112TimeseriesParamsQueryTypeAny AS112TimeseriesParamsQueryType = "ANY"` - `const AS112TimeseriesParamsQueryTypeApl AS112TimeseriesParamsQueryType = "APL"` - `const AS112TimeseriesParamsQueryTypeAtma AS112TimeseriesParamsQueryType = "ATMA"` - `const AS112TimeseriesParamsQueryTypeAXFR AS112TimeseriesParamsQueryType = "AXFR"` - `const AS112TimeseriesParamsQueryTypeCAA AS112TimeseriesParamsQueryType = "CAA"` - `const AS112TimeseriesParamsQueryTypeCdnskey AS112TimeseriesParamsQueryType = "CDNSKEY"` - `const AS112TimeseriesParamsQueryTypeCds AS112TimeseriesParamsQueryType = "CDS"` - `const AS112TimeseriesParamsQueryTypeCERT AS112TimeseriesParamsQueryType = "CERT"` - `const AS112TimeseriesParamsQueryTypeCNAME AS112TimeseriesParamsQueryType = "CNAME"` - `const AS112TimeseriesParamsQueryTypeCsync AS112TimeseriesParamsQueryType = "CSYNC"` - `const AS112TimeseriesParamsQueryTypeDhcid AS112TimeseriesParamsQueryType = "DHCID"` - `const AS112TimeseriesParamsQueryTypeDlv AS112TimeseriesParamsQueryType = "DLV"` - `const AS112TimeseriesParamsQueryTypeDname AS112TimeseriesParamsQueryType = "DNAME"` - `const AS112TimeseriesParamsQueryTypeDNSKEY AS112TimeseriesParamsQueryType = "DNSKEY"` - `const AS112TimeseriesParamsQueryTypeDoa AS112TimeseriesParamsQueryType = "DOA"` - `const AS112TimeseriesParamsQueryTypeDS AS112TimeseriesParamsQueryType = "DS"` - `const AS112TimeseriesParamsQueryTypeEid AS112TimeseriesParamsQueryType = "EID"` - `const AS112TimeseriesParamsQueryTypeEui48 AS112TimeseriesParamsQueryType = "EUI48"` - `const AS112TimeseriesParamsQueryTypeEui64 AS112TimeseriesParamsQueryType = "EUI64"` - `const AS112TimeseriesParamsQueryTypeGpos AS112TimeseriesParamsQueryType = "GPOS"` - `const AS112TimeseriesParamsQueryTypeGid AS112TimeseriesParamsQueryType = "GID"` - `const AS112TimeseriesParamsQueryTypeHinfo AS112TimeseriesParamsQueryType = "HINFO"` - `const AS112TimeseriesParamsQueryTypeHip AS112TimeseriesParamsQueryType = "HIP"` - `const AS112TimeseriesParamsQueryTypeHTTPS AS112TimeseriesParamsQueryType = "HTTPS"` - `const AS112TimeseriesParamsQueryTypeIpseckey AS112TimeseriesParamsQueryType = "IPSECKEY"` - `const AS112TimeseriesParamsQueryTypeIsdn AS112TimeseriesParamsQueryType = "ISDN"` - `const AS112TimeseriesParamsQueryTypeIxfr AS112TimeseriesParamsQueryType = "IXFR"` - `const AS112TimeseriesParamsQueryTypeKey AS112TimeseriesParamsQueryType = "KEY"` - `const AS112TimeseriesParamsQueryTypeKx AS112TimeseriesParamsQueryType = "KX"` - `const AS112TimeseriesParamsQueryTypeL32 AS112TimeseriesParamsQueryType = "L32"` - `const AS112TimeseriesParamsQueryTypeL64 AS112TimeseriesParamsQueryType = "L64"` - `const AS112TimeseriesParamsQueryTypeLOC AS112TimeseriesParamsQueryType = "LOC"` - `const AS112TimeseriesParamsQueryTypeLp AS112TimeseriesParamsQueryType = "LP"` - `const AS112TimeseriesParamsQueryTypeMaila AS112TimeseriesParamsQueryType = "MAILA"` - `const AS112TimeseriesParamsQueryTypeMailb AS112TimeseriesParamsQueryType = "MAILB"` - `const AS112TimeseriesParamsQueryTypeMB AS112TimeseriesParamsQueryType = "MB"` - `const AS112TimeseriesParamsQueryTypeMd AS112TimeseriesParamsQueryType = "MD"` - `const AS112TimeseriesParamsQueryTypeMf AS112TimeseriesParamsQueryType = "MF"` - `const AS112TimeseriesParamsQueryTypeMg AS112TimeseriesParamsQueryType = "MG"` - `const AS112TimeseriesParamsQueryTypeMinfo AS112TimeseriesParamsQueryType = "MINFO"` - `const AS112TimeseriesParamsQueryTypeMr AS112TimeseriesParamsQueryType = "MR"` - `const AS112TimeseriesParamsQueryTypeMX AS112TimeseriesParamsQueryType = "MX"` - `const AS112TimeseriesParamsQueryTypeNAPTR AS112TimeseriesParamsQueryType = "NAPTR"` - `const AS112TimeseriesParamsQueryTypeNb AS112TimeseriesParamsQueryType = "NB"` - `const AS112TimeseriesParamsQueryTypeNbstat AS112TimeseriesParamsQueryType = "NBSTAT"` - `const AS112TimeseriesParamsQueryTypeNid AS112TimeseriesParamsQueryType = "NID"` - `const AS112TimeseriesParamsQueryTypeNimloc AS112TimeseriesParamsQueryType = "NIMLOC"` - `const AS112TimeseriesParamsQueryTypeNinfo AS112TimeseriesParamsQueryType = "NINFO"` - `const AS112TimeseriesParamsQueryTypeNS AS112TimeseriesParamsQueryType = "NS"` - `const AS112TimeseriesParamsQueryTypeNsap AS112TimeseriesParamsQueryType = "NSAP"` - `const AS112TimeseriesParamsQueryTypeNsec AS112TimeseriesParamsQueryType = "NSEC"` - `const AS112TimeseriesParamsQueryTypeNsec3 AS112TimeseriesParamsQueryType = "NSEC3"` - `const AS112TimeseriesParamsQueryTypeNsec3Param AS112TimeseriesParamsQueryType = "NSEC3PARAM"` - `const AS112TimeseriesParamsQueryTypeNull AS112TimeseriesParamsQueryType = "NULL"` - `const AS112TimeseriesParamsQueryTypeNxt AS112TimeseriesParamsQueryType = "NXT"` - `const AS112TimeseriesParamsQueryTypeOpenpgpkey AS112TimeseriesParamsQueryType = "OPENPGPKEY"` - `const AS112TimeseriesParamsQueryTypeOpt AS112TimeseriesParamsQueryType = "OPT"` - `const AS112TimeseriesParamsQueryTypePTR AS112TimeseriesParamsQueryType = "PTR"` - `const AS112TimeseriesParamsQueryTypePx AS112TimeseriesParamsQueryType = "PX"` - `const AS112TimeseriesParamsQueryTypeRkey AS112TimeseriesParamsQueryType = "RKEY"` - `const AS112TimeseriesParamsQueryTypeRp AS112TimeseriesParamsQueryType = "RP"` - `const AS112TimeseriesParamsQueryTypeRrsig AS112TimeseriesParamsQueryType = "RRSIG"` - `const AS112TimeseriesParamsQueryTypeRt AS112TimeseriesParamsQueryType = "RT"` - `const AS112TimeseriesParamsQueryTypeSig AS112TimeseriesParamsQueryType = "SIG"` - `const AS112TimeseriesParamsQueryTypeSink AS112TimeseriesParamsQueryType = "SINK"` - `const AS112TimeseriesParamsQueryTypeSMIMEA AS112TimeseriesParamsQueryType = "SMIMEA"` - `const AS112TimeseriesParamsQueryTypeSOA AS112TimeseriesParamsQueryType = "SOA"` - `const AS112TimeseriesParamsQueryTypeSPF AS112TimeseriesParamsQueryType = "SPF"` - `const AS112TimeseriesParamsQueryTypeSRV AS112TimeseriesParamsQueryType = "SRV"` - `const AS112TimeseriesParamsQueryTypeSSHFP AS112TimeseriesParamsQueryType = "SSHFP"` - `const AS112TimeseriesParamsQueryTypeSVCB AS112TimeseriesParamsQueryType = "SVCB"` - `const AS112TimeseriesParamsQueryTypeTa AS112TimeseriesParamsQueryType = "TA"` - `const AS112TimeseriesParamsQueryTypeTalink AS112TimeseriesParamsQueryType = "TALINK"` - `const AS112TimeseriesParamsQueryTypeTkey AS112TimeseriesParamsQueryType = "TKEY"` - `const AS112TimeseriesParamsQueryTypeTLSA AS112TimeseriesParamsQueryType = "TLSA"` - `const AS112TimeseriesParamsQueryTypeTSIG AS112TimeseriesParamsQueryType = "TSIG"` - `const AS112TimeseriesParamsQueryTypeTXT AS112TimeseriesParamsQueryType = "TXT"` - `const AS112TimeseriesParamsQueryTypeUinfo AS112TimeseriesParamsQueryType = "UINFO"` - `const AS112TimeseriesParamsQueryTypeUID AS112TimeseriesParamsQueryType = "UID"` - `const AS112TimeseriesParamsQueryTypeUnspec AS112TimeseriesParamsQueryType = "UNSPEC"` - `const AS112TimeseriesParamsQueryTypeURI AS112TimeseriesParamsQueryType = "URI"` - `const AS112TimeseriesParamsQueryTypeWks AS112TimeseriesParamsQueryType = "WKS"` - `const AS112TimeseriesParamsQueryTypeX25 AS112TimeseriesParamsQueryType = "X25"` - `const AS112TimeseriesParamsQueryTypeZonemd AS112TimeseriesParamsQueryType = "ZONEMD"` - `ResponseCode param.Field[[]AS112TimeseriesParamsResponseCode]` Filters results by DNS response code. - `const AS112TimeseriesParamsResponseCodeNoerror AS112TimeseriesParamsResponseCode = "NOERROR"` - `const AS112TimeseriesParamsResponseCodeFormerr AS112TimeseriesParamsResponseCode = "FORMERR"` - `const AS112TimeseriesParamsResponseCodeServfail AS112TimeseriesParamsResponseCode = "SERVFAIL"` - `const AS112TimeseriesParamsResponseCodeNxdomain AS112TimeseriesParamsResponseCode = "NXDOMAIN"` - `const AS112TimeseriesParamsResponseCodeNotimp AS112TimeseriesParamsResponseCode = "NOTIMP"` - `const AS112TimeseriesParamsResponseCodeRefused AS112TimeseriesParamsResponseCode = "REFUSED"` - `const AS112TimeseriesParamsResponseCodeYxdomain AS112TimeseriesParamsResponseCode = "YXDOMAIN"` - `const AS112TimeseriesParamsResponseCodeYxrrset AS112TimeseriesParamsResponseCode = "YXRRSET"` - `const AS112TimeseriesParamsResponseCodeNxrrset AS112TimeseriesParamsResponseCode = "NXRRSET"` - `const AS112TimeseriesParamsResponseCodeNotauth AS112TimeseriesParamsResponseCode = "NOTAUTH"` - `const AS112TimeseriesParamsResponseCodeNotzone AS112TimeseriesParamsResponseCode = "NOTZONE"` - `const AS112TimeseriesParamsResponseCodeBadsig AS112TimeseriesParamsResponseCode = "BADSIG"` - `const AS112TimeseriesParamsResponseCodeBadkey AS112TimeseriesParamsResponseCode = "BADKEY"` - `const AS112TimeseriesParamsResponseCodeBadtime AS112TimeseriesParamsResponseCode = "BADTIME"` - `const AS112TimeseriesParamsResponseCodeBadmode AS112TimeseriesParamsResponseCode = "BADMODE"` - `const AS112TimeseriesParamsResponseCodeBadname AS112TimeseriesParamsResponseCode = "BADNAME"` - `const AS112TimeseriesParamsResponseCodeBadalg AS112TimeseriesParamsResponseCode = "BADALG"` - `const AS112TimeseriesParamsResponseCodeBadtrunc AS112TimeseriesParamsResponseCode = "BADTRUNC"` - `const AS112TimeseriesParamsResponseCodeBadcookie AS112TimeseriesParamsResponseCode = "BADCOOKIE"` ### Returns - `type AS112TimeseriesResponse struct{…}` - `Meta AS112TimeseriesResponseMeta` Metadata for the results. - `AggInterval AS112TimeseriesResponseMetaAggInterval` Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). Refer to [Aggregation intervals](https://edgetunnel-b2h.pages.dev/radar/concepts/aggregation-intervals/). - `const AS112TimeseriesResponseMetaAggIntervalFifteenMinutes AS112TimeseriesResponseMetaAggInterval = "FIFTEEN_MINUTES"` - `const AS112TimeseriesResponseMetaAggIntervalOneHour AS112TimeseriesResponseMetaAggInterval = "ONE_HOUR"` - `const AS112TimeseriesResponseMetaAggIntervalOneDay AS112TimeseriesResponseMetaAggInterval = "ONE_DAY"` - `const AS112TimeseriesResponseMetaAggIntervalOneWeek AS112TimeseriesResponseMetaAggInterval = "ONE_WEEK"` - `const AS112TimeseriesResponseMetaAggIntervalOneMonth AS112TimeseriesResponseMetaAggInterval = "ONE_MONTH"` - `ConfidenceInfo AS112TimeseriesResponseMetaConfidenceInfo` - `Annotations []AS112TimeseriesResponseMetaConfidenceInfoAnnotation` - `DataSource AS112TimeseriesResponseMetaConfidenceInfoAnnotationsDataSource` Data source for annotations. - `const AS112TimeseriesResponseMetaConfidenceInfoAnnotationsDataSourceAll AS112TimeseriesResponseMetaConfidenceInfoAnnotationsDataSource = "ALL"` - `const AS112TimeseriesResponseMetaConfidenceInfoAnnotationsDataSourceAIBots AS112TimeseriesResponseMetaConfidenceInfoAnnotationsDataSource = "AI_BOTS"` - `const AS112TimeseriesResponseMetaConfidenceInfoAnnotationsDataSourceAIGateway AS112TimeseriesResponseMetaConfidenceInfoAnnotationsDataSource = "AI_GATEWAY"` - `const AS112TimeseriesResponseMetaConfidenceInfoAnnotationsDataSourceBGP AS112TimeseriesResponseMetaConfidenceInfoAnnotationsDataSource = "BGP"` - `const AS112TimeseriesResponseMetaConfidenceInfoAnnotationsDataSourceBots AS112TimeseriesResponseMetaConfidenceInfoAnnotationsDataSource = "BOTS"` - `const AS112TimeseriesResponseMetaConfidenceInfoAnnotationsDataSourceConnectionAnomaly AS112TimeseriesResponseMetaConfidenceInfoAnnotationsDataSource = "CONNECTION_ANOMALY"` - `const AS112TimeseriesResponseMetaConfidenceInfoAnnotationsDataSourceCT AS112TimeseriesResponseMetaConfidenceInfoAnnotationsDataSource = "CT"` - `const AS112TimeseriesResponseMetaConfidenceInfoAnnotationsDataSourceDNS AS112TimeseriesResponseMetaConfidenceInfoAnnotationsDataSource = "DNS"` - `const AS112TimeseriesResponseMetaConfidenceInfoAnnotationsDataSourceDNSMagnitude AS112TimeseriesResponseMetaConfidenceInfoAnnotationsDataSource = "DNS_MAGNITUDE"` - `const AS112TimeseriesResponseMetaConfidenceInfoAnnotationsDataSourceDNSAS112 AS112TimeseriesResponseMetaConfidenceInfoAnnotationsDataSource = "DNS_AS112"` - `const AS112TimeseriesResponseMetaConfidenceInfoAnnotationsDataSourceDos AS112TimeseriesResponseMetaConfidenceInfoAnnotationsDataSource = "DOS"` - `const AS112TimeseriesResponseMetaConfidenceInfoAnnotationsDataSourceEmailRouting AS112TimeseriesResponseMetaConfidenceInfoAnnotationsDataSource = "EMAIL_ROUTING"` - `const AS112TimeseriesResponseMetaConfidenceInfoAnnotationsDataSourceEmailSecurity AS112TimeseriesResponseMetaConfidenceInfoAnnotationsDataSource = "EMAIL_SECURITY"` - `const AS112TimeseriesResponseMetaConfidenceInfoAnnotationsDataSourceFw AS112TimeseriesResponseMetaConfidenceInfoAnnotationsDataSource = "FW"` - `const AS112TimeseriesResponseMetaConfidenceInfoAnnotationsDataSourceFwPg AS112TimeseriesResponseMetaConfidenceInfoAnnotationsDataSource = "FW_PG"` - `const AS112TimeseriesResponseMetaConfidenceInfoAnnotationsDataSourceHTTP AS112TimeseriesResponseMetaConfidenceInfoAnnotationsDataSource = "HTTP"` - `const AS112TimeseriesResponseMetaConfidenceInfoAnnotationsDataSourceHTTPControl AS112TimeseriesResponseMetaConfidenceInfoAnnotationsDataSource = "HTTP_CONTROL"` - `const AS112TimeseriesResponseMetaConfidenceInfoAnnotationsDataSourceHTTPCrawlerReferer AS112TimeseriesResponseMetaConfidenceInfoAnnotationsDataSource = "HTTP_CRAWLER_REFERER"` - `const AS112TimeseriesResponseMetaConfidenceInfoAnnotationsDataSourceHTTPOrigins AS112TimeseriesResponseMetaConfidenceInfoAnnotationsDataSource = "HTTP_ORIGINS"` - `const AS112TimeseriesResponseMetaConfidenceInfoAnnotationsDataSourceIQI AS112TimeseriesResponseMetaConfidenceInfoAnnotationsDataSource = "IQI"` - `const AS112TimeseriesResponseMetaConfidenceInfoAnnotationsDataSourceLeakedCredentials AS112TimeseriesResponseMetaConfidenceInfoAnnotationsDataSource = "LEAKED_CREDENTIALS"` - `const AS112TimeseriesResponseMetaConfidenceInfoAnnotationsDataSourceNet AS112TimeseriesResponseMetaConfidenceInfoAnnotationsDataSource = "NET"` - `const AS112TimeseriesResponseMetaConfidenceInfoAnnotationsDataSourceRobotsTXT AS112TimeseriesResponseMetaConfidenceInfoAnnotationsDataSource = "ROBOTS_TXT"` - `const AS112TimeseriesResponseMetaConfidenceInfoAnnotationsDataSourceSpeed AS112TimeseriesResponseMetaConfidenceInfoAnnotationsDataSource = "SPEED"` - `const AS112TimeseriesResponseMetaConfidenceInfoAnnotationsDataSourceWorkersAI AS112TimeseriesResponseMetaConfidenceInfoAnnotationsDataSource = "WORKERS_AI"` - `Description string` - `EndDate Time` - `EventType AS112TimeseriesResponseMetaConfidenceInfoAnnotationsEventType` Event type for annotations. - `const AS112TimeseriesResponseMetaConfidenceInfoAnnotationsEventTypeEvent AS112TimeseriesResponseMetaConfidenceInfoAnnotationsEventType = "EVENT"` - `const AS112TimeseriesResponseMetaConfidenceInfoAnnotationsEventTypeGeneral AS112TimeseriesResponseMetaConfidenceInfoAnnotationsEventType = "GENERAL"` - `const AS112TimeseriesResponseMetaConfidenceInfoAnnotationsEventTypeOutage AS112TimeseriesResponseMetaConfidenceInfoAnnotationsEventType = "OUTAGE"` - `const AS112TimeseriesResponseMetaConfidenceInfoAnnotationsEventTypePartialProjection AS112TimeseriesResponseMetaConfidenceInfoAnnotationsEventType = "PARTIAL_PROJECTION"` - `const AS112TimeseriesResponseMetaConfidenceInfoAnnotationsEventTypePipeline AS112TimeseriesResponseMetaConfidenceInfoAnnotationsEventType = "PIPELINE"` - `const AS112TimeseriesResponseMetaConfidenceInfoAnnotationsEventTypeTrafficAnomaly AS112TimeseriesResponseMetaConfidenceInfoAnnotationsEventType = "TRAFFIC_ANOMALY"` - `IsInstantaneous bool` Whether event is a single point in time or a time range. - `LinkedURL string` - `StartDate Time` - `Tags []string` - `Level int64` Provides an indication of how much confidence Cloudflare has in the data. - `DateRange []AS112TimeseriesResponseMetaDateRange` - `EndTime Time` Adjusted end of date range. - `StartTime Time` Adjusted start of date range. - `LastUpdated Time` Timestamp of the last dataset update. - `Normalization AS112TimeseriesResponseMetaNormalization` Normalization method applied to the results. Refer to [Normalization methods](https://edgetunnel-b2h.pages.dev/radar/concepts/normalization/). - `const AS112TimeseriesResponseMetaNormalizationPercentage AS112TimeseriesResponseMetaNormalization = "PERCENTAGE"` - `const AS112TimeseriesResponseMetaNormalizationMin0Max AS112TimeseriesResponseMetaNormalization = "MIN0_MAX"` - `const AS112TimeseriesResponseMetaNormalizationMinMax AS112TimeseriesResponseMetaNormalization = "MIN_MAX"` - `const AS112TimeseriesResponseMetaNormalizationRawValues AS112TimeseriesResponseMetaNormalization = "RAW_VALUES"` - `const AS112TimeseriesResponseMetaNormalizationPercentageChange AS112TimeseriesResponseMetaNormalization = "PERCENTAGE_CHANGE"` - `const AS112TimeseriesResponseMetaNormalizationRollingAverage AS112TimeseriesResponseMetaNormalization = "ROLLING_AVERAGE"` - `const AS112TimeseriesResponseMetaNormalizationOverlappedPercentage AS112TimeseriesResponseMetaNormalization = "OVERLAPPED_PERCENTAGE"` - `const AS112TimeseriesResponseMetaNormalizationRatio AS112TimeseriesResponseMetaNormalization = "RATIO"` - `Units []AS112TimeseriesResponseMetaUnit` Measurement units for the results. - `Name string` - `Value string` ### Example ```go 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.Timeseries(context.TODO(), radar.AS112TimeseriesParams{ }) if err != nil { panic(err.Error()) } fmt.Printf("%+v\n", response.Meta) } ``` #### Response ```json { "result": { "meta": { "aggInterval": "FIFTEEN_MINUTES", "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" } ] } }, "success": true } ``` ## Get AS112 summary by dimension `client.Radar.AS112.SummaryV2(ctx, dimension, query) (*AS112SummaryV2Response, error)` **get** `/radar/as112/summary/{dimension}` Retrieves the distribution of AS112 queries by the specified dimension. ### Parameters - `dimension AS112SummaryV2ParamsDimension` Specifies the attribute by which to group the results. - `const AS112SummaryV2ParamsDimensionDNSSEC AS112SummaryV2ParamsDimension = "DNSSEC"` - `const AS112SummaryV2ParamsDimensionEdns AS112SummaryV2ParamsDimension = "EDNS"` - `const AS112SummaryV2ParamsDimensionIPVersion AS112SummaryV2ParamsDimension = "IP_VERSION"` - `const AS112SummaryV2ParamsDimensionProtocol AS112SummaryV2ParamsDimension = "PROTOCOL"` - `const AS112SummaryV2ParamsDimensionQueryType AS112SummaryV2ParamsDimension = "QUERY_TYPE"` - `const AS112SummaryV2ParamsDimensionResponseCode AS112SummaryV2ParamsDimension = "RESPONSE_CODE"` - `query AS112SummaryV2Params` - `Continent param.Field[[]string]` 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]` End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected. - `DateRange param.Field[[]string]` Filters results by relative date range ending at the current time, with each value producing a separate series. Use `d` for days (up to `364d`) or `w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters). - `DateStart param.Field[[]Time]` Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected. - `Format param.Field[AS112SummaryV2ParamsFormat]` Format in which results will be returned. - `const AS112SummaryV2ParamsFormatJson AS112SummaryV2ParamsFormat = "JSON"` - `const AS112SummaryV2ParamsFormatCsv AS112SummaryV2ParamsFormat = "CSV"` - `LimitPerGroup param.Field[int64]` 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. Only supported on high-cardinality dimensions; otherwise the request is rejected. Minimum value is 2. - `Location param.Field[[]string]` 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]` Array of names used to label the series in the response. - `Protocol param.Field[[]AS112SummaryV2ParamsProtocol]` Filters results by DNS transport protocol. - `const AS112SummaryV2ParamsProtocolUdp AS112SummaryV2ParamsProtocol = "UDP"` - `const AS112SummaryV2ParamsProtocolTCP AS112SummaryV2ParamsProtocol = "TCP"` - `const AS112SummaryV2ParamsProtocolHTTPS AS112SummaryV2ParamsProtocol = "HTTPS"` - `const AS112SummaryV2ParamsProtocolTLS AS112SummaryV2ParamsProtocol = "TLS"` - `QueryType param.Field[[]AS112SummaryV2ParamsQueryType]` Filters results by DNS query type. - `const AS112SummaryV2ParamsQueryTypeA AS112SummaryV2ParamsQueryType = "A"` - `const AS112SummaryV2ParamsQueryTypeAAAA AS112SummaryV2ParamsQueryType = "AAAA"` - `const AS112SummaryV2ParamsQueryTypeA6 AS112SummaryV2ParamsQueryType = "A6"` - `const AS112SummaryV2ParamsQueryTypeAfsdb AS112SummaryV2ParamsQueryType = "AFSDB"` - `const AS112SummaryV2ParamsQueryTypeAny AS112SummaryV2ParamsQueryType = "ANY"` - `const AS112SummaryV2ParamsQueryTypeApl AS112SummaryV2ParamsQueryType = "APL"` - `const AS112SummaryV2ParamsQueryTypeAtma AS112SummaryV2ParamsQueryType = "ATMA"` - `const AS112SummaryV2ParamsQueryTypeAXFR AS112SummaryV2ParamsQueryType = "AXFR"` - `const AS112SummaryV2ParamsQueryTypeCAA AS112SummaryV2ParamsQueryType = "CAA"` - `const AS112SummaryV2ParamsQueryTypeCdnskey AS112SummaryV2ParamsQueryType = "CDNSKEY"` - `const AS112SummaryV2ParamsQueryTypeCds AS112SummaryV2ParamsQueryType = "CDS"` - `const AS112SummaryV2ParamsQueryTypeCERT AS112SummaryV2ParamsQueryType = "CERT"` - `const AS112SummaryV2ParamsQueryTypeCNAME AS112SummaryV2ParamsQueryType = "CNAME"` - `const AS112SummaryV2ParamsQueryTypeCsync AS112SummaryV2ParamsQueryType = "CSYNC"` - `const AS112SummaryV2ParamsQueryTypeDhcid AS112SummaryV2ParamsQueryType = "DHCID"` - `const AS112SummaryV2ParamsQueryTypeDlv AS112SummaryV2ParamsQueryType = "DLV"` - `const AS112SummaryV2ParamsQueryTypeDname AS112SummaryV2ParamsQueryType = "DNAME"` - `const AS112SummaryV2ParamsQueryTypeDNSKEY AS112SummaryV2ParamsQueryType = "DNSKEY"` - `const AS112SummaryV2ParamsQueryTypeDoa AS112SummaryV2ParamsQueryType = "DOA"` - `const AS112SummaryV2ParamsQueryTypeDS AS112SummaryV2ParamsQueryType = "DS"` - `const AS112SummaryV2ParamsQueryTypeEid AS112SummaryV2ParamsQueryType = "EID"` - `const AS112SummaryV2ParamsQueryTypeEui48 AS112SummaryV2ParamsQueryType = "EUI48"` - `const AS112SummaryV2ParamsQueryTypeEui64 AS112SummaryV2ParamsQueryType = "EUI64"` - `const AS112SummaryV2ParamsQueryTypeGpos AS112SummaryV2ParamsQueryType = "GPOS"` - `const AS112SummaryV2ParamsQueryTypeGid AS112SummaryV2ParamsQueryType = "GID"` - `const AS112SummaryV2ParamsQueryTypeHinfo AS112SummaryV2ParamsQueryType = "HINFO"` - `const AS112SummaryV2ParamsQueryTypeHip AS112SummaryV2ParamsQueryType = "HIP"` - `const AS112SummaryV2ParamsQueryTypeHTTPS AS112SummaryV2ParamsQueryType = "HTTPS"` - `const AS112SummaryV2ParamsQueryTypeIpseckey AS112SummaryV2ParamsQueryType = "IPSECKEY"` - `const AS112SummaryV2ParamsQueryTypeIsdn AS112SummaryV2ParamsQueryType = "ISDN"` - `const AS112SummaryV2ParamsQueryTypeIxfr AS112SummaryV2ParamsQueryType = "IXFR"` - `const AS112SummaryV2ParamsQueryTypeKey AS112SummaryV2ParamsQueryType = "KEY"` - `const AS112SummaryV2ParamsQueryTypeKx AS112SummaryV2ParamsQueryType = "KX"` - `const AS112SummaryV2ParamsQueryTypeL32 AS112SummaryV2ParamsQueryType = "L32"` - `const AS112SummaryV2ParamsQueryTypeL64 AS112SummaryV2ParamsQueryType = "L64"` - `const AS112SummaryV2ParamsQueryTypeLOC AS112SummaryV2ParamsQueryType = "LOC"` - `const AS112SummaryV2ParamsQueryTypeLp AS112SummaryV2ParamsQueryType = "LP"` - `const AS112SummaryV2ParamsQueryTypeMaila AS112SummaryV2ParamsQueryType = "MAILA"` - `const AS112SummaryV2ParamsQueryTypeMailb AS112SummaryV2ParamsQueryType = "MAILB"` - `const AS112SummaryV2ParamsQueryTypeMB AS112SummaryV2ParamsQueryType = "MB"` - `const AS112SummaryV2ParamsQueryTypeMd AS112SummaryV2ParamsQueryType = "MD"` - `const AS112SummaryV2ParamsQueryTypeMf AS112SummaryV2ParamsQueryType = "MF"` - `const AS112SummaryV2ParamsQueryTypeMg AS112SummaryV2ParamsQueryType = "MG"` - `const AS112SummaryV2ParamsQueryTypeMinfo AS112SummaryV2ParamsQueryType = "MINFO"` - `const AS112SummaryV2ParamsQueryTypeMr AS112SummaryV2ParamsQueryType = "MR"` - `const AS112SummaryV2ParamsQueryTypeMX AS112SummaryV2ParamsQueryType = "MX"` - `const AS112SummaryV2ParamsQueryTypeNAPTR AS112SummaryV2ParamsQueryType = "NAPTR"` - `const AS112SummaryV2ParamsQueryTypeNb AS112SummaryV2ParamsQueryType = "NB"` - `const AS112SummaryV2ParamsQueryTypeNbstat AS112SummaryV2ParamsQueryType = "NBSTAT"` - `const AS112SummaryV2ParamsQueryTypeNid AS112SummaryV2ParamsQueryType = "NID"` - `const AS112SummaryV2ParamsQueryTypeNimloc AS112SummaryV2ParamsQueryType = "NIMLOC"` - `const AS112SummaryV2ParamsQueryTypeNinfo AS112SummaryV2ParamsQueryType = "NINFO"` - `const AS112SummaryV2ParamsQueryTypeNS AS112SummaryV2ParamsQueryType = "NS"` - `const AS112SummaryV2ParamsQueryTypeNsap AS112SummaryV2ParamsQueryType = "NSAP"` - `const AS112SummaryV2ParamsQueryTypeNsec AS112SummaryV2ParamsQueryType = "NSEC"` - `const AS112SummaryV2ParamsQueryTypeNsec3 AS112SummaryV2ParamsQueryType = "NSEC3"` - `const AS112SummaryV2ParamsQueryTypeNsec3Param AS112SummaryV2ParamsQueryType = "NSEC3PARAM"` - `const AS112SummaryV2ParamsQueryTypeNull AS112SummaryV2ParamsQueryType = "NULL"` - `const AS112SummaryV2ParamsQueryTypeNxt AS112SummaryV2ParamsQueryType = "NXT"` - `const AS112SummaryV2ParamsQueryTypeOpenpgpkey AS112SummaryV2ParamsQueryType = "OPENPGPKEY"` - `const AS112SummaryV2ParamsQueryTypeOpt AS112SummaryV2ParamsQueryType = "OPT"` - `const AS112SummaryV2ParamsQueryTypePTR AS112SummaryV2ParamsQueryType = "PTR"` - `const AS112SummaryV2ParamsQueryTypePx AS112SummaryV2ParamsQueryType = "PX"` - `const AS112SummaryV2ParamsQueryTypeRkey AS112SummaryV2ParamsQueryType = "RKEY"` - `const AS112SummaryV2ParamsQueryTypeRp AS112SummaryV2ParamsQueryType = "RP"` - `const AS112SummaryV2ParamsQueryTypeRrsig AS112SummaryV2ParamsQueryType = "RRSIG"` - `const AS112SummaryV2ParamsQueryTypeRt AS112SummaryV2ParamsQueryType = "RT"` - `const AS112SummaryV2ParamsQueryTypeSig AS112SummaryV2ParamsQueryType = "SIG"` - `const AS112SummaryV2ParamsQueryTypeSink AS112SummaryV2ParamsQueryType = "SINK"` - `const AS112SummaryV2ParamsQueryTypeSMIMEA AS112SummaryV2ParamsQueryType = "SMIMEA"` - `const AS112SummaryV2ParamsQueryTypeSOA AS112SummaryV2ParamsQueryType = "SOA"` - `const AS112SummaryV2ParamsQueryTypeSPF AS112SummaryV2ParamsQueryType = "SPF"` - `const AS112SummaryV2ParamsQueryTypeSRV AS112SummaryV2ParamsQueryType = "SRV"` - `const AS112SummaryV2ParamsQueryTypeSSHFP AS112SummaryV2ParamsQueryType = "SSHFP"` - `const AS112SummaryV2ParamsQueryTypeSVCB AS112SummaryV2ParamsQueryType = "SVCB"` - `const AS112SummaryV2ParamsQueryTypeTa AS112SummaryV2ParamsQueryType = "TA"` - `const AS112SummaryV2ParamsQueryTypeTalink AS112SummaryV2ParamsQueryType = "TALINK"` - `const AS112SummaryV2ParamsQueryTypeTkey AS112SummaryV2ParamsQueryType = "TKEY"` - `const AS112SummaryV2ParamsQueryTypeTLSA AS112SummaryV2ParamsQueryType = "TLSA"` - `const AS112SummaryV2ParamsQueryTypeTSIG AS112SummaryV2ParamsQueryType = "TSIG"` - `const AS112SummaryV2ParamsQueryTypeTXT AS112SummaryV2ParamsQueryType = "TXT"` - `const AS112SummaryV2ParamsQueryTypeUinfo AS112SummaryV2ParamsQueryType = "UINFO"` - `const AS112SummaryV2ParamsQueryTypeUID AS112SummaryV2ParamsQueryType = "UID"` - `const AS112SummaryV2ParamsQueryTypeUnspec AS112SummaryV2ParamsQueryType = "UNSPEC"` - `const AS112SummaryV2ParamsQueryTypeURI AS112SummaryV2ParamsQueryType = "URI"` - `const AS112SummaryV2ParamsQueryTypeWks AS112SummaryV2ParamsQueryType = "WKS"` - `const AS112SummaryV2ParamsQueryTypeX25 AS112SummaryV2ParamsQueryType = "X25"` - `const AS112SummaryV2ParamsQueryTypeZonemd AS112SummaryV2ParamsQueryType = "ZONEMD"` - `ResponseCode param.Field[[]AS112SummaryV2ParamsResponseCode]` Filters results by DNS response code. - `const AS112SummaryV2ParamsResponseCodeNoerror AS112SummaryV2ParamsResponseCode = "NOERROR"` - `const AS112SummaryV2ParamsResponseCodeFormerr AS112SummaryV2ParamsResponseCode = "FORMERR"` - `const AS112SummaryV2ParamsResponseCodeServfail AS112SummaryV2ParamsResponseCode = "SERVFAIL"` - `const AS112SummaryV2ParamsResponseCodeNxdomain AS112SummaryV2ParamsResponseCode = "NXDOMAIN"` - `const AS112SummaryV2ParamsResponseCodeNotimp AS112SummaryV2ParamsResponseCode = "NOTIMP"` - `const AS112SummaryV2ParamsResponseCodeRefused AS112SummaryV2ParamsResponseCode = "REFUSED"` - `const AS112SummaryV2ParamsResponseCodeYxdomain AS112SummaryV2ParamsResponseCode = "YXDOMAIN"` - `const AS112SummaryV2ParamsResponseCodeYxrrset AS112SummaryV2ParamsResponseCode = "YXRRSET"` - `const AS112SummaryV2ParamsResponseCodeNxrrset AS112SummaryV2ParamsResponseCode = "NXRRSET"` - `const AS112SummaryV2ParamsResponseCodeNotauth AS112SummaryV2ParamsResponseCode = "NOTAUTH"` - `const AS112SummaryV2ParamsResponseCodeNotzone AS112SummaryV2ParamsResponseCode = "NOTZONE"` - `const AS112SummaryV2ParamsResponseCodeBadsig AS112SummaryV2ParamsResponseCode = "BADSIG"` - `const AS112SummaryV2ParamsResponseCodeBadkey AS112SummaryV2ParamsResponseCode = "BADKEY"` - `const AS112SummaryV2ParamsResponseCodeBadtime AS112SummaryV2ParamsResponseCode = "BADTIME"` - `const AS112SummaryV2ParamsResponseCodeBadmode AS112SummaryV2ParamsResponseCode = "BADMODE"` - `const AS112SummaryV2ParamsResponseCodeBadname AS112SummaryV2ParamsResponseCode = "BADNAME"` - `const AS112SummaryV2ParamsResponseCodeBadalg AS112SummaryV2ParamsResponseCode = "BADALG"` - `const AS112SummaryV2ParamsResponseCodeBadtrunc AS112SummaryV2ParamsResponseCode = "BADTRUNC"` - `const AS112SummaryV2ParamsResponseCodeBadcookie AS112SummaryV2ParamsResponseCode = "BADCOOKIE"` ### Returns - `type AS112SummaryV2Response struct{…}` - `Meta AS112SummaryV2ResponseMeta` Metadata for the results. - `ConfidenceInfo AS112SummaryV2ResponseMetaConfidenceInfo` - `Annotations []AS112SummaryV2ResponseMetaConfidenceInfoAnnotation` - `DataSource AS112SummaryV2ResponseMetaConfidenceInfoAnnotationsDataSource` Data source for annotations. - `const AS112SummaryV2ResponseMetaConfidenceInfoAnnotationsDataSourceAll AS112SummaryV2ResponseMetaConfidenceInfoAnnotationsDataSource = "ALL"` - `const AS112SummaryV2ResponseMetaConfidenceInfoAnnotationsDataSourceAIBots AS112SummaryV2ResponseMetaConfidenceInfoAnnotationsDataSource = "AI_BOTS"` - `const AS112SummaryV2ResponseMetaConfidenceInfoAnnotationsDataSourceAIGateway AS112SummaryV2ResponseMetaConfidenceInfoAnnotationsDataSource = "AI_GATEWAY"` - `const AS112SummaryV2ResponseMetaConfidenceInfoAnnotationsDataSourceBGP AS112SummaryV2ResponseMetaConfidenceInfoAnnotationsDataSource = "BGP"` - `const AS112SummaryV2ResponseMetaConfidenceInfoAnnotationsDataSourceBots AS112SummaryV2ResponseMetaConfidenceInfoAnnotationsDataSource = "BOTS"` - `const AS112SummaryV2ResponseMetaConfidenceInfoAnnotationsDataSourceConnectionAnomaly AS112SummaryV2ResponseMetaConfidenceInfoAnnotationsDataSource = "CONNECTION_ANOMALY"` - `const AS112SummaryV2ResponseMetaConfidenceInfoAnnotationsDataSourceCT AS112SummaryV2ResponseMetaConfidenceInfoAnnotationsDataSource = "CT"` - `const AS112SummaryV2ResponseMetaConfidenceInfoAnnotationsDataSourceDNS AS112SummaryV2ResponseMetaConfidenceInfoAnnotationsDataSource = "DNS"` - `const AS112SummaryV2ResponseMetaConfidenceInfoAnnotationsDataSourceDNSMagnitude AS112SummaryV2ResponseMetaConfidenceInfoAnnotationsDataSource = "DNS_MAGNITUDE"` - `const AS112SummaryV2ResponseMetaConfidenceInfoAnnotationsDataSourceDNSAS112 AS112SummaryV2ResponseMetaConfidenceInfoAnnotationsDataSource = "DNS_AS112"` - `const AS112SummaryV2ResponseMetaConfidenceInfoAnnotationsDataSourceDos AS112SummaryV2ResponseMetaConfidenceInfoAnnotationsDataSource = "DOS"` - `const AS112SummaryV2ResponseMetaConfidenceInfoAnnotationsDataSourceEmailRouting AS112SummaryV2ResponseMetaConfidenceInfoAnnotationsDataSource = "EMAIL_ROUTING"` - `const AS112SummaryV2ResponseMetaConfidenceInfoAnnotationsDataSourceEmailSecurity AS112SummaryV2ResponseMetaConfidenceInfoAnnotationsDataSource = "EMAIL_SECURITY"` - `const AS112SummaryV2ResponseMetaConfidenceInfoAnnotationsDataSourceFw AS112SummaryV2ResponseMetaConfidenceInfoAnnotationsDataSource = "FW"` - `const AS112SummaryV2ResponseMetaConfidenceInfoAnnotationsDataSourceFwPg AS112SummaryV2ResponseMetaConfidenceInfoAnnotationsDataSource = "FW_PG"` - `const AS112SummaryV2ResponseMetaConfidenceInfoAnnotationsDataSourceHTTP AS112SummaryV2ResponseMetaConfidenceInfoAnnotationsDataSource = "HTTP"` - `const AS112SummaryV2ResponseMetaConfidenceInfoAnnotationsDataSourceHTTPControl AS112SummaryV2ResponseMetaConfidenceInfoAnnotationsDataSource = "HTTP_CONTROL"` - `const AS112SummaryV2ResponseMetaConfidenceInfoAnnotationsDataSourceHTTPCrawlerReferer AS112SummaryV2ResponseMetaConfidenceInfoAnnotationsDataSource = "HTTP_CRAWLER_REFERER"` - `const AS112SummaryV2ResponseMetaConfidenceInfoAnnotationsDataSourceHTTPOrigins AS112SummaryV2ResponseMetaConfidenceInfoAnnotationsDataSource = "HTTP_ORIGINS"` - `const AS112SummaryV2ResponseMetaConfidenceInfoAnnotationsDataSourceIQI AS112SummaryV2ResponseMetaConfidenceInfoAnnotationsDataSource = "IQI"` - `const AS112SummaryV2ResponseMetaConfidenceInfoAnnotationsDataSourceLeakedCredentials AS112SummaryV2ResponseMetaConfidenceInfoAnnotationsDataSource = "LEAKED_CREDENTIALS"` - `const AS112SummaryV2ResponseMetaConfidenceInfoAnnotationsDataSourceNet AS112SummaryV2ResponseMetaConfidenceInfoAnnotationsDataSource = "NET"` - `const AS112SummaryV2ResponseMetaConfidenceInfoAnnotationsDataSourceRobotsTXT AS112SummaryV2ResponseMetaConfidenceInfoAnnotationsDataSource = "ROBOTS_TXT"` - `const AS112SummaryV2ResponseMetaConfidenceInfoAnnotationsDataSourceSpeed AS112SummaryV2ResponseMetaConfidenceInfoAnnotationsDataSource = "SPEED"` - `const AS112SummaryV2ResponseMetaConfidenceInfoAnnotationsDataSourceWorkersAI AS112SummaryV2ResponseMetaConfidenceInfoAnnotationsDataSource = "WORKERS_AI"` - `Description string` - `EndDate Time` - `EventType AS112SummaryV2ResponseMetaConfidenceInfoAnnotationsEventType` Event type for annotations. - `const AS112SummaryV2ResponseMetaConfidenceInfoAnnotationsEventTypeEvent AS112SummaryV2ResponseMetaConfidenceInfoAnnotationsEventType = "EVENT"` - `const AS112SummaryV2ResponseMetaConfidenceInfoAnnotationsEventTypeGeneral AS112SummaryV2ResponseMetaConfidenceInfoAnnotationsEventType = "GENERAL"` - `const AS112SummaryV2ResponseMetaConfidenceInfoAnnotationsEventTypeOutage AS112SummaryV2ResponseMetaConfidenceInfoAnnotationsEventType = "OUTAGE"` - `const AS112SummaryV2ResponseMetaConfidenceInfoAnnotationsEventTypePartialProjection AS112SummaryV2ResponseMetaConfidenceInfoAnnotationsEventType = "PARTIAL_PROJECTION"` - `const AS112SummaryV2ResponseMetaConfidenceInfoAnnotationsEventTypePipeline AS112SummaryV2ResponseMetaConfidenceInfoAnnotationsEventType = "PIPELINE"` - `const AS112SummaryV2ResponseMetaConfidenceInfoAnnotationsEventTypeTrafficAnomaly AS112SummaryV2ResponseMetaConfidenceInfoAnnotationsEventType = "TRAFFIC_ANOMALY"` - `IsInstantaneous bool` Whether event is a single point in time or a time range. - `LinkedURL string` - `StartDate Time` - `Tags []string` - `Level int64` Provides an indication of how much confidence Cloudflare has in the data. - `DateRange []AS112SummaryV2ResponseMetaDateRange` - `EndTime Time` Adjusted end of date range. - `StartTime Time` Adjusted start of date range. - `LastUpdated Time` Timestamp of the last dataset update. - `Normalization AS112SummaryV2ResponseMetaNormalization` Normalization method applied to the results. Refer to [Normalization methods](https://edgetunnel-b2h.pages.dev/radar/concepts/normalization/). - `const AS112SummaryV2ResponseMetaNormalizationPercentage AS112SummaryV2ResponseMetaNormalization = "PERCENTAGE"` - `const AS112SummaryV2ResponseMetaNormalizationMin0Max AS112SummaryV2ResponseMetaNormalization = "MIN0_MAX"` - `const AS112SummaryV2ResponseMetaNormalizationMinMax AS112SummaryV2ResponseMetaNormalization = "MIN_MAX"` - `const AS112SummaryV2ResponseMetaNormalizationRawValues AS112SummaryV2ResponseMetaNormalization = "RAW_VALUES"` - `const AS112SummaryV2ResponseMetaNormalizationPercentageChange AS112SummaryV2ResponseMetaNormalization = "PERCENTAGE_CHANGE"` - `const AS112SummaryV2ResponseMetaNormalizationRollingAverage AS112SummaryV2ResponseMetaNormalization = "ROLLING_AVERAGE"` - `const AS112SummaryV2ResponseMetaNormalizationOverlappedPercentage AS112SummaryV2ResponseMetaNormalization = "OVERLAPPED_PERCENTAGE"` - `const AS112SummaryV2ResponseMetaNormalizationRatio AS112SummaryV2ResponseMetaNormalization = "RATIO"` - `Units []AS112SummaryV2ResponseMetaUnit` Measurement units for the results. - `Name string` - `Value string` - `Summary0 map[string, string]` ### Example ```go 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.SummaryV2( context.TODO(), radar.AS112SummaryV2ParamsDimensionDNSSEC, radar.AS112SummaryV2Params{ }, ) if err != nil { panic(err.Error()) } fmt.Printf("%+v\n", response.Meta) } ``` #### Response ```json { "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": { "IPv4": "50.168733", "IPv6": "25.084366" } }, "success": true } ``` ## Get AS112 time series grouped by dimension `client.Radar.AS112.TimeseriesGroupsV2(ctx, dimension, query) (*AS112TimeseriesGroupsV2Response, error)` **get** `/radar/as112/timeseries_groups/{dimension}` Retrieves the distribution of AS112 queries grouped by dimension over time. ### Parameters - `dimension AS112TimeseriesGroupsV2ParamsDimension` Specifies the attribute by which to group the results. - `const AS112TimeseriesGroupsV2ParamsDimensionDNSSEC AS112TimeseriesGroupsV2ParamsDimension = "DNSSEC"` - `const AS112TimeseriesGroupsV2ParamsDimensionEdns AS112TimeseriesGroupsV2ParamsDimension = "EDNS"` - `const AS112TimeseriesGroupsV2ParamsDimensionIPVersion AS112TimeseriesGroupsV2ParamsDimension = "IP_VERSION"` - `const AS112TimeseriesGroupsV2ParamsDimensionProtocol AS112TimeseriesGroupsV2ParamsDimension = "PROTOCOL"` - `const AS112TimeseriesGroupsV2ParamsDimensionQueryType AS112TimeseriesGroupsV2ParamsDimension = "QUERY_TYPE"` - `const AS112TimeseriesGroupsV2ParamsDimensionResponseCode AS112TimeseriesGroupsV2ParamsDimension = "RESPONSE_CODE"` - `query AS112TimeseriesGroupsV2Params` - `AggInterval param.Field[AS112TimeseriesGroupsV2ParamsAggInterval]` Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). Refer to [Aggregation intervals](https://edgetunnel-b2h.pages.dev/radar/concepts/aggregation-intervals/). When omitted, the interval is auto-selected from the requested date range; finer intervals are only available for shorter ranges. If the requested interval is too granular for the date range, the request is rejected. - `const AS112TimeseriesGroupsV2ParamsAggInterval15m AS112TimeseriesGroupsV2ParamsAggInterval = "15m"` - `const AS112TimeseriesGroupsV2ParamsAggInterval1h AS112TimeseriesGroupsV2ParamsAggInterval = "1h"` - `const AS112TimeseriesGroupsV2ParamsAggInterval1d AS112TimeseriesGroupsV2ParamsAggInterval = "1d"` - `const AS112TimeseriesGroupsV2ParamsAggInterval1w AS112TimeseriesGroupsV2ParamsAggInterval = "1w"` - `Continent param.Field[[]string]` 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]` End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected. - `DateRange param.Field[[]string]` Filters results by relative date range ending at the current time, with each value producing a separate series. Use `d` for days (up to `364d`) or `w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters). - `DateStart param.Field[[]Time]` Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected. - `Format param.Field[AS112TimeseriesGroupsV2ParamsFormat]` Format in which results will be returned. - `const AS112TimeseriesGroupsV2ParamsFormatJson AS112TimeseriesGroupsV2ParamsFormat = "JSON"` - `const AS112TimeseriesGroupsV2ParamsFormatCsv AS112TimeseriesGroupsV2ParamsFormat = "CSV"` - `LimitPerGroup param.Field[int64]` 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. Only supported on high-cardinality dimensions; otherwise the request is rejected. Minimum value is 2. - `Location param.Field[[]string]` 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]` Array of names used to label the series in the response. - `Protocol param.Field[[]AS112TimeseriesGroupsV2ParamsProtocol]` Filters results by DNS transport protocol. - `const AS112TimeseriesGroupsV2ParamsProtocolUdp AS112TimeseriesGroupsV2ParamsProtocol = "UDP"` - `const AS112TimeseriesGroupsV2ParamsProtocolTCP AS112TimeseriesGroupsV2ParamsProtocol = "TCP"` - `const AS112TimeseriesGroupsV2ParamsProtocolHTTPS AS112TimeseriesGroupsV2ParamsProtocol = "HTTPS"` - `const AS112TimeseriesGroupsV2ParamsProtocolTLS AS112TimeseriesGroupsV2ParamsProtocol = "TLS"` - `QueryType param.Field[[]AS112TimeseriesGroupsV2ParamsQueryType]` Filters results by DNS query type. - `const AS112TimeseriesGroupsV2ParamsQueryTypeA AS112TimeseriesGroupsV2ParamsQueryType = "A"` - `const AS112TimeseriesGroupsV2ParamsQueryTypeAAAA AS112TimeseriesGroupsV2ParamsQueryType = "AAAA"` - `const AS112TimeseriesGroupsV2ParamsQueryTypeA6 AS112TimeseriesGroupsV2ParamsQueryType = "A6"` - `const AS112TimeseriesGroupsV2ParamsQueryTypeAfsdb AS112TimeseriesGroupsV2ParamsQueryType = "AFSDB"` - `const AS112TimeseriesGroupsV2ParamsQueryTypeAny AS112TimeseriesGroupsV2ParamsQueryType = "ANY"` - `const AS112TimeseriesGroupsV2ParamsQueryTypeApl AS112TimeseriesGroupsV2ParamsQueryType = "APL"` - `const AS112TimeseriesGroupsV2ParamsQueryTypeAtma AS112TimeseriesGroupsV2ParamsQueryType = "ATMA"` - `const AS112TimeseriesGroupsV2ParamsQueryTypeAXFR AS112TimeseriesGroupsV2ParamsQueryType = "AXFR"` - `const AS112TimeseriesGroupsV2ParamsQueryTypeCAA AS112TimeseriesGroupsV2ParamsQueryType = "CAA"` - `const AS112TimeseriesGroupsV2ParamsQueryTypeCdnskey AS112TimeseriesGroupsV2ParamsQueryType = "CDNSKEY"` - `const AS112TimeseriesGroupsV2ParamsQueryTypeCds AS112TimeseriesGroupsV2ParamsQueryType = "CDS"` - `const AS112TimeseriesGroupsV2ParamsQueryTypeCERT AS112TimeseriesGroupsV2ParamsQueryType = "CERT"` - `const AS112TimeseriesGroupsV2ParamsQueryTypeCNAME AS112TimeseriesGroupsV2ParamsQueryType = "CNAME"` - `const AS112TimeseriesGroupsV2ParamsQueryTypeCsync AS112TimeseriesGroupsV2ParamsQueryType = "CSYNC"` - `const AS112TimeseriesGroupsV2ParamsQueryTypeDhcid AS112TimeseriesGroupsV2ParamsQueryType = "DHCID"` - `const AS112TimeseriesGroupsV2ParamsQueryTypeDlv AS112TimeseriesGroupsV2ParamsQueryType = "DLV"` - `const AS112TimeseriesGroupsV2ParamsQueryTypeDname AS112TimeseriesGroupsV2ParamsQueryType = "DNAME"` - `const AS112TimeseriesGroupsV2ParamsQueryTypeDNSKEY AS112TimeseriesGroupsV2ParamsQueryType = "DNSKEY"` - `const AS112TimeseriesGroupsV2ParamsQueryTypeDoa AS112TimeseriesGroupsV2ParamsQueryType = "DOA"` - `const AS112TimeseriesGroupsV2ParamsQueryTypeDS AS112TimeseriesGroupsV2ParamsQueryType = "DS"` - `const AS112TimeseriesGroupsV2ParamsQueryTypeEid AS112TimeseriesGroupsV2ParamsQueryType = "EID"` - `const AS112TimeseriesGroupsV2ParamsQueryTypeEui48 AS112TimeseriesGroupsV2ParamsQueryType = "EUI48"` - `const AS112TimeseriesGroupsV2ParamsQueryTypeEui64 AS112TimeseriesGroupsV2ParamsQueryType = "EUI64"` - `const AS112TimeseriesGroupsV2ParamsQueryTypeGpos AS112TimeseriesGroupsV2ParamsQueryType = "GPOS"` - `const AS112TimeseriesGroupsV2ParamsQueryTypeGid AS112TimeseriesGroupsV2ParamsQueryType = "GID"` - `const AS112TimeseriesGroupsV2ParamsQueryTypeHinfo AS112TimeseriesGroupsV2ParamsQueryType = "HINFO"` - `const AS112TimeseriesGroupsV2ParamsQueryTypeHip AS112TimeseriesGroupsV2ParamsQueryType = "HIP"` - `const AS112TimeseriesGroupsV2ParamsQueryTypeHTTPS AS112TimeseriesGroupsV2ParamsQueryType = "HTTPS"` - `const AS112TimeseriesGroupsV2ParamsQueryTypeIpseckey AS112TimeseriesGroupsV2ParamsQueryType = "IPSECKEY"` - `const AS112TimeseriesGroupsV2ParamsQueryTypeIsdn AS112TimeseriesGroupsV2ParamsQueryType = "ISDN"` - `const AS112TimeseriesGroupsV2ParamsQueryTypeIxfr AS112TimeseriesGroupsV2ParamsQueryType = "IXFR"` - `const AS112TimeseriesGroupsV2ParamsQueryTypeKey AS112TimeseriesGroupsV2ParamsQueryType = "KEY"` - `const AS112TimeseriesGroupsV2ParamsQueryTypeKx AS112TimeseriesGroupsV2ParamsQueryType = "KX"` - `const AS112TimeseriesGroupsV2ParamsQueryTypeL32 AS112TimeseriesGroupsV2ParamsQueryType = "L32"` - `const AS112TimeseriesGroupsV2ParamsQueryTypeL64 AS112TimeseriesGroupsV2ParamsQueryType = "L64"` - `const AS112TimeseriesGroupsV2ParamsQueryTypeLOC AS112TimeseriesGroupsV2ParamsQueryType = "LOC"` - `const AS112TimeseriesGroupsV2ParamsQueryTypeLp AS112TimeseriesGroupsV2ParamsQueryType = "LP"` - `const AS112TimeseriesGroupsV2ParamsQueryTypeMaila AS112TimeseriesGroupsV2ParamsQueryType = "MAILA"` - `const AS112TimeseriesGroupsV2ParamsQueryTypeMailb AS112TimeseriesGroupsV2ParamsQueryType = "MAILB"` - `const AS112TimeseriesGroupsV2ParamsQueryTypeMB AS112TimeseriesGroupsV2ParamsQueryType = "MB"` - `const AS112TimeseriesGroupsV2ParamsQueryTypeMd AS112TimeseriesGroupsV2ParamsQueryType = "MD"` - `const AS112TimeseriesGroupsV2ParamsQueryTypeMf AS112TimeseriesGroupsV2ParamsQueryType = "MF"` - `const AS112TimeseriesGroupsV2ParamsQueryTypeMg AS112TimeseriesGroupsV2ParamsQueryType = "MG"` - `const AS112TimeseriesGroupsV2ParamsQueryTypeMinfo AS112TimeseriesGroupsV2ParamsQueryType = "MINFO"` - `const AS112TimeseriesGroupsV2ParamsQueryTypeMr AS112TimeseriesGroupsV2ParamsQueryType = "MR"` - `const AS112TimeseriesGroupsV2ParamsQueryTypeMX AS112TimeseriesGroupsV2ParamsQueryType = "MX"` - `const AS112TimeseriesGroupsV2ParamsQueryTypeNAPTR AS112TimeseriesGroupsV2ParamsQueryType = "NAPTR"` - `const AS112TimeseriesGroupsV2ParamsQueryTypeNb AS112TimeseriesGroupsV2ParamsQueryType = "NB"` - `const AS112TimeseriesGroupsV2ParamsQueryTypeNbstat AS112TimeseriesGroupsV2ParamsQueryType = "NBSTAT"` - `const AS112TimeseriesGroupsV2ParamsQueryTypeNid AS112TimeseriesGroupsV2ParamsQueryType = "NID"` - `const AS112TimeseriesGroupsV2ParamsQueryTypeNimloc AS112TimeseriesGroupsV2ParamsQueryType = "NIMLOC"` - `const AS112TimeseriesGroupsV2ParamsQueryTypeNinfo AS112TimeseriesGroupsV2ParamsQueryType = "NINFO"` - `const AS112TimeseriesGroupsV2ParamsQueryTypeNS AS112TimeseriesGroupsV2ParamsQueryType = "NS"` - `const AS112TimeseriesGroupsV2ParamsQueryTypeNsap AS112TimeseriesGroupsV2ParamsQueryType = "NSAP"` - `const AS112TimeseriesGroupsV2ParamsQueryTypeNsec AS112TimeseriesGroupsV2ParamsQueryType = "NSEC"` - `const AS112TimeseriesGroupsV2ParamsQueryTypeNsec3 AS112TimeseriesGroupsV2ParamsQueryType = "NSEC3"` - `const AS112TimeseriesGroupsV2ParamsQueryTypeNsec3Param AS112TimeseriesGroupsV2ParamsQueryType = "NSEC3PARAM"` - `const AS112TimeseriesGroupsV2ParamsQueryTypeNull AS112TimeseriesGroupsV2ParamsQueryType = "NULL"` - `const AS112TimeseriesGroupsV2ParamsQueryTypeNxt AS112TimeseriesGroupsV2ParamsQueryType = "NXT"` - `const AS112TimeseriesGroupsV2ParamsQueryTypeOpenpgpkey AS112TimeseriesGroupsV2ParamsQueryType = "OPENPGPKEY"` - `const AS112TimeseriesGroupsV2ParamsQueryTypeOpt AS112TimeseriesGroupsV2ParamsQueryType = "OPT"` - `const AS112TimeseriesGroupsV2ParamsQueryTypePTR AS112TimeseriesGroupsV2ParamsQueryType = "PTR"` - `const AS112TimeseriesGroupsV2ParamsQueryTypePx AS112TimeseriesGroupsV2ParamsQueryType = "PX"` - `const AS112TimeseriesGroupsV2ParamsQueryTypeRkey AS112TimeseriesGroupsV2ParamsQueryType = "RKEY"` - `const AS112TimeseriesGroupsV2ParamsQueryTypeRp AS112TimeseriesGroupsV2ParamsQueryType = "RP"` - `const AS112TimeseriesGroupsV2ParamsQueryTypeRrsig AS112TimeseriesGroupsV2ParamsQueryType = "RRSIG"` - `const AS112TimeseriesGroupsV2ParamsQueryTypeRt AS112TimeseriesGroupsV2ParamsQueryType = "RT"` - `const AS112TimeseriesGroupsV2ParamsQueryTypeSig AS112TimeseriesGroupsV2ParamsQueryType = "SIG"` - `const AS112TimeseriesGroupsV2ParamsQueryTypeSink AS112TimeseriesGroupsV2ParamsQueryType = "SINK"` - `const AS112TimeseriesGroupsV2ParamsQueryTypeSMIMEA AS112TimeseriesGroupsV2ParamsQueryType = "SMIMEA"` - `const AS112TimeseriesGroupsV2ParamsQueryTypeSOA AS112TimeseriesGroupsV2ParamsQueryType = "SOA"` - `const AS112TimeseriesGroupsV2ParamsQueryTypeSPF AS112TimeseriesGroupsV2ParamsQueryType = "SPF"` - `const AS112TimeseriesGroupsV2ParamsQueryTypeSRV AS112TimeseriesGroupsV2ParamsQueryType = "SRV"` - `const AS112TimeseriesGroupsV2ParamsQueryTypeSSHFP AS112TimeseriesGroupsV2ParamsQueryType = "SSHFP"` - `const AS112TimeseriesGroupsV2ParamsQueryTypeSVCB AS112TimeseriesGroupsV2ParamsQueryType = "SVCB"` - `const AS112TimeseriesGroupsV2ParamsQueryTypeTa AS112TimeseriesGroupsV2ParamsQueryType = "TA"` - `const AS112TimeseriesGroupsV2ParamsQueryTypeTalink AS112TimeseriesGroupsV2ParamsQueryType = "TALINK"` - `const AS112TimeseriesGroupsV2ParamsQueryTypeTkey AS112TimeseriesGroupsV2ParamsQueryType = "TKEY"` - `const AS112TimeseriesGroupsV2ParamsQueryTypeTLSA AS112TimeseriesGroupsV2ParamsQueryType = "TLSA"` - `const AS112TimeseriesGroupsV2ParamsQueryTypeTSIG AS112TimeseriesGroupsV2ParamsQueryType = "TSIG"` - `const AS112TimeseriesGroupsV2ParamsQueryTypeTXT AS112TimeseriesGroupsV2ParamsQueryType = "TXT"` - `const AS112TimeseriesGroupsV2ParamsQueryTypeUinfo AS112TimeseriesGroupsV2ParamsQueryType = "UINFO"` - `const AS112TimeseriesGroupsV2ParamsQueryTypeUID AS112TimeseriesGroupsV2ParamsQueryType = "UID"` - `const AS112TimeseriesGroupsV2ParamsQueryTypeUnspec AS112TimeseriesGroupsV2ParamsQueryType = "UNSPEC"` - `const AS112TimeseriesGroupsV2ParamsQueryTypeURI AS112TimeseriesGroupsV2ParamsQueryType = "URI"` - `const AS112TimeseriesGroupsV2ParamsQueryTypeWks AS112TimeseriesGroupsV2ParamsQueryType = "WKS"` - `const AS112TimeseriesGroupsV2ParamsQueryTypeX25 AS112TimeseriesGroupsV2ParamsQueryType = "X25"` - `const AS112TimeseriesGroupsV2ParamsQueryTypeZonemd AS112TimeseriesGroupsV2ParamsQueryType = "ZONEMD"` - `ResponseCode param.Field[[]AS112TimeseriesGroupsV2ParamsResponseCode]` Filters results by DNS response code. - `const AS112TimeseriesGroupsV2ParamsResponseCodeNoerror AS112TimeseriesGroupsV2ParamsResponseCode = "NOERROR"` - `const AS112TimeseriesGroupsV2ParamsResponseCodeFormerr AS112TimeseriesGroupsV2ParamsResponseCode = "FORMERR"` - `const AS112TimeseriesGroupsV2ParamsResponseCodeServfail AS112TimeseriesGroupsV2ParamsResponseCode = "SERVFAIL"` - `const AS112TimeseriesGroupsV2ParamsResponseCodeNxdomain AS112TimeseriesGroupsV2ParamsResponseCode = "NXDOMAIN"` - `const AS112TimeseriesGroupsV2ParamsResponseCodeNotimp AS112TimeseriesGroupsV2ParamsResponseCode = "NOTIMP"` - `const AS112TimeseriesGroupsV2ParamsResponseCodeRefused AS112TimeseriesGroupsV2ParamsResponseCode = "REFUSED"` - `const AS112TimeseriesGroupsV2ParamsResponseCodeYxdomain AS112TimeseriesGroupsV2ParamsResponseCode = "YXDOMAIN"` - `const AS112TimeseriesGroupsV2ParamsResponseCodeYxrrset AS112TimeseriesGroupsV2ParamsResponseCode = "YXRRSET"` - `const AS112TimeseriesGroupsV2ParamsResponseCodeNxrrset AS112TimeseriesGroupsV2ParamsResponseCode = "NXRRSET"` - `const AS112TimeseriesGroupsV2ParamsResponseCodeNotauth AS112TimeseriesGroupsV2ParamsResponseCode = "NOTAUTH"` - `const AS112TimeseriesGroupsV2ParamsResponseCodeNotzone AS112TimeseriesGroupsV2ParamsResponseCode = "NOTZONE"` - `const AS112TimeseriesGroupsV2ParamsResponseCodeBadsig AS112TimeseriesGroupsV2ParamsResponseCode = "BADSIG"` - `const AS112TimeseriesGroupsV2ParamsResponseCodeBadkey AS112TimeseriesGroupsV2ParamsResponseCode = "BADKEY"` - `const AS112TimeseriesGroupsV2ParamsResponseCodeBadtime AS112TimeseriesGroupsV2ParamsResponseCode = "BADTIME"` - `const AS112TimeseriesGroupsV2ParamsResponseCodeBadmode AS112TimeseriesGroupsV2ParamsResponseCode = "BADMODE"` - `const AS112TimeseriesGroupsV2ParamsResponseCodeBadname AS112TimeseriesGroupsV2ParamsResponseCode = "BADNAME"` - `const AS112TimeseriesGroupsV2ParamsResponseCodeBadalg AS112TimeseriesGroupsV2ParamsResponseCode = "BADALG"` - `const AS112TimeseriesGroupsV2ParamsResponseCodeBadtrunc AS112TimeseriesGroupsV2ParamsResponseCode = "BADTRUNC"` - `const AS112TimeseriesGroupsV2ParamsResponseCodeBadcookie AS112TimeseriesGroupsV2ParamsResponseCode = "BADCOOKIE"` ### Returns - `type AS112TimeseriesGroupsV2Response struct{…}` - `Meta AS112TimeseriesGroupsV2ResponseMeta` Metadata for the results. - `AggInterval AS112TimeseriesGroupsV2ResponseMetaAggInterval` Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). Refer to [Aggregation intervals](https://edgetunnel-b2h.pages.dev/radar/concepts/aggregation-intervals/). - `const AS112TimeseriesGroupsV2ResponseMetaAggIntervalFifteenMinutes AS112TimeseriesGroupsV2ResponseMetaAggInterval = "FIFTEEN_MINUTES"` - `const AS112TimeseriesGroupsV2ResponseMetaAggIntervalOneHour AS112TimeseriesGroupsV2ResponseMetaAggInterval = "ONE_HOUR"` - `const AS112TimeseriesGroupsV2ResponseMetaAggIntervalOneDay AS112TimeseriesGroupsV2ResponseMetaAggInterval = "ONE_DAY"` - `const AS112TimeseriesGroupsV2ResponseMetaAggIntervalOneWeek AS112TimeseriesGroupsV2ResponseMetaAggInterval = "ONE_WEEK"` - `const AS112TimeseriesGroupsV2ResponseMetaAggIntervalOneMonth AS112TimeseriesGroupsV2ResponseMetaAggInterval = "ONE_MONTH"` - `ConfidenceInfo AS112TimeseriesGroupsV2ResponseMetaConfidenceInfo` - `Annotations []AS112TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotation` - `DataSource AS112TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotationsDataSource` Data source for annotations. - `const AS112TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotationsDataSourceAll AS112TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotationsDataSource = "ALL"` - `const AS112TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotationsDataSourceAIBots AS112TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotationsDataSource = "AI_BOTS"` - `const AS112TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotationsDataSourceAIGateway AS112TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotationsDataSource = "AI_GATEWAY"` - `const AS112TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotationsDataSourceBGP AS112TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotationsDataSource = "BGP"` - `const AS112TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotationsDataSourceBots AS112TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotationsDataSource = "BOTS"` - `const AS112TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotationsDataSourceConnectionAnomaly AS112TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotationsDataSource = "CONNECTION_ANOMALY"` - `const AS112TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotationsDataSourceCT AS112TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotationsDataSource = "CT"` - `const AS112TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotationsDataSourceDNS AS112TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotationsDataSource = "DNS"` - `const AS112TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotationsDataSourceDNSMagnitude AS112TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotationsDataSource = "DNS_MAGNITUDE"` - `const AS112TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotationsDataSourceDNSAS112 AS112TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotationsDataSource = "DNS_AS112"` - `const AS112TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotationsDataSourceDos AS112TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotationsDataSource = "DOS"` - `const AS112TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotationsDataSourceEmailRouting AS112TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotationsDataSource = "EMAIL_ROUTING"` - `const AS112TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotationsDataSourceEmailSecurity AS112TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotationsDataSource = "EMAIL_SECURITY"` - `const AS112TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotationsDataSourceFw AS112TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotationsDataSource = "FW"` - `const AS112TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotationsDataSourceFwPg AS112TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotationsDataSource = "FW_PG"` - `const AS112TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotationsDataSourceHTTP AS112TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotationsDataSource = "HTTP"` - `const AS112TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotationsDataSourceHTTPControl AS112TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotationsDataSource = "HTTP_CONTROL"` - `const AS112TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotationsDataSourceHTTPCrawlerReferer AS112TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotationsDataSource = "HTTP_CRAWLER_REFERER"` - `const AS112TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotationsDataSourceHTTPOrigins AS112TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotationsDataSource = "HTTP_ORIGINS"` - `const AS112TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotationsDataSourceIQI AS112TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotationsDataSource = "IQI"` - `const AS112TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotationsDataSourceLeakedCredentials AS112TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotationsDataSource = "LEAKED_CREDENTIALS"` - `const AS112TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotationsDataSourceNet AS112TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotationsDataSource = "NET"` - `const AS112TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotationsDataSourceRobotsTXT AS112TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotationsDataSource = "ROBOTS_TXT"` - `const AS112TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotationsDataSourceSpeed AS112TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotationsDataSource = "SPEED"` - `const AS112TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotationsDataSourceWorkersAI AS112TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotationsDataSource = "WORKERS_AI"` - `Description string` - `EndDate Time` - `EventType AS112TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotationsEventType` Event type for annotations. - `const AS112TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotationsEventTypeEvent AS112TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotationsEventType = "EVENT"` - `const AS112TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotationsEventTypeGeneral AS112TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotationsEventType = "GENERAL"` - `const AS112TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotationsEventTypeOutage AS112TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotationsEventType = "OUTAGE"` - `const AS112TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotationsEventTypePartialProjection AS112TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotationsEventType = "PARTIAL_PROJECTION"` - `const AS112TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotationsEventTypePipeline AS112TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotationsEventType = "PIPELINE"` - `const AS112TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotationsEventTypeTrafficAnomaly AS112TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotationsEventType = "TRAFFIC_ANOMALY"` - `IsInstantaneous bool` Whether event is a single point in time or a time range. - `LinkedURL string` - `StartDate Time` - `Tags []string` - `Level int64` Provides an indication of how much confidence Cloudflare has in the data. - `DateRange []AS112TimeseriesGroupsV2ResponseMetaDateRange` - `EndTime Time` Adjusted end of date range. - `StartTime Time` Adjusted start of date range. - `LastUpdated Time` Timestamp of the last dataset update. - `Normalization AS112TimeseriesGroupsV2ResponseMetaNormalization` Normalization method applied to the results. Refer to [Normalization methods](https://edgetunnel-b2h.pages.dev/radar/concepts/normalization/). - `const AS112TimeseriesGroupsV2ResponseMetaNormalizationPercentage AS112TimeseriesGroupsV2ResponseMetaNormalization = "PERCENTAGE"` - `const AS112TimeseriesGroupsV2ResponseMetaNormalizationMin0Max AS112TimeseriesGroupsV2ResponseMetaNormalization = "MIN0_MAX"` - `const AS112TimeseriesGroupsV2ResponseMetaNormalizationMinMax AS112TimeseriesGroupsV2ResponseMetaNormalization = "MIN_MAX"` - `const AS112TimeseriesGroupsV2ResponseMetaNormalizationRawValues AS112TimeseriesGroupsV2ResponseMetaNormalization = "RAW_VALUES"` - `const AS112TimeseriesGroupsV2ResponseMetaNormalizationPercentageChange AS112TimeseriesGroupsV2ResponseMetaNormalization = "PERCENTAGE_CHANGE"` - `const AS112TimeseriesGroupsV2ResponseMetaNormalizationRollingAverage AS112TimeseriesGroupsV2ResponseMetaNormalization = "ROLLING_AVERAGE"` - `const AS112TimeseriesGroupsV2ResponseMetaNormalizationOverlappedPercentage AS112TimeseriesGroupsV2ResponseMetaNormalization = "OVERLAPPED_PERCENTAGE"` - `const AS112TimeseriesGroupsV2ResponseMetaNormalizationRatio AS112TimeseriesGroupsV2ResponseMetaNormalization = "RATIO"` - `Units []AS112TimeseriesGroupsV2ResponseMetaUnit` Measurement units for the results. - `Name string` - `Value string` - `Serie0 AS112TimeseriesGroupsV2ResponseSerie0` - `Timestamps []Time` ### Example ```go 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.TimeseriesGroupsV2( context.TODO(), radar.AS112TimeseriesGroupsV2ParamsDimensionDNSSEC, radar.AS112TimeseriesGroupsV2Params{ }, ) if err != nil { panic(err.Error()) } fmt.Printf("%+v\n", response.Meta) } ``` #### Response ```json { "result": { "meta": { "aggInterval": "FIFTEEN_MINUTES", "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" } ] }, "serie_0": { "timestamps": [ "2023-08-08T10:15:00Z" ] } }, "success": true } ``` # Summary ## Get AS112 DNS queries by DNSSEC summary `client.Radar.AS112.Summary.DNSSEC(ctx, query) (*AS112SummaryDNSSECResponse, error)` **get** `/radar/as112/summary/dnssec` Retrieves the distribution of DNS queries to AS112 by DNSSEC (DNS Security Extensions) support. ### Parameters - `query AS112SummaryDNSSECParams` - `Continent param.Field[[]string]` 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]` End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected. - `DateRange param.Field[[]string]` Filters results by relative date range ending at the current time, with each value producing a separate series. Use `d` for days (up to `364d`) or `w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters). - `DateStart param.Field[[]Time]` Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected. - `Format param.Field[AS112SummaryDNSSECParamsFormat]` Format in which results will be returned. - `const AS112SummaryDNSSECParamsFormatJson AS112SummaryDNSSECParamsFormat = "JSON"` - `const AS112SummaryDNSSECParamsFormatCsv AS112SummaryDNSSECParamsFormat = "CSV"` - `Location param.Field[[]string]` 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]` Array of names used to label the series in the response. - `Protocol param.Field[[]AS112SummaryDNSSECParamsProtocol]` Filters results by DNS transport protocol. - `const AS112SummaryDNSSECParamsProtocolUdp AS112SummaryDNSSECParamsProtocol = "UDP"` - `const AS112SummaryDNSSECParamsProtocolTCP AS112SummaryDNSSECParamsProtocol = "TCP"` - `const AS112SummaryDNSSECParamsProtocolHTTPS AS112SummaryDNSSECParamsProtocol = "HTTPS"` - `const AS112SummaryDNSSECParamsProtocolTLS AS112SummaryDNSSECParamsProtocol = "TLS"` - `QueryType param.Field[[]AS112SummaryDNSSECParamsQueryType]` Filters results by DNS query type. - `const AS112SummaryDNSSECParamsQueryTypeA AS112SummaryDNSSECParamsQueryType = "A"` - `const AS112SummaryDNSSECParamsQueryTypeAAAA AS112SummaryDNSSECParamsQueryType = "AAAA"` - `const AS112SummaryDNSSECParamsQueryTypeA6 AS112SummaryDNSSECParamsQueryType = "A6"` - `const AS112SummaryDNSSECParamsQueryTypeAfsdb AS112SummaryDNSSECParamsQueryType = "AFSDB"` - `const AS112SummaryDNSSECParamsQueryTypeAny AS112SummaryDNSSECParamsQueryType = "ANY"` - `const AS112SummaryDNSSECParamsQueryTypeApl AS112SummaryDNSSECParamsQueryType = "APL"` - `const AS112SummaryDNSSECParamsQueryTypeAtma AS112SummaryDNSSECParamsQueryType = "ATMA"` - `const AS112SummaryDNSSECParamsQueryTypeAXFR AS112SummaryDNSSECParamsQueryType = "AXFR"` - `const AS112SummaryDNSSECParamsQueryTypeCAA AS112SummaryDNSSECParamsQueryType = "CAA"` - `const AS112SummaryDNSSECParamsQueryTypeCdnskey AS112SummaryDNSSECParamsQueryType = "CDNSKEY"` - `const AS112SummaryDNSSECParamsQueryTypeCds AS112SummaryDNSSECParamsQueryType = "CDS"` - `const AS112SummaryDNSSECParamsQueryTypeCERT AS112SummaryDNSSECParamsQueryType = "CERT"` - `const AS112SummaryDNSSECParamsQueryTypeCNAME AS112SummaryDNSSECParamsQueryType = "CNAME"` - `const AS112SummaryDNSSECParamsQueryTypeCsync AS112SummaryDNSSECParamsQueryType = "CSYNC"` - `const AS112SummaryDNSSECParamsQueryTypeDhcid AS112SummaryDNSSECParamsQueryType = "DHCID"` - `const AS112SummaryDNSSECParamsQueryTypeDlv AS112SummaryDNSSECParamsQueryType = "DLV"` - `const AS112SummaryDNSSECParamsQueryTypeDname AS112SummaryDNSSECParamsQueryType = "DNAME"` - `const AS112SummaryDNSSECParamsQueryTypeDNSKEY AS112SummaryDNSSECParamsQueryType = "DNSKEY"` - `const AS112SummaryDNSSECParamsQueryTypeDoa AS112SummaryDNSSECParamsQueryType = "DOA"` - `const AS112SummaryDNSSECParamsQueryTypeDS AS112SummaryDNSSECParamsQueryType = "DS"` - `const AS112SummaryDNSSECParamsQueryTypeEid AS112SummaryDNSSECParamsQueryType = "EID"` - `const AS112SummaryDNSSECParamsQueryTypeEui48 AS112SummaryDNSSECParamsQueryType = "EUI48"` - `const AS112SummaryDNSSECParamsQueryTypeEui64 AS112SummaryDNSSECParamsQueryType = "EUI64"` - `const AS112SummaryDNSSECParamsQueryTypeGpos AS112SummaryDNSSECParamsQueryType = "GPOS"` - `const AS112SummaryDNSSECParamsQueryTypeGid AS112SummaryDNSSECParamsQueryType = "GID"` - `const AS112SummaryDNSSECParamsQueryTypeHinfo AS112SummaryDNSSECParamsQueryType = "HINFO"` - `const AS112SummaryDNSSECParamsQueryTypeHip AS112SummaryDNSSECParamsQueryType = "HIP"` - `const AS112SummaryDNSSECParamsQueryTypeHTTPS AS112SummaryDNSSECParamsQueryType = "HTTPS"` - `const AS112SummaryDNSSECParamsQueryTypeIpseckey AS112SummaryDNSSECParamsQueryType = "IPSECKEY"` - `const AS112SummaryDNSSECParamsQueryTypeIsdn AS112SummaryDNSSECParamsQueryType = "ISDN"` - `const AS112SummaryDNSSECParamsQueryTypeIxfr AS112SummaryDNSSECParamsQueryType = "IXFR"` - `const AS112SummaryDNSSECParamsQueryTypeKey AS112SummaryDNSSECParamsQueryType = "KEY"` - `const AS112SummaryDNSSECParamsQueryTypeKx AS112SummaryDNSSECParamsQueryType = "KX"` - `const AS112SummaryDNSSECParamsQueryTypeL32 AS112SummaryDNSSECParamsQueryType = "L32"` - `const AS112SummaryDNSSECParamsQueryTypeL64 AS112SummaryDNSSECParamsQueryType = "L64"` - `const AS112SummaryDNSSECParamsQueryTypeLOC AS112SummaryDNSSECParamsQueryType = "LOC"` - `const AS112SummaryDNSSECParamsQueryTypeLp AS112SummaryDNSSECParamsQueryType = "LP"` - `const AS112SummaryDNSSECParamsQueryTypeMaila AS112SummaryDNSSECParamsQueryType = "MAILA"` - `const AS112SummaryDNSSECParamsQueryTypeMailb AS112SummaryDNSSECParamsQueryType = "MAILB"` - `const AS112SummaryDNSSECParamsQueryTypeMB AS112SummaryDNSSECParamsQueryType = "MB"` - `const AS112SummaryDNSSECParamsQueryTypeMd AS112SummaryDNSSECParamsQueryType = "MD"` - `const AS112SummaryDNSSECParamsQueryTypeMf AS112SummaryDNSSECParamsQueryType = "MF"` - `const AS112SummaryDNSSECParamsQueryTypeMg AS112SummaryDNSSECParamsQueryType = "MG"` - `const AS112SummaryDNSSECParamsQueryTypeMinfo AS112SummaryDNSSECParamsQueryType = "MINFO"` - `const AS112SummaryDNSSECParamsQueryTypeMr AS112SummaryDNSSECParamsQueryType = "MR"` - `const AS112SummaryDNSSECParamsQueryTypeMX AS112SummaryDNSSECParamsQueryType = "MX"` - `const AS112SummaryDNSSECParamsQueryTypeNAPTR AS112SummaryDNSSECParamsQueryType = "NAPTR"` - `const AS112SummaryDNSSECParamsQueryTypeNb AS112SummaryDNSSECParamsQueryType = "NB"` - `const AS112SummaryDNSSECParamsQueryTypeNbstat AS112SummaryDNSSECParamsQueryType = "NBSTAT"` - `const AS112SummaryDNSSECParamsQueryTypeNid AS112SummaryDNSSECParamsQueryType = "NID"` - `const AS112SummaryDNSSECParamsQueryTypeNimloc AS112SummaryDNSSECParamsQueryType = "NIMLOC"` - `const AS112SummaryDNSSECParamsQueryTypeNinfo AS112SummaryDNSSECParamsQueryType = "NINFO"` - `const AS112SummaryDNSSECParamsQueryTypeNS AS112SummaryDNSSECParamsQueryType = "NS"` - `const AS112SummaryDNSSECParamsQueryTypeNsap AS112SummaryDNSSECParamsQueryType = "NSAP"` - `const AS112SummaryDNSSECParamsQueryTypeNsec AS112SummaryDNSSECParamsQueryType = "NSEC"` - `const AS112SummaryDNSSECParamsQueryTypeNsec3 AS112SummaryDNSSECParamsQueryType = "NSEC3"` - `const AS112SummaryDNSSECParamsQueryTypeNsec3Param AS112SummaryDNSSECParamsQueryType = "NSEC3PARAM"` - `const AS112SummaryDNSSECParamsQueryTypeNull AS112SummaryDNSSECParamsQueryType = "NULL"` - `const AS112SummaryDNSSECParamsQueryTypeNxt AS112SummaryDNSSECParamsQueryType = "NXT"` - `const AS112SummaryDNSSECParamsQueryTypeOpenpgpkey AS112SummaryDNSSECParamsQueryType = "OPENPGPKEY"` - `const AS112SummaryDNSSECParamsQueryTypeOpt AS112SummaryDNSSECParamsQueryType = "OPT"` - `const AS112SummaryDNSSECParamsQueryTypePTR AS112SummaryDNSSECParamsQueryType = "PTR"` - `const AS112SummaryDNSSECParamsQueryTypePx AS112SummaryDNSSECParamsQueryType = "PX"` - `const AS112SummaryDNSSECParamsQueryTypeRkey AS112SummaryDNSSECParamsQueryType = "RKEY"` - `const AS112SummaryDNSSECParamsQueryTypeRp AS112SummaryDNSSECParamsQueryType = "RP"` - `const AS112SummaryDNSSECParamsQueryTypeRrsig AS112SummaryDNSSECParamsQueryType = "RRSIG"` - `const AS112SummaryDNSSECParamsQueryTypeRt AS112SummaryDNSSECParamsQueryType = "RT"` - `const AS112SummaryDNSSECParamsQueryTypeSig AS112SummaryDNSSECParamsQueryType = "SIG"` - `const AS112SummaryDNSSECParamsQueryTypeSink AS112SummaryDNSSECParamsQueryType = "SINK"` - `const AS112SummaryDNSSECParamsQueryTypeSMIMEA AS112SummaryDNSSECParamsQueryType = "SMIMEA"` - `const AS112SummaryDNSSECParamsQueryTypeSOA AS112SummaryDNSSECParamsQueryType = "SOA"` - `const AS112SummaryDNSSECParamsQueryTypeSPF AS112SummaryDNSSECParamsQueryType = "SPF"` - `const AS112SummaryDNSSECParamsQueryTypeSRV AS112SummaryDNSSECParamsQueryType = "SRV"` - `const AS112SummaryDNSSECParamsQueryTypeSSHFP AS112SummaryDNSSECParamsQueryType = "SSHFP"` - `const AS112SummaryDNSSECParamsQueryTypeSVCB AS112SummaryDNSSECParamsQueryType = "SVCB"` - `const AS112SummaryDNSSECParamsQueryTypeTa AS112SummaryDNSSECParamsQueryType = "TA"` - `const AS112SummaryDNSSECParamsQueryTypeTalink AS112SummaryDNSSECParamsQueryType = "TALINK"` - `const AS112SummaryDNSSECParamsQueryTypeTkey AS112SummaryDNSSECParamsQueryType = "TKEY"` - `const AS112SummaryDNSSECParamsQueryTypeTLSA AS112SummaryDNSSECParamsQueryType = "TLSA"` - `const AS112SummaryDNSSECParamsQueryTypeTSIG AS112SummaryDNSSECParamsQueryType = "TSIG"` - `const AS112SummaryDNSSECParamsQueryTypeTXT AS112SummaryDNSSECParamsQueryType = "TXT"` - `const AS112SummaryDNSSECParamsQueryTypeUinfo AS112SummaryDNSSECParamsQueryType = "UINFO"` - `const AS112SummaryDNSSECParamsQueryTypeUID AS112SummaryDNSSECParamsQueryType = "UID"` - `const AS112SummaryDNSSECParamsQueryTypeUnspec AS112SummaryDNSSECParamsQueryType = "UNSPEC"` - `const AS112SummaryDNSSECParamsQueryTypeURI AS112SummaryDNSSECParamsQueryType = "URI"` - `const AS112SummaryDNSSECParamsQueryTypeWks AS112SummaryDNSSECParamsQueryType = "WKS"` - `const AS112SummaryDNSSECParamsQueryTypeX25 AS112SummaryDNSSECParamsQueryType = "X25"` - `const AS112SummaryDNSSECParamsQueryTypeZonemd AS112SummaryDNSSECParamsQueryType = "ZONEMD"` - `ResponseCode param.Field[[]AS112SummaryDNSSECParamsResponseCode]` Filters results by DNS response code. - `const AS112SummaryDNSSECParamsResponseCodeNoerror AS112SummaryDNSSECParamsResponseCode = "NOERROR"` - `const AS112SummaryDNSSECParamsResponseCodeFormerr AS112SummaryDNSSECParamsResponseCode = "FORMERR"` - `const AS112SummaryDNSSECParamsResponseCodeServfail AS112SummaryDNSSECParamsResponseCode = "SERVFAIL"` - `const AS112SummaryDNSSECParamsResponseCodeNxdomain AS112SummaryDNSSECParamsResponseCode = "NXDOMAIN"` - `const AS112SummaryDNSSECParamsResponseCodeNotimp AS112SummaryDNSSECParamsResponseCode = "NOTIMP"` - `const AS112SummaryDNSSECParamsResponseCodeRefused AS112SummaryDNSSECParamsResponseCode = "REFUSED"` - `const AS112SummaryDNSSECParamsResponseCodeYxdomain AS112SummaryDNSSECParamsResponseCode = "YXDOMAIN"` - `const AS112SummaryDNSSECParamsResponseCodeYxrrset AS112SummaryDNSSECParamsResponseCode = "YXRRSET"` - `const AS112SummaryDNSSECParamsResponseCodeNxrrset AS112SummaryDNSSECParamsResponseCode = "NXRRSET"` - `const AS112SummaryDNSSECParamsResponseCodeNotauth AS112SummaryDNSSECParamsResponseCode = "NOTAUTH"` - `const AS112SummaryDNSSECParamsResponseCodeNotzone AS112SummaryDNSSECParamsResponseCode = "NOTZONE"` - `const AS112SummaryDNSSECParamsResponseCodeBadsig AS112SummaryDNSSECParamsResponseCode = "BADSIG"` - `const AS112SummaryDNSSECParamsResponseCodeBadkey AS112SummaryDNSSECParamsResponseCode = "BADKEY"` - `const AS112SummaryDNSSECParamsResponseCodeBadtime AS112SummaryDNSSECParamsResponseCode = "BADTIME"` - `const AS112SummaryDNSSECParamsResponseCodeBadmode AS112SummaryDNSSECParamsResponseCode = "BADMODE"` - `const AS112SummaryDNSSECParamsResponseCodeBadname AS112SummaryDNSSECParamsResponseCode = "BADNAME"` - `const AS112SummaryDNSSECParamsResponseCodeBadalg AS112SummaryDNSSECParamsResponseCode = "BADALG"` - `const AS112SummaryDNSSECParamsResponseCodeBadtrunc AS112SummaryDNSSECParamsResponseCode = "BADTRUNC"` - `const AS112SummaryDNSSECParamsResponseCodeBadcookie AS112SummaryDNSSECParamsResponseCode = "BADCOOKIE"` ### Returns - `type AS112SummaryDNSSECResponse struct{…}` - `Meta AS112SummaryDNSSECResponseMeta` Metadata for the results. - `ConfidenceInfo AS112SummaryDNSSECResponseMetaConfidenceInfo` - `Annotations []AS112SummaryDNSSECResponseMetaConfidenceInfoAnnotation` - `DataSource AS112SummaryDNSSECResponseMetaConfidenceInfoAnnotationsDataSource` Data source for annotations. - `const AS112SummaryDNSSECResponseMetaConfidenceInfoAnnotationsDataSourceAll AS112SummaryDNSSECResponseMetaConfidenceInfoAnnotationsDataSource = "ALL"` - `const AS112SummaryDNSSECResponseMetaConfidenceInfoAnnotationsDataSourceAIBots AS112SummaryDNSSECResponseMetaConfidenceInfoAnnotationsDataSource = "AI_BOTS"` - `const AS112SummaryDNSSECResponseMetaConfidenceInfoAnnotationsDataSourceAIGateway AS112SummaryDNSSECResponseMetaConfidenceInfoAnnotationsDataSource = "AI_GATEWAY"` - `const AS112SummaryDNSSECResponseMetaConfidenceInfoAnnotationsDataSourceBGP AS112SummaryDNSSECResponseMetaConfidenceInfoAnnotationsDataSource = "BGP"` - `const AS112SummaryDNSSECResponseMetaConfidenceInfoAnnotationsDataSourceBots AS112SummaryDNSSECResponseMetaConfidenceInfoAnnotationsDataSource = "BOTS"` - `const AS112SummaryDNSSECResponseMetaConfidenceInfoAnnotationsDataSourceConnectionAnomaly AS112SummaryDNSSECResponseMetaConfidenceInfoAnnotationsDataSource = "CONNECTION_ANOMALY"` - `const AS112SummaryDNSSECResponseMetaConfidenceInfoAnnotationsDataSourceCT AS112SummaryDNSSECResponseMetaConfidenceInfoAnnotationsDataSource = "CT"` - `const AS112SummaryDNSSECResponseMetaConfidenceInfoAnnotationsDataSourceDNS AS112SummaryDNSSECResponseMetaConfidenceInfoAnnotationsDataSource = "DNS"` - `const AS112SummaryDNSSECResponseMetaConfidenceInfoAnnotationsDataSourceDNSMagnitude AS112SummaryDNSSECResponseMetaConfidenceInfoAnnotationsDataSource = "DNS_MAGNITUDE"` - `const AS112SummaryDNSSECResponseMetaConfidenceInfoAnnotationsDataSourceDNSAS112 AS112SummaryDNSSECResponseMetaConfidenceInfoAnnotationsDataSource = "DNS_AS112"` - `const AS112SummaryDNSSECResponseMetaConfidenceInfoAnnotationsDataSourceDos AS112SummaryDNSSECResponseMetaConfidenceInfoAnnotationsDataSource = "DOS"` - `const AS112SummaryDNSSECResponseMetaConfidenceInfoAnnotationsDataSourceEmailRouting AS112SummaryDNSSECResponseMetaConfidenceInfoAnnotationsDataSource = "EMAIL_ROUTING"` - `const AS112SummaryDNSSECResponseMetaConfidenceInfoAnnotationsDataSourceEmailSecurity AS112SummaryDNSSECResponseMetaConfidenceInfoAnnotationsDataSource = "EMAIL_SECURITY"` - `const AS112SummaryDNSSECResponseMetaConfidenceInfoAnnotationsDataSourceFw AS112SummaryDNSSECResponseMetaConfidenceInfoAnnotationsDataSource = "FW"` - `const AS112SummaryDNSSECResponseMetaConfidenceInfoAnnotationsDataSourceFwPg AS112SummaryDNSSECResponseMetaConfidenceInfoAnnotationsDataSource = "FW_PG"` - `const AS112SummaryDNSSECResponseMetaConfidenceInfoAnnotationsDataSourceHTTP AS112SummaryDNSSECResponseMetaConfidenceInfoAnnotationsDataSource = "HTTP"` - `const AS112SummaryDNSSECResponseMetaConfidenceInfoAnnotationsDataSourceHTTPControl AS112SummaryDNSSECResponseMetaConfidenceInfoAnnotationsDataSource = "HTTP_CONTROL"` - `const AS112SummaryDNSSECResponseMetaConfidenceInfoAnnotationsDataSourceHTTPCrawlerReferer AS112SummaryDNSSECResponseMetaConfidenceInfoAnnotationsDataSource = "HTTP_CRAWLER_REFERER"` - `const AS112SummaryDNSSECResponseMetaConfidenceInfoAnnotationsDataSourceHTTPOrigins AS112SummaryDNSSECResponseMetaConfidenceInfoAnnotationsDataSource = "HTTP_ORIGINS"` - `const AS112SummaryDNSSECResponseMetaConfidenceInfoAnnotationsDataSourceIQI AS112SummaryDNSSECResponseMetaConfidenceInfoAnnotationsDataSource = "IQI"` - `const AS112SummaryDNSSECResponseMetaConfidenceInfoAnnotationsDataSourceLeakedCredentials AS112SummaryDNSSECResponseMetaConfidenceInfoAnnotationsDataSource = "LEAKED_CREDENTIALS"` - `const AS112SummaryDNSSECResponseMetaConfidenceInfoAnnotationsDataSourceNet AS112SummaryDNSSECResponseMetaConfidenceInfoAnnotationsDataSource = "NET"` - `const AS112SummaryDNSSECResponseMetaConfidenceInfoAnnotationsDataSourceRobotsTXT AS112SummaryDNSSECResponseMetaConfidenceInfoAnnotationsDataSource = "ROBOTS_TXT"` - `const AS112SummaryDNSSECResponseMetaConfidenceInfoAnnotationsDataSourceSpeed AS112SummaryDNSSECResponseMetaConfidenceInfoAnnotationsDataSource = "SPEED"` - `const AS112SummaryDNSSECResponseMetaConfidenceInfoAnnotationsDataSourceWorkersAI AS112SummaryDNSSECResponseMetaConfidenceInfoAnnotationsDataSource = "WORKERS_AI"` - `Description string` - `EndDate Time` - `EventType AS112SummaryDNSSECResponseMetaConfidenceInfoAnnotationsEventType` Event type for annotations. - `const AS112SummaryDNSSECResponseMetaConfidenceInfoAnnotationsEventTypeEvent AS112SummaryDNSSECResponseMetaConfidenceInfoAnnotationsEventType = "EVENT"` - `const AS112SummaryDNSSECResponseMetaConfidenceInfoAnnotationsEventTypeGeneral AS112SummaryDNSSECResponseMetaConfidenceInfoAnnotationsEventType = "GENERAL"` - `const AS112SummaryDNSSECResponseMetaConfidenceInfoAnnotationsEventTypeOutage AS112SummaryDNSSECResponseMetaConfidenceInfoAnnotationsEventType = "OUTAGE"` - `const AS112SummaryDNSSECResponseMetaConfidenceInfoAnnotationsEventTypePartialProjection AS112SummaryDNSSECResponseMetaConfidenceInfoAnnotationsEventType = "PARTIAL_PROJECTION"` - `const AS112SummaryDNSSECResponseMetaConfidenceInfoAnnotationsEventTypePipeline AS112SummaryDNSSECResponseMetaConfidenceInfoAnnotationsEventType = "PIPELINE"` - `const AS112SummaryDNSSECResponseMetaConfidenceInfoAnnotationsEventTypeTrafficAnomaly AS112SummaryDNSSECResponseMetaConfidenceInfoAnnotationsEventType = "TRAFFIC_ANOMALY"` - `IsInstantaneous bool` Whether event is a single point in time or a time range. - `LinkedURL string` - `StartDate Time` - `Tags []string` - `Level int64` Provides an indication of how much confidence Cloudflare has in the data. - `DateRange []AS112SummaryDNSSECResponseMetaDateRange` - `EndTime Time` Adjusted end of date range. - `StartTime Time` Adjusted start of date range. - `LastUpdated Time` Timestamp of the last dataset update. - `Normalization AS112SummaryDNSSECResponseMetaNormalization` Normalization method applied to the results. Refer to [Normalization methods](https://edgetunnel-b2h.pages.dev/radar/concepts/normalization/). - `const AS112SummaryDNSSECResponseMetaNormalizationPercentage AS112SummaryDNSSECResponseMetaNormalization = "PERCENTAGE"` - `const AS112SummaryDNSSECResponseMetaNormalizationMin0Max AS112SummaryDNSSECResponseMetaNormalization = "MIN0_MAX"` - `const AS112SummaryDNSSECResponseMetaNormalizationMinMax AS112SummaryDNSSECResponseMetaNormalization = "MIN_MAX"` - `const AS112SummaryDNSSECResponseMetaNormalizationRawValues AS112SummaryDNSSECResponseMetaNormalization = "RAW_VALUES"` - `const AS112SummaryDNSSECResponseMetaNormalizationPercentageChange AS112SummaryDNSSECResponseMetaNormalization = "PERCENTAGE_CHANGE"` - `const AS112SummaryDNSSECResponseMetaNormalizationRollingAverage AS112SummaryDNSSECResponseMetaNormalization = "ROLLING_AVERAGE"` - `const AS112SummaryDNSSECResponseMetaNormalizationOverlappedPercentage AS112SummaryDNSSECResponseMetaNormalization = "OVERLAPPED_PERCENTAGE"` - `const AS112SummaryDNSSECResponseMetaNormalizationRatio AS112SummaryDNSSECResponseMetaNormalization = "RATIO"` - `Units []AS112SummaryDNSSECResponseMetaUnit` Measurement units for the results. - `Name string` - `Value string` - `Summary0 AS112SummaryDNSSECResponseSummary0` - `NotSupported string` A numeric string. - `Supported string` A numeric string. ### Example ```go 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.DNSSEC(context.TODO(), radar.AS112SummaryDNSSECParams{ }) if err != nil { panic(err.Error()) } fmt.Printf("%+v\n", response.Meta) } ``` #### Response ```json { "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": { "NOT_SUPPORTED": "10", "SUPPORTED": "10" } }, "success": true } ``` ## Get AS112 DNS queries by EDNS summary `client.Radar.AS112.Summary.Edns(ctx, query) (*AS112SummaryEdnsResponse, error)` **get** `/radar/as112/summary/edns` Retrieves the distribution of DNS queries to AS112 by EDNS (Extension Mechanisms for DNS) support. ### Parameters - `query AS112SummaryEdnsParams` - `Continent param.Field[[]string]` 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]` End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected. - `DateRange param.Field[[]string]` Filters results by relative date range ending at the current time, with each value producing a separate series. Use `d` for days (up to `364d`) or `w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters). - `DateStart param.Field[[]Time]` Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected. - `Format param.Field[AS112SummaryEdnsParamsFormat]` Format in which results will be returned. - `const AS112SummaryEdnsParamsFormatJson AS112SummaryEdnsParamsFormat = "JSON"` - `const AS112SummaryEdnsParamsFormatCsv AS112SummaryEdnsParamsFormat = "CSV"` - `Location param.Field[[]string]` 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]` Array of names used to label the series in the response. - `Protocol param.Field[[]AS112SummaryEdnsParamsProtocol]` Filters results by DNS transport protocol. - `const AS112SummaryEdnsParamsProtocolUdp AS112SummaryEdnsParamsProtocol = "UDP"` - `const AS112SummaryEdnsParamsProtocolTCP AS112SummaryEdnsParamsProtocol = "TCP"` - `const AS112SummaryEdnsParamsProtocolHTTPS AS112SummaryEdnsParamsProtocol = "HTTPS"` - `const AS112SummaryEdnsParamsProtocolTLS AS112SummaryEdnsParamsProtocol = "TLS"` - `QueryType param.Field[[]AS112SummaryEdnsParamsQueryType]` Filters results by DNS query type. - `const AS112SummaryEdnsParamsQueryTypeA AS112SummaryEdnsParamsQueryType = "A"` - `const AS112SummaryEdnsParamsQueryTypeAAAA AS112SummaryEdnsParamsQueryType = "AAAA"` - `const AS112SummaryEdnsParamsQueryTypeA6 AS112SummaryEdnsParamsQueryType = "A6"` - `const AS112SummaryEdnsParamsQueryTypeAfsdb AS112SummaryEdnsParamsQueryType = "AFSDB"` - `const AS112SummaryEdnsParamsQueryTypeAny AS112SummaryEdnsParamsQueryType = "ANY"` - `const AS112SummaryEdnsParamsQueryTypeApl AS112SummaryEdnsParamsQueryType = "APL"` - `const AS112SummaryEdnsParamsQueryTypeAtma AS112SummaryEdnsParamsQueryType = "ATMA"` - `const AS112SummaryEdnsParamsQueryTypeAXFR AS112SummaryEdnsParamsQueryType = "AXFR"` - `const AS112SummaryEdnsParamsQueryTypeCAA AS112SummaryEdnsParamsQueryType = "CAA"` - `const AS112SummaryEdnsParamsQueryTypeCdnskey AS112SummaryEdnsParamsQueryType = "CDNSKEY"` - `const AS112SummaryEdnsParamsQueryTypeCds AS112SummaryEdnsParamsQueryType = "CDS"` - `const AS112SummaryEdnsParamsQueryTypeCERT AS112SummaryEdnsParamsQueryType = "CERT"` - `const AS112SummaryEdnsParamsQueryTypeCNAME AS112SummaryEdnsParamsQueryType = "CNAME"` - `const AS112SummaryEdnsParamsQueryTypeCsync AS112SummaryEdnsParamsQueryType = "CSYNC"` - `const AS112SummaryEdnsParamsQueryTypeDhcid AS112SummaryEdnsParamsQueryType = "DHCID"` - `const AS112SummaryEdnsParamsQueryTypeDlv AS112SummaryEdnsParamsQueryType = "DLV"` - `const AS112SummaryEdnsParamsQueryTypeDname AS112SummaryEdnsParamsQueryType = "DNAME"` - `const AS112SummaryEdnsParamsQueryTypeDNSKEY AS112SummaryEdnsParamsQueryType = "DNSKEY"` - `const AS112SummaryEdnsParamsQueryTypeDoa AS112SummaryEdnsParamsQueryType = "DOA"` - `const AS112SummaryEdnsParamsQueryTypeDS AS112SummaryEdnsParamsQueryType = "DS"` - `const AS112SummaryEdnsParamsQueryTypeEid AS112SummaryEdnsParamsQueryType = "EID"` - `const AS112SummaryEdnsParamsQueryTypeEui48 AS112SummaryEdnsParamsQueryType = "EUI48"` - `const AS112SummaryEdnsParamsQueryTypeEui64 AS112SummaryEdnsParamsQueryType = "EUI64"` - `const AS112SummaryEdnsParamsQueryTypeGpos AS112SummaryEdnsParamsQueryType = "GPOS"` - `const AS112SummaryEdnsParamsQueryTypeGid AS112SummaryEdnsParamsQueryType = "GID"` - `const AS112SummaryEdnsParamsQueryTypeHinfo AS112SummaryEdnsParamsQueryType = "HINFO"` - `const AS112SummaryEdnsParamsQueryTypeHip AS112SummaryEdnsParamsQueryType = "HIP"` - `const AS112SummaryEdnsParamsQueryTypeHTTPS AS112SummaryEdnsParamsQueryType = "HTTPS"` - `const AS112SummaryEdnsParamsQueryTypeIpseckey AS112SummaryEdnsParamsQueryType = "IPSECKEY"` - `const AS112SummaryEdnsParamsQueryTypeIsdn AS112SummaryEdnsParamsQueryType = "ISDN"` - `const AS112SummaryEdnsParamsQueryTypeIxfr AS112SummaryEdnsParamsQueryType = "IXFR"` - `const AS112SummaryEdnsParamsQueryTypeKey AS112SummaryEdnsParamsQueryType = "KEY"` - `const AS112SummaryEdnsParamsQueryTypeKx AS112SummaryEdnsParamsQueryType = "KX"` - `const AS112SummaryEdnsParamsQueryTypeL32 AS112SummaryEdnsParamsQueryType = "L32"` - `const AS112SummaryEdnsParamsQueryTypeL64 AS112SummaryEdnsParamsQueryType = "L64"` - `const AS112SummaryEdnsParamsQueryTypeLOC AS112SummaryEdnsParamsQueryType = "LOC"` - `const AS112SummaryEdnsParamsQueryTypeLp AS112SummaryEdnsParamsQueryType = "LP"` - `const AS112SummaryEdnsParamsQueryTypeMaila AS112SummaryEdnsParamsQueryType = "MAILA"` - `const AS112SummaryEdnsParamsQueryTypeMailb AS112SummaryEdnsParamsQueryType = "MAILB"` - `const AS112SummaryEdnsParamsQueryTypeMB AS112SummaryEdnsParamsQueryType = "MB"` - `const AS112SummaryEdnsParamsQueryTypeMd AS112SummaryEdnsParamsQueryType = "MD"` - `const AS112SummaryEdnsParamsQueryTypeMf AS112SummaryEdnsParamsQueryType = "MF"` - `const AS112SummaryEdnsParamsQueryTypeMg AS112SummaryEdnsParamsQueryType = "MG"` - `const AS112SummaryEdnsParamsQueryTypeMinfo AS112SummaryEdnsParamsQueryType = "MINFO"` - `const AS112SummaryEdnsParamsQueryTypeMr AS112SummaryEdnsParamsQueryType = "MR"` - `const AS112SummaryEdnsParamsQueryTypeMX AS112SummaryEdnsParamsQueryType = "MX"` - `const AS112SummaryEdnsParamsQueryTypeNAPTR AS112SummaryEdnsParamsQueryType = "NAPTR"` - `const AS112SummaryEdnsParamsQueryTypeNb AS112SummaryEdnsParamsQueryType = "NB"` - `const AS112SummaryEdnsParamsQueryTypeNbstat AS112SummaryEdnsParamsQueryType = "NBSTAT"` - `const AS112SummaryEdnsParamsQueryTypeNid AS112SummaryEdnsParamsQueryType = "NID"` - `const AS112SummaryEdnsParamsQueryTypeNimloc AS112SummaryEdnsParamsQueryType = "NIMLOC"` - `const AS112SummaryEdnsParamsQueryTypeNinfo AS112SummaryEdnsParamsQueryType = "NINFO"` - `const AS112SummaryEdnsParamsQueryTypeNS AS112SummaryEdnsParamsQueryType = "NS"` - `const AS112SummaryEdnsParamsQueryTypeNsap AS112SummaryEdnsParamsQueryType = "NSAP"` - `const AS112SummaryEdnsParamsQueryTypeNsec AS112SummaryEdnsParamsQueryType = "NSEC"` - `const AS112SummaryEdnsParamsQueryTypeNsec3 AS112SummaryEdnsParamsQueryType = "NSEC3"` - `const AS112SummaryEdnsParamsQueryTypeNsec3Param AS112SummaryEdnsParamsQueryType = "NSEC3PARAM"` - `const AS112SummaryEdnsParamsQueryTypeNull AS112SummaryEdnsParamsQueryType = "NULL"` - `const AS112SummaryEdnsParamsQueryTypeNxt AS112SummaryEdnsParamsQueryType = "NXT"` - `const AS112SummaryEdnsParamsQueryTypeOpenpgpkey AS112SummaryEdnsParamsQueryType = "OPENPGPKEY"` - `const AS112SummaryEdnsParamsQueryTypeOpt AS112SummaryEdnsParamsQueryType = "OPT"` - `const AS112SummaryEdnsParamsQueryTypePTR AS112SummaryEdnsParamsQueryType = "PTR"` - `const AS112SummaryEdnsParamsQueryTypePx AS112SummaryEdnsParamsQueryType = "PX"` - `const AS112SummaryEdnsParamsQueryTypeRkey AS112SummaryEdnsParamsQueryType = "RKEY"` - `const AS112SummaryEdnsParamsQueryTypeRp AS112SummaryEdnsParamsQueryType = "RP"` - `const AS112SummaryEdnsParamsQueryTypeRrsig AS112SummaryEdnsParamsQueryType = "RRSIG"` - `const AS112SummaryEdnsParamsQueryTypeRt AS112SummaryEdnsParamsQueryType = "RT"` - `const AS112SummaryEdnsParamsQueryTypeSig AS112SummaryEdnsParamsQueryType = "SIG"` - `const AS112SummaryEdnsParamsQueryTypeSink AS112SummaryEdnsParamsQueryType = "SINK"` - `const AS112SummaryEdnsParamsQueryTypeSMIMEA AS112SummaryEdnsParamsQueryType = "SMIMEA"` - `const AS112SummaryEdnsParamsQueryTypeSOA AS112SummaryEdnsParamsQueryType = "SOA"` - `const AS112SummaryEdnsParamsQueryTypeSPF AS112SummaryEdnsParamsQueryType = "SPF"` - `const AS112SummaryEdnsParamsQueryTypeSRV AS112SummaryEdnsParamsQueryType = "SRV"` - `const AS112SummaryEdnsParamsQueryTypeSSHFP AS112SummaryEdnsParamsQueryType = "SSHFP"` - `const AS112SummaryEdnsParamsQueryTypeSVCB AS112SummaryEdnsParamsQueryType = "SVCB"` - `const AS112SummaryEdnsParamsQueryTypeTa AS112SummaryEdnsParamsQueryType = "TA"` - `const AS112SummaryEdnsParamsQueryTypeTalink AS112SummaryEdnsParamsQueryType = "TALINK"` - `const AS112SummaryEdnsParamsQueryTypeTkey AS112SummaryEdnsParamsQueryType = "TKEY"` - `const AS112SummaryEdnsParamsQueryTypeTLSA AS112SummaryEdnsParamsQueryType = "TLSA"` - `const AS112SummaryEdnsParamsQueryTypeTSIG AS112SummaryEdnsParamsQueryType = "TSIG"` - `const AS112SummaryEdnsParamsQueryTypeTXT AS112SummaryEdnsParamsQueryType = "TXT"` - `const AS112SummaryEdnsParamsQueryTypeUinfo AS112SummaryEdnsParamsQueryType = "UINFO"` - `const AS112SummaryEdnsParamsQueryTypeUID AS112SummaryEdnsParamsQueryType = "UID"` - `const AS112SummaryEdnsParamsQueryTypeUnspec AS112SummaryEdnsParamsQueryType = "UNSPEC"` - `const AS112SummaryEdnsParamsQueryTypeURI AS112SummaryEdnsParamsQueryType = "URI"` - `const AS112SummaryEdnsParamsQueryTypeWks AS112SummaryEdnsParamsQueryType = "WKS"` - `const AS112SummaryEdnsParamsQueryTypeX25 AS112SummaryEdnsParamsQueryType = "X25"` - `const AS112SummaryEdnsParamsQueryTypeZonemd AS112SummaryEdnsParamsQueryType = "ZONEMD"` - `ResponseCode param.Field[[]AS112SummaryEdnsParamsResponseCode]` Filters results by DNS response code. - `const AS112SummaryEdnsParamsResponseCodeNoerror AS112SummaryEdnsParamsResponseCode = "NOERROR"` - `const AS112SummaryEdnsParamsResponseCodeFormerr AS112SummaryEdnsParamsResponseCode = "FORMERR"` - `const AS112SummaryEdnsParamsResponseCodeServfail AS112SummaryEdnsParamsResponseCode = "SERVFAIL"` - `const AS112SummaryEdnsParamsResponseCodeNxdomain AS112SummaryEdnsParamsResponseCode = "NXDOMAIN"` - `const AS112SummaryEdnsParamsResponseCodeNotimp AS112SummaryEdnsParamsResponseCode = "NOTIMP"` - `const AS112SummaryEdnsParamsResponseCodeRefused AS112SummaryEdnsParamsResponseCode = "REFUSED"` - `const AS112SummaryEdnsParamsResponseCodeYxdomain AS112SummaryEdnsParamsResponseCode = "YXDOMAIN"` - `const AS112SummaryEdnsParamsResponseCodeYxrrset AS112SummaryEdnsParamsResponseCode = "YXRRSET"` - `const AS112SummaryEdnsParamsResponseCodeNxrrset AS112SummaryEdnsParamsResponseCode = "NXRRSET"` - `const AS112SummaryEdnsParamsResponseCodeNotauth AS112SummaryEdnsParamsResponseCode = "NOTAUTH"` - `const AS112SummaryEdnsParamsResponseCodeNotzone AS112SummaryEdnsParamsResponseCode = "NOTZONE"` - `const AS112SummaryEdnsParamsResponseCodeBadsig AS112SummaryEdnsParamsResponseCode = "BADSIG"` - `const AS112SummaryEdnsParamsResponseCodeBadkey AS112SummaryEdnsParamsResponseCode = "BADKEY"` - `const AS112SummaryEdnsParamsResponseCodeBadtime AS112SummaryEdnsParamsResponseCode = "BADTIME"` - `const AS112SummaryEdnsParamsResponseCodeBadmode AS112SummaryEdnsParamsResponseCode = "BADMODE"` - `const AS112SummaryEdnsParamsResponseCodeBadname AS112SummaryEdnsParamsResponseCode = "BADNAME"` - `const AS112SummaryEdnsParamsResponseCodeBadalg AS112SummaryEdnsParamsResponseCode = "BADALG"` - `const AS112SummaryEdnsParamsResponseCodeBadtrunc AS112SummaryEdnsParamsResponseCode = "BADTRUNC"` - `const AS112SummaryEdnsParamsResponseCodeBadcookie AS112SummaryEdnsParamsResponseCode = "BADCOOKIE"` ### Returns - `type AS112SummaryEdnsResponse struct{…}` - `Meta AS112SummaryEdnsResponseMeta` Metadata for the results. - `ConfidenceInfo AS112SummaryEdnsResponseMetaConfidenceInfo` - `Annotations []AS112SummaryEdnsResponseMetaConfidenceInfoAnnotation` - `DataSource AS112SummaryEdnsResponseMetaConfidenceInfoAnnotationsDataSource` Data source for annotations. - `const AS112SummaryEdnsResponseMetaConfidenceInfoAnnotationsDataSourceAll AS112SummaryEdnsResponseMetaConfidenceInfoAnnotationsDataSource = "ALL"` - `const AS112SummaryEdnsResponseMetaConfidenceInfoAnnotationsDataSourceAIBots AS112SummaryEdnsResponseMetaConfidenceInfoAnnotationsDataSource = "AI_BOTS"` - `const AS112SummaryEdnsResponseMetaConfidenceInfoAnnotationsDataSourceAIGateway AS112SummaryEdnsResponseMetaConfidenceInfoAnnotationsDataSource = "AI_GATEWAY"` - `const AS112SummaryEdnsResponseMetaConfidenceInfoAnnotationsDataSourceBGP AS112SummaryEdnsResponseMetaConfidenceInfoAnnotationsDataSource = "BGP"` - `const AS112SummaryEdnsResponseMetaConfidenceInfoAnnotationsDataSourceBots AS112SummaryEdnsResponseMetaConfidenceInfoAnnotationsDataSource = "BOTS"` - `const AS112SummaryEdnsResponseMetaConfidenceInfoAnnotationsDataSourceConnectionAnomaly AS112SummaryEdnsResponseMetaConfidenceInfoAnnotationsDataSource = "CONNECTION_ANOMALY"` - `const AS112SummaryEdnsResponseMetaConfidenceInfoAnnotationsDataSourceCT AS112SummaryEdnsResponseMetaConfidenceInfoAnnotationsDataSource = "CT"` - `const AS112SummaryEdnsResponseMetaConfidenceInfoAnnotationsDataSourceDNS AS112SummaryEdnsResponseMetaConfidenceInfoAnnotationsDataSource = "DNS"` - `const AS112SummaryEdnsResponseMetaConfidenceInfoAnnotationsDataSourceDNSMagnitude AS112SummaryEdnsResponseMetaConfidenceInfoAnnotationsDataSource = "DNS_MAGNITUDE"` - `const AS112SummaryEdnsResponseMetaConfidenceInfoAnnotationsDataSourceDNSAS112 AS112SummaryEdnsResponseMetaConfidenceInfoAnnotationsDataSource = "DNS_AS112"` - `const AS112SummaryEdnsResponseMetaConfidenceInfoAnnotationsDataSourceDos AS112SummaryEdnsResponseMetaConfidenceInfoAnnotationsDataSource = "DOS"` - `const AS112SummaryEdnsResponseMetaConfidenceInfoAnnotationsDataSourceEmailRouting AS112SummaryEdnsResponseMetaConfidenceInfoAnnotationsDataSource = "EMAIL_ROUTING"` - `const AS112SummaryEdnsResponseMetaConfidenceInfoAnnotationsDataSourceEmailSecurity AS112SummaryEdnsResponseMetaConfidenceInfoAnnotationsDataSource = "EMAIL_SECURITY"` - `const AS112SummaryEdnsResponseMetaConfidenceInfoAnnotationsDataSourceFw AS112SummaryEdnsResponseMetaConfidenceInfoAnnotationsDataSource = "FW"` - `const AS112SummaryEdnsResponseMetaConfidenceInfoAnnotationsDataSourceFwPg AS112SummaryEdnsResponseMetaConfidenceInfoAnnotationsDataSource = "FW_PG"` - `const AS112SummaryEdnsResponseMetaConfidenceInfoAnnotationsDataSourceHTTP AS112SummaryEdnsResponseMetaConfidenceInfoAnnotationsDataSource = "HTTP"` - `const AS112SummaryEdnsResponseMetaConfidenceInfoAnnotationsDataSourceHTTPControl AS112SummaryEdnsResponseMetaConfidenceInfoAnnotationsDataSource = "HTTP_CONTROL"` - `const AS112SummaryEdnsResponseMetaConfidenceInfoAnnotationsDataSourceHTTPCrawlerReferer AS112SummaryEdnsResponseMetaConfidenceInfoAnnotationsDataSource = "HTTP_CRAWLER_REFERER"` - `const AS112SummaryEdnsResponseMetaConfidenceInfoAnnotationsDataSourceHTTPOrigins AS112SummaryEdnsResponseMetaConfidenceInfoAnnotationsDataSource = "HTTP_ORIGINS"` - `const AS112SummaryEdnsResponseMetaConfidenceInfoAnnotationsDataSourceIQI AS112SummaryEdnsResponseMetaConfidenceInfoAnnotationsDataSource = "IQI"` - `const AS112SummaryEdnsResponseMetaConfidenceInfoAnnotationsDataSourceLeakedCredentials AS112SummaryEdnsResponseMetaConfidenceInfoAnnotationsDataSource = "LEAKED_CREDENTIALS"` - `const AS112SummaryEdnsResponseMetaConfidenceInfoAnnotationsDataSourceNet AS112SummaryEdnsResponseMetaConfidenceInfoAnnotationsDataSource = "NET"` - `const AS112SummaryEdnsResponseMetaConfidenceInfoAnnotationsDataSourceRobotsTXT AS112SummaryEdnsResponseMetaConfidenceInfoAnnotationsDataSource = "ROBOTS_TXT"` - `const AS112SummaryEdnsResponseMetaConfidenceInfoAnnotationsDataSourceSpeed AS112SummaryEdnsResponseMetaConfidenceInfoAnnotationsDataSource = "SPEED"` - `const AS112SummaryEdnsResponseMetaConfidenceInfoAnnotationsDataSourceWorkersAI AS112SummaryEdnsResponseMetaConfidenceInfoAnnotationsDataSource = "WORKERS_AI"` - `Description string` - `EndDate Time` - `EventType AS112SummaryEdnsResponseMetaConfidenceInfoAnnotationsEventType` Event type for annotations. - `const AS112SummaryEdnsResponseMetaConfidenceInfoAnnotationsEventTypeEvent AS112SummaryEdnsResponseMetaConfidenceInfoAnnotationsEventType = "EVENT"` - `const AS112SummaryEdnsResponseMetaConfidenceInfoAnnotationsEventTypeGeneral AS112SummaryEdnsResponseMetaConfidenceInfoAnnotationsEventType = "GENERAL"` - `const AS112SummaryEdnsResponseMetaConfidenceInfoAnnotationsEventTypeOutage AS112SummaryEdnsResponseMetaConfidenceInfoAnnotationsEventType = "OUTAGE"` - `const AS112SummaryEdnsResponseMetaConfidenceInfoAnnotationsEventTypePartialProjection AS112SummaryEdnsResponseMetaConfidenceInfoAnnotationsEventType = "PARTIAL_PROJECTION"` - `const AS112SummaryEdnsResponseMetaConfidenceInfoAnnotationsEventTypePipeline AS112SummaryEdnsResponseMetaConfidenceInfoAnnotationsEventType = "PIPELINE"` - `const AS112SummaryEdnsResponseMetaConfidenceInfoAnnotationsEventTypeTrafficAnomaly AS112SummaryEdnsResponseMetaConfidenceInfoAnnotationsEventType = "TRAFFIC_ANOMALY"` - `IsInstantaneous bool` Whether event is a single point in time or a time range. - `LinkedURL string` - `StartDate Time` - `Tags []string` - `Level int64` Provides an indication of how much confidence Cloudflare has in the data. - `DateRange []AS112SummaryEdnsResponseMetaDateRange` - `EndTime Time` Adjusted end of date range. - `StartTime Time` Adjusted start of date range. - `LastUpdated Time` Timestamp of the last dataset update. - `Normalization AS112SummaryEdnsResponseMetaNormalization` Normalization method applied to the results. Refer to [Normalization methods](https://edgetunnel-b2h.pages.dev/radar/concepts/normalization/). - `const AS112SummaryEdnsResponseMetaNormalizationPercentage AS112SummaryEdnsResponseMetaNormalization = "PERCENTAGE"` - `const AS112SummaryEdnsResponseMetaNormalizationMin0Max AS112SummaryEdnsResponseMetaNormalization = "MIN0_MAX"` - `const AS112SummaryEdnsResponseMetaNormalizationMinMax AS112SummaryEdnsResponseMetaNormalization = "MIN_MAX"` - `const AS112SummaryEdnsResponseMetaNormalizationRawValues AS112SummaryEdnsResponseMetaNormalization = "RAW_VALUES"` - `const AS112SummaryEdnsResponseMetaNormalizationPercentageChange AS112SummaryEdnsResponseMetaNormalization = "PERCENTAGE_CHANGE"` - `const AS112SummaryEdnsResponseMetaNormalizationRollingAverage AS112SummaryEdnsResponseMetaNormalization = "ROLLING_AVERAGE"` - `const AS112SummaryEdnsResponseMetaNormalizationOverlappedPercentage AS112SummaryEdnsResponseMetaNormalization = "OVERLAPPED_PERCENTAGE"` - `const AS112SummaryEdnsResponseMetaNormalizationRatio AS112SummaryEdnsResponseMetaNormalization = "RATIO"` - `Units []AS112SummaryEdnsResponseMetaUnit` Measurement units for the results. - `Name string` - `Value string` - `Summary0 AS112SummaryEdnsResponseSummary0` - `NotSupported string` A numeric string. - `Supported string` A numeric string. ### Example ```go 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.Edns(context.TODO(), radar.AS112SummaryEdnsParams{ }) if err != nil { panic(err.Error()) } fmt.Printf("%+v\n", response.Meta) } ``` #### Response ```json { "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": { "NOT_SUPPORTED": "10", "SUPPORTED": "10" } }, "success": true } ``` ## 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. ### Parameters - `query AS112SummaryIPVersionParams` - `Continent param.Field[[]string]` 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]` End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected. - `DateRange param.Field[[]string]` Filters results by relative date range ending at the current time, with each value producing a separate series. Use `d` for days (up to `364d`) or `w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters). - `DateStart param.Field[[]Time]` Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected. - `Format param.Field[AS112SummaryIPVersionParamsFormat]` Format in which results will be returned. - `const AS112SummaryIPVersionParamsFormatJson AS112SummaryIPVersionParamsFormat = "JSON"` - `const AS112SummaryIPVersionParamsFormatCsv AS112SummaryIPVersionParamsFormat = "CSV"` - `Location param.Field[[]string]` 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]` Array of names used to label the series in the response. - `Protocol param.Field[[]AS112SummaryIPVersionParamsProtocol]` 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]` 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]` 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"` ### Returns - `type AS112SummaryIPVersionResponse struct{…}` - `Meta AS112SummaryIPVersionResponseMeta` Metadata for the results. - `ConfidenceInfo AS112SummaryIPVersionResponseMetaConfidenceInfo` - `Annotations []AS112SummaryIPVersionResponseMetaConfidenceInfoAnnotation` - `DataSource AS112SummaryIPVersionResponseMetaConfidenceInfoAnnotationsDataSource` Data source for annotations. - `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` - `EventType AS112SummaryIPVersionResponseMetaConfidenceInfoAnnotationsEventType` Event type for annotations. - `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` - `StartDate Time` - `Tags []string` - `Level int64` Provides an indication of how much confidence Cloudflare has in the data. - `DateRange []AS112SummaryIPVersionResponseMetaDateRange` - `EndTime Time` Adjusted end of date range. - `StartTime Time` Adjusted start of date range. - `LastUpdated Time` Timestamp of the last dataset update. - `Normalization AS112SummaryIPVersionResponseMetaNormalization` Normalization method applied to the results. Refer to [Normalization methods](https://edgetunnel-b2h.pages.dev/radar/concepts/normalization/). - `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. ### Example ```go 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) } ``` #### Response ```json { "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": { "IPv4": "10", "IPv6": "10" } }, "success": true } ``` ## Get AS112 DNS queries by DNS protocol summary `client.Radar.AS112.Summary.Protocol(ctx, query) (*AS112SummaryProtocolResponse, error)` **get** `/radar/as112/summary/protocol` Retrieves the distribution of DNS queries to AS112 by protocol. ### Parameters - `query AS112SummaryProtocolParams` - `Continent param.Field[[]string]` 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]` End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected. - `DateRange param.Field[[]string]` Filters results by relative date range ending at the current time, with each value producing a separate series. Use `d` for days (up to `364d`) or `w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters). - `DateStart param.Field[[]Time]` Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected. - `Format param.Field[AS112SummaryProtocolParamsFormat]` Format in which results will be returned. - `const AS112SummaryProtocolParamsFormatJson AS112SummaryProtocolParamsFormat = "JSON"` - `const AS112SummaryProtocolParamsFormatCsv AS112SummaryProtocolParamsFormat = "CSV"` - `Location param.Field[[]string]` 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]` Array of names used to label the series in the response. - `QueryType param.Field[[]AS112SummaryProtocolParamsQueryType]` Filters results by DNS query type. - `const AS112SummaryProtocolParamsQueryTypeA AS112SummaryProtocolParamsQueryType = "A"` - `const AS112SummaryProtocolParamsQueryTypeAAAA AS112SummaryProtocolParamsQueryType = "AAAA"` - `const AS112SummaryProtocolParamsQueryTypeA6 AS112SummaryProtocolParamsQueryType = "A6"` - `const AS112SummaryProtocolParamsQueryTypeAfsdb AS112SummaryProtocolParamsQueryType = "AFSDB"` - `const AS112SummaryProtocolParamsQueryTypeAny AS112SummaryProtocolParamsQueryType = "ANY"` - `const AS112SummaryProtocolParamsQueryTypeApl AS112SummaryProtocolParamsQueryType = "APL"` - `const AS112SummaryProtocolParamsQueryTypeAtma AS112SummaryProtocolParamsQueryType = "ATMA"` - `const AS112SummaryProtocolParamsQueryTypeAXFR AS112SummaryProtocolParamsQueryType = "AXFR"` - `const AS112SummaryProtocolParamsQueryTypeCAA AS112SummaryProtocolParamsQueryType = "CAA"` - `const AS112SummaryProtocolParamsQueryTypeCdnskey AS112SummaryProtocolParamsQueryType = "CDNSKEY"` - `const AS112SummaryProtocolParamsQueryTypeCds AS112SummaryProtocolParamsQueryType = "CDS"` - `const AS112SummaryProtocolParamsQueryTypeCERT AS112SummaryProtocolParamsQueryType = "CERT"` - `const AS112SummaryProtocolParamsQueryTypeCNAME AS112SummaryProtocolParamsQueryType = "CNAME"` - `const AS112SummaryProtocolParamsQueryTypeCsync AS112SummaryProtocolParamsQueryType = "CSYNC"` - `const AS112SummaryProtocolParamsQueryTypeDhcid AS112SummaryProtocolParamsQueryType = "DHCID"` - `const AS112SummaryProtocolParamsQueryTypeDlv AS112SummaryProtocolParamsQueryType = "DLV"` - `const AS112SummaryProtocolParamsQueryTypeDname AS112SummaryProtocolParamsQueryType = "DNAME"` - `const AS112SummaryProtocolParamsQueryTypeDNSKEY AS112SummaryProtocolParamsQueryType = "DNSKEY"` - `const AS112SummaryProtocolParamsQueryTypeDoa AS112SummaryProtocolParamsQueryType = "DOA"` - `const AS112SummaryProtocolParamsQueryTypeDS AS112SummaryProtocolParamsQueryType = "DS"` - `const AS112SummaryProtocolParamsQueryTypeEid AS112SummaryProtocolParamsQueryType = "EID"` - `const AS112SummaryProtocolParamsQueryTypeEui48 AS112SummaryProtocolParamsQueryType = "EUI48"` - `const AS112SummaryProtocolParamsQueryTypeEui64 AS112SummaryProtocolParamsQueryType = "EUI64"` - `const AS112SummaryProtocolParamsQueryTypeGpos AS112SummaryProtocolParamsQueryType = "GPOS"` - `const AS112SummaryProtocolParamsQueryTypeGid AS112SummaryProtocolParamsQueryType = "GID"` - `const AS112SummaryProtocolParamsQueryTypeHinfo AS112SummaryProtocolParamsQueryType = "HINFO"` - `const AS112SummaryProtocolParamsQueryTypeHip AS112SummaryProtocolParamsQueryType = "HIP"` - `const AS112SummaryProtocolParamsQueryTypeHTTPS AS112SummaryProtocolParamsQueryType = "HTTPS"` - `const AS112SummaryProtocolParamsQueryTypeIpseckey AS112SummaryProtocolParamsQueryType = "IPSECKEY"` - `const AS112SummaryProtocolParamsQueryTypeIsdn AS112SummaryProtocolParamsQueryType = "ISDN"` - `const AS112SummaryProtocolParamsQueryTypeIxfr AS112SummaryProtocolParamsQueryType = "IXFR"` - `const AS112SummaryProtocolParamsQueryTypeKey AS112SummaryProtocolParamsQueryType = "KEY"` - `const AS112SummaryProtocolParamsQueryTypeKx AS112SummaryProtocolParamsQueryType = "KX"` - `const AS112SummaryProtocolParamsQueryTypeL32 AS112SummaryProtocolParamsQueryType = "L32"` - `const AS112SummaryProtocolParamsQueryTypeL64 AS112SummaryProtocolParamsQueryType = "L64"` - `const AS112SummaryProtocolParamsQueryTypeLOC AS112SummaryProtocolParamsQueryType = "LOC"` - `const AS112SummaryProtocolParamsQueryTypeLp AS112SummaryProtocolParamsQueryType = "LP"` - `const AS112SummaryProtocolParamsQueryTypeMaila AS112SummaryProtocolParamsQueryType = "MAILA"` - `const AS112SummaryProtocolParamsQueryTypeMailb AS112SummaryProtocolParamsQueryType = "MAILB"` - `const AS112SummaryProtocolParamsQueryTypeMB AS112SummaryProtocolParamsQueryType = "MB"` - `const AS112SummaryProtocolParamsQueryTypeMd AS112SummaryProtocolParamsQueryType = "MD"` - `const AS112SummaryProtocolParamsQueryTypeMf AS112SummaryProtocolParamsQueryType = "MF"` - `const AS112SummaryProtocolParamsQueryTypeMg AS112SummaryProtocolParamsQueryType = "MG"` - `const AS112SummaryProtocolParamsQueryTypeMinfo AS112SummaryProtocolParamsQueryType = "MINFO"` - `const AS112SummaryProtocolParamsQueryTypeMr AS112SummaryProtocolParamsQueryType = "MR"` - `const AS112SummaryProtocolParamsQueryTypeMX AS112SummaryProtocolParamsQueryType = "MX"` - `const AS112SummaryProtocolParamsQueryTypeNAPTR AS112SummaryProtocolParamsQueryType = "NAPTR"` - `const AS112SummaryProtocolParamsQueryTypeNb AS112SummaryProtocolParamsQueryType = "NB"` - `const AS112SummaryProtocolParamsQueryTypeNbstat AS112SummaryProtocolParamsQueryType = "NBSTAT"` - `const AS112SummaryProtocolParamsQueryTypeNid AS112SummaryProtocolParamsQueryType = "NID"` - `const AS112SummaryProtocolParamsQueryTypeNimloc AS112SummaryProtocolParamsQueryType = "NIMLOC"` - `const AS112SummaryProtocolParamsQueryTypeNinfo AS112SummaryProtocolParamsQueryType = "NINFO"` - `const AS112SummaryProtocolParamsQueryTypeNS AS112SummaryProtocolParamsQueryType = "NS"` - `const AS112SummaryProtocolParamsQueryTypeNsap AS112SummaryProtocolParamsQueryType = "NSAP"` - `const AS112SummaryProtocolParamsQueryTypeNsec AS112SummaryProtocolParamsQueryType = "NSEC"` - `const AS112SummaryProtocolParamsQueryTypeNsec3 AS112SummaryProtocolParamsQueryType = "NSEC3"` - `const AS112SummaryProtocolParamsQueryTypeNsec3Param AS112SummaryProtocolParamsQueryType = "NSEC3PARAM"` - `const AS112SummaryProtocolParamsQueryTypeNull AS112SummaryProtocolParamsQueryType = "NULL"` - `const AS112SummaryProtocolParamsQueryTypeNxt AS112SummaryProtocolParamsQueryType = "NXT"` - `const AS112SummaryProtocolParamsQueryTypeOpenpgpkey AS112SummaryProtocolParamsQueryType = "OPENPGPKEY"` - `const AS112SummaryProtocolParamsQueryTypeOpt AS112SummaryProtocolParamsQueryType = "OPT"` - `const AS112SummaryProtocolParamsQueryTypePTR AS112SummaryProtocolParamsQueryType = "PTR"` - `const AS112SummaryProtocolParamsQueryTypePx AS112SummaryProtocolParamsQueryType = "PX"` - `const AS112SummaryProtocolParamsQueryTypeRkey AS112SummaryProtocolParamsQueryType = "RKEY"` - `const AS112SummaryProtocolParamsQueryTypeRp AS112SummaryProtocolParamsQueryType = "RP"` - `const AS112SummaryProtocolParamsQueryTypeRrsig AS112SummaryProtocolParamsQueryType = "RRSIG"` - `const AS112SummaryProtocolParamsQueryTypeRt AS112SummaryProtocolParamsQueryType = "RT"` - `const AS112SummaryProtocolParamsQueryTypeSig AS112SummaryProtocolParamsQueryType = "SIG"` - `const AS112SummaryProtocolParamsQueryTypeSink AS112SummaryProtocolParamsQueryType = "SINK"` - `const AS112SummaryProtocolParamsQueryTypeSMIMEA AS112SummaryProtocolParamsQueryType = "SMIMEA"` - `const AS112SummaryProtocolParamsQueryTypeSOA AS112SummaryProtocolParamsQueryType = "SOA"` - `const AS112SummaryProtocolParamsQueryTypeSPF AS112SummaryProtocolParamsQueryType = "SPF"` - `const AS112SummaryProtocolParamsQueryTypeSRV AS112SummaryProtocolParamsQueryType = "SRV"` - `const AS112SummaryProtocolParamsQueryTypeSSHFP AS112SummaryProtocolParamsQueryType = "SSHFP"` - `const AS112SummaryProtocolParamsQueryTypeSVCB AS112SummaryProtocolParamsQueryType = "SVCB"` - `const AS112SummaryProtocolParamsQueryTypeTa AS112SummaryProtocolParamsQueryType = "TA"` - `const AS112SummaryProtocolParamsQueryTypeTalink AS112SummaryProtocolParamsQueryType = "TALINK"` - `const AS112SummaryProtocolParamsQueryTypeTkey AS112SummaryProtocolParamsQueryType = "TKEY"` - `const AS112SummaryProtocolParamsQueryTypeTLSA AS112SummaryProtocolParamsQueryType = "TLSA"` - `const AS112SummaryProtocolParamsQueryTypeTSIG AS112SummaryProtocolParamsQueryType = "TSIG"` - `const AS112SummaryProtocolParamsQueryTypeTXT AS112SummaryProtocolParamsQueryType = "TXT"` - `const AS112SummaryProtocolParamsQueryTypeUinfo AS112SummaryProtocolParamsQueryType = "UINFO"` - `const AS112SummaryProtocolParamsQueryTypeUID AS112SummaryProtocolParamsQueryType = "UID"` - `const AS112SummaryProtocolParamsQueryTypeUnspec AS112SummaryProtocolParamsQueryType = "UNSPEC"` - `const AS112SummaryProtocolParamsQueryTypeURI AS112SummaryProtocolParamsQueryType = "URI"` - `const AS112SummaryProtocolParamsQueryTypeWks AS112SummaryProtocolParamsQueryType = "WKS"` - `const AS112SummaryProtocolParamsQueryTypeX25 AS112SummaryProtocolParamsQueryType = "X25"` - `const AS112SummaryProtocolParamsQueryTypeZonemd AS112SummaryProtocolParamsQueryType = "ZONEMD"` - `ResponseCode param.Field[[]AS112SummaryProtocolParamsResponseCode]` Filters results by DNS response code. - `const AS112SummaryProtocolParamsResponseCodeNoerror AS112SummaryProtocolParamsResponseCode = "NOERROR"` - `const AS112SummaryProtocolParamsResponseCodeFormerr AS112SummaryProtocolParamsResponseCode = "FORMERR"` - `const AS112SummaryProtocolParamsResponseCodeServfail AS112SummaryProtocolParamsResponseCode = "SERVFAIL"` - `const AS112SummaryProtocolParamsResponseCodeNxdomain AS112SummaryProtocolParamsResponseCode = "NXDOMAIN"` - `const AS112SummaryProtocolParamsResponseCodeNotimp AS112SummaryProtocolParamsResponseCode = "NOTIMP"` - `const AS112SummaryProtocolParamsResponseCodeRefused AS112SummaryProtocolParamsResponseCode = "REFUSED"` - `const AS112SummaryProtocolParamsResponseCodeYxdomain AS112SummaryProtocolParamsResponseCode = "YXDOMAIN"` - `const AS112SummaryProtocolParamsResponseCodeYxrrset AS112SummaryProtocolParamsResponseCode = "YXRRSET"` - `const AS112SummaryProtocolParamsResponseCodeNxrrset AS112SummaryProtocolParamsResponseCode = "NXRRSET"` - `const AS112SummaryProtocolParamsResponseCodeNotauth AS112SummaryProtocolParamsResponseCode = "NOTAUTH"` - `const AS112SummaryProtocolParamsResponseCodeNotzone AS112SummaryProtocolParamsResponseCode = "NOTZONE"` - `const AS112SummaryProtocolParamsResponseCodeBadsig AS112SummaryProtocolParamsResponseCode = "BADSIG"` - `const AS112SummaryProtocolParamsResponseCodeBadkey AS112SummaryProtocolParamsResponseCode = "BADKEY"` - `const AS112SummaryProtocolParamsResponseCodeBadtime AS112SummaryProtocolParamsResponseCode = "BADTIME"` - `const AS112SummaryProtocolParamsResponseCodeBadmode AS112SummaryProtocolParamsResponseCode = "BADMODE"` - `const AS112SummaryProtocolParamsResponseCodeBadname AS112SummaryProtocolParamsResponseCode = "BADNAME"` - `const AS112SummaryProtocolParamsResponseCodeBadalg AS112SummaryProtocolParamsResponseCode = "BADALG"` - `const AS112SummaryProtocolParamsResponseCodeBadtrunc AS112SummaryProtocolParamsResponseCode = "BADTRUNC"` - `const AS112SummaryProtocolParamsResponseCodeBadcookie AS112SummaryProtocolParamsResponseCode = "BADCOOKIE"` ### Returns - `type AS112SummaryProtocolResponse struct{…}` - `Meta AS112SummaryProtocolResponseMeta` Metadata for the results. - `ConfidenceInfo AS112SummaryProtocolResponseMetaConfidenceInfo` - `Annotations []AS112SummaryProtocolResponseMetaConfidenceInfoAnnotation` - `DataSource AS112SummaryProtocolResponseMetaConfidenceInfoAnnotationsDataSource` Data source for annotations. - `const AS112SummaryProtocolResponseMetaConfidenceInfoAnnotationsDataSourceAll AS112SummaryProtocolResponseMetaConfidenceInfoAnnotationsDataSource = "ALL"` - `const AS112SummaryProtocolResponseMetaConfidenceInfoAnnotationsDataSourceAIBots AS112SummaryProtocolResponseMetaConfidenceInfoAnnotationsDataSource = "AI_BOTS"` - `const AS112SummaryProtocolResponseMetaConfidenceInfoAnnotationsDataSourceAIGateway AS112SummaryProtocolResponseMetaConfidenceInfoAnnotationsDataSource = "AI_GATEWAY"` - `const AS112SummaryProtocolResponseMetaConfidenceInfoAnnotationsDataSourceBGP AS112SummaryProtocolResponseMetaConfidenceInfoAnnotationsDataSource = "BGP"` - `const AS112SummaryProtocolResponseMetaConfidenceInfoAnnotationsDataSourceBots AS112SummaryProtocolResponseMetaConfidenceInfoAnnotationsDataSource = "BOTS"` - `const AS112SummaryProtocolResponseMetaConfidenceInfoAnnotationsDataSourceConnectionAnomaly AS112SummaryProtocolResponseMetaConfidenceInfoAnnotationsDataSource = "CONNECTION_ANOMALY"` - `const AS112SummaryProtocolResponseMetaConfidenceInfoAnnotationsDataSourceCT AS112SummaryProtocolResponseMetaConfidenceInfoAnnotationsDataSource = "CT"` - `const AS112SummaryProtocolResponseMetaConfidenceInfoAnnotationsDataSourceDNS AS112SummaryProtocolResponseMetaConfidenceInfoAnnotationsDataSource = "DNS"` - `const AS112SummaryProtocolResponseMetaConfidenceInfoAnnotationsDataSourceDNSMagnitude AS112SummaryProtocolResponseMetaConfidenceInfoAnnotationsDataSource = "DNS_MAGNITUDE"` - `const AS112SummaryProtocolResponseMetaConfidenceInfoAnnotationsDataSourceDNSAS112 AS112SummaryProtocolResponseMetaConfidenceInfoAnnotationsDataSource = "DNS_AS112"` - `const AS112SummaryProtocolResponseMetaConfidenceInfoAnnotationsDataSourceDos AS112SummaryProtocolResponseMetaConfidenceInfoAnnotationsDataSource = "DOS"` - `const AS112SummaryProtocolResponseMetaConfidenceInfoAnnotationsDataSourceEmailRouting AS112SummaryProtocolResponseMetaConfidenceInfoAnnotationsDataSource = "EMAIL_ROUTING"` - `const AS112SummaryProtocolResponseMetaConfidenceInfoAnnotationsDataSourceEmailSecurity AS112SummaryProtocolResponseMetaConfidenceInfoAnnotationsDataSource = "EMAIL_SECURITY"` - `const AS112SummaryProtocolResponseMetaConfidenceInfoAnnotationsDataSourceFw AS112SummaryProtocolResponseMetaConfidenceInfoAnnotationsDataSource = "FW"` - `const AS112SummaryProtocolResponseMetaConfidenceInfoAnnotationsDataSourceFwPg AS112SummaryProtocolResponseMetaConfidenceInfoAnnotationsDataSource = "FW_PG"` - `const AS112SummaryProtocolResponseMetaConfidenceInfoAnnotationsDataSourceHTTP AS112SummaryProtocolResponseMetaConfidenceInfoAnnotationsDataSource = "HTTP"` - `const AS112SummaryProtocolResponseMetaConfidenceInfoAnnotationsDataSourceHTTPControl AS112SummaryProtocolResponseMetaConfidenceInfoAnnotationsDataSource = "HTTP_CONTROL"` - `const AS112SummaryProtocolResponseMetaConfidenceInfoAnnotationsDataSourceHTTPCrawlerReferer AS112SummaryProtocolResponseMetaConfidenceInfoAnnotationsDataSource = "HTTP_CRAWLER_REFERER"` - `const AS112SummaryProtocolResponseMetaConfidenceInfoAnnotationsDataSourceHTTPOrigins AS112SummaryProtocolResponseMetaConfidenceInfoAnnotationsDataSource = "HTTP_ORIGINS"` - `const AS112SummaryProtocolResponseMetaConfidenceInfoAnnotationsDataSourceIQI AS112SummaryProtocolResponseMetaConfidenceInfoAnnotationsDataSource = "IQI"` - `const AS112SummaryProtocolResponseMetaConfidenceInfoAnnotationsDataSourceLeakedCredentials AS112SummaryProtocolResponseMetaConfidenceInfoAnnotationsDataSource = "LEAKED_CREDENTIALS"` - `const AS112SummaryProtocolResponseMetaConfidenceInfoAnnotationsDataSourceNet AS112SummaryProtocolResponseMetaConfidenceInfoAnnotationsDataSource = "NET"` - `const AS112SummaryProtocolResponseMetaConfidenceInfoAnnotationsDataSourceRobotsTXT AS112SummaryProtocolResponseMetaConfidenceInfoAnnotationsDataSource = "ROBOTS_TXT"` - `const AS112SummaryProtocolResponseMetaConfidenceInfoAnnotationsDataSourceSpeed AS112SummaryProtocolResponseMetaConfidenceInfoAnnotationsDataSource = "SPEED"` - `const AS112SummaryProtocolResponseMetaConfidenceInfoAnnotationsDataSourceWorkersAI AS112SummaryProtocolResponseMetaConfidenceInfoAnnotationsDataSource = "WORKERS_AI"` - `Description string` - `EndDate Time` - `EventType AS112SummaryProtocolResponseMetaConfidenceInfoAnnotationsEventType` Event type for annotations. - `const AS112SummaryProtocolResponseMetaConfidenceInfoAnnotationsEventTypeEvent AS112SummaryProtocolResponseMetaConfidenceInfoAnnotationsEventType = "EVENT"` - `const AS112SummaryProtocolResponseMetaConfidenceInfoAnnotationsEventTypeGeneral AS112SummaryProtocolResponseMetaConfidenceInfoAnnotationsEventType = "GENERAL"` - `const AS112SummaryProtocolResponseMetaConfidenceInfoAnnotationsEventTypeOutage AS112SummaryProtocolResponseMetaConfidenceInfoAnnotationsEventType = "OUTAGE"` - `const AS112SummaryProtocolResponseMetaConfidenceInfoAnnotationsEventTypePartialProjection AS112SummaryProtocolResponseMetaConfidenceInfoAnnotationsEventType = "PARTIAL_PROJECTION"` - `const AS112SummaryProtocolResponseMetaConfidenceInfoAnnotationsEventTypePipeline AS112SummaryProtocolResponseMetaConfidenceInfoAnnotationsEventType = "PIPELINE"` - `const AS112SummaryProtocolResponseMetaConfidenceInfoAnnotationsEventTypeTrafficAnomaly AS112SummaryProtocolResponseMetaConfidenceInfoAnnotationsEventType = "TRAFFIC_ANOMALY"` - `IsInstantaneous bool` Whether event is a single point in time or a time range. - `LinkedURL string` - `StartDate Time` - `Tags []string` - `Level int64` Provides an indication of how much confidence Cloudflare has in the data. - `DateRange []AS112SummaryProtocolResponseMetaDateRange` - `EndTime Time` Adjusted end of date range. - `StartTime Time` Adjusted start of date range. - `LastUpdated Time` Timestamp of the last dataset update. - `Normalization AS112SummaryProtocolResponseMetaNormalization` Normalization method applied to the results. Refer to [Normalization methods](https://edgetunnel-b2h.pages.dev/radar/concepts/normalization/). - `const AS112SummaryProtocolResponseMetaNormalizationPercentage AS112SummaryProtocolResponseMetaNormalization = "PERCENTAGE"` - `const AS112SummaryProtocolResponseMetaNormalizationMin0Max AS112SummaryProtocolResponseMetaNormalization = "MIN0_MAX"` - `const AS112SummaryProtocolResponseMetaNormalizationMinMax AS112SummaryProtocolResponseMetaNormalization = "MIN_MAX"` - `const AS112SummaryProtocolResponseMetaNormalizationRawValues AS112SummaryProtocolResponseMetaNormalization = "RAW_VALUES"` - `const AS112SummaryProtocolResponseMetaNormalizationPercentageChange AS112SummaryProtocolResponseMetaNormalization = "PERCENTAGE_CHANGE"` - `const AS112SummaryProtocolResponseMetaNormalizationRollingAverage AS112SummaryProtocolResponseMetaNormalization = "ROLLING_AVERAGE"` - `const AS112SummaryProtocolResponseMetaNormalizationOverlappedPercentage AS112SummaryProtocolResponseMetaNormalization = "OVERLAPPED_PERCENTAGE"` - `const AS112SummaryProtocolResponseMetaNormalizationRatio AS112SummaryProtocolResponseMetaNormalization = "RATIO"` - `Units []AS112SummaryProtocolResponseMetaUnit` Measurement units for the results. - `Name string` - `Value string` - `Summary0 AS112SummaryProtocolResponseSummary0` - `HTTPS string` A numeric string. - `TCP string` A numeric string. - `TLS string` A numeric string. - `Udp string` A numeric string. ### Example ```go 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.Protocol(context.TODO(), radar.AS112SummaryProtocolParams{ }) if err != nil { panic(err.Error()) } fmt.Printf("%+v\n", response.Meta) } ``` #### Response ```json { "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": { "HTTPS": "10", "TCP": "10", "TLS": "10", "UDP": "10" } }, "success": true } ``` ## Get AS112 DNS queries by type summary `client.Radar.AS112.Summary.QueryType(ctx, query) (*AS112SummaryQueryTypeResponse, error)` **get** `/radar/as112/summary/query_type` Retrieves the distribution of DNS queries to AS112 by type. ### Parameters - `query AS112SummaryQueryTypeParams` - `Continent param.Field[[]string]` 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]` End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected. - `DateRange param.Field[[]string]` Filters results by relative date range ending at the current time, with each value producing a separate series. Use `d` for days (up to `364d`) or `w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters). - `DateStart param.Field[[]Time]` Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected. - `Format param.Field[AS112SummaryQueryTypeParamsFormat]` Format in which results will be returned. - `const AS112SummaryQueryTypeParamsFormatJson AS112SummaryQueryTypeParamsFormat = "JSON"` - `const AS112SummaryQueryTypeParamsFormatCsv AS112SummaryQueryTypeParamsFormat = "CSV"` - `LimitPerGroup param.Field[int64]` 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. Only supported on high-cardinality dimensions; otherwise the request is rejected. Minimum value is 2. - `Location param.Field[[]string]` 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]` Array of names used to label the series in the response. - `Protocol param.Field[[]AS112SummaryQueryTypeParamsProtocol]` Filters results by DNS transport protocol. - `const AS112SummaryQueryTypeParamsProtocolUdp AS112SummaryQueryTypeParamsProtocol = "UDP"` - `const AS112SummaryQueryTypeParamsProtocolTCP AS112SummaryQueryTypeParamsProtocol = "TCP"` - `const AS112SummaryQueryTypeParamsProtocolHTTPS AS112SummaryQueryTypeParamsProtocol = "HTTPS"` - `const AS112SummaryQueryTypeParamsProtocolTLS AS112SummaryQueryTypeParamsProtocol = "TLS"` - `ResponseCode param.Field[[]AS112SummaryQueryTypeParamsResponseCode]` Filters results by DNS response code. - `const AS112SummaryQueryTypeParamsResponseCodeNoerror AS112SummaryQueryTypeParamsResponseCode = "NOERROR"` - `const AS112SummaryQueryTypeParamsResponseCodeFormerr AS112SummaryQueryTypeParamsResponseCode = "FORMERR"` - `const AS112SummaryQueryTypeParamsResponseCodeServfail AS112SummaryQueryTypeParamsResponseCode = "SERVFAIL"` - `const AS112SummaryQueryTypeParamsResponseCodeNxdomain AS112SummaryQueryTypeParamsResponseCode = "NXDOMAIN"` - `const AS112SummaryQueryTypeParamsResponseCodeNotimp AS112SummaryQueryTypeParamsResponseCode = "NOTIMP"` - `const AS112SummaryQueryTypeParamsResponseCodeRefused AS112SummaryQueryTypeParamsResponseCode = "REFUSED"` - `const AS112SummaryQueryTypeParamsResponseCodeYxdomain AS112SummaryQueryTypeParamsResponseCode = "YXDOMAIN"` - `const AS112SummaryQueryTypeParamsResponseCodeYxrrset AS112SummaryQueryTypeParamsResponseCode = "YXRRSET"` - `const AS112SummaryQueryTypeParamsResponseCodeNxrrset AS112SummaryQueryTypeParamsResponseCode = "NXRRSET"` - `const AS112SummaryQueryTypeParamsResponseCodeNotauth AS112SummaryQueryTypeParamsResponseCode = "NOTAUTH"` - `const AS112SummaryQueryTypeParamsResponseCodeNotzone AS112SummaryQueryTypeParamsResponseCode = "NOTZONE"` - `const AS112SummaryQueryTypeParamsResponseCodeBadsig AS112SummaryQueryTypeParamsResponseCode = "BADSIG"` - `const AS112SummaryQueryTypeParamsResponseCodeBadkey AS112SummaryQueryTypeParamsResponseCode = "BADKEY"` - `const AS112SummaryQueryTypeParamsResponseCodeBadtime AS112SummaryQueryTypeParamsResponseCode = "BADTIME"` - `const AS112SummaryQueryTypeParamsResponseCodeBadmode AS112SummaryQueryTypeParamsResponseCode = "BADMODE"` - `const AS112SummaryQueryTypeParamsResponseCodeBadname AS112SummaryQueryTypeParamsResponseCode = "BADNAME"` - `const AS112SummaryQueryTypeParamsResponseCodeBadalg AS112SummaryQueryTypeParamsResponseCode = "BADALG"` - `const AS112SummaryQueryTypeParamsResponseCodeBadtrunc AS112SummaryQueryTypeParamsResponseCode = "BADTRUNC"` - `const AS112SummaryQueryTypeParamsResponseCodeBadcookie AS112SummaryQueryTypeParamsResponseCode = "BADCOOKIE"` ### Returns - `type AS112SummaryQueryTypeResponse struct{…}` - `Meta AS112SummaryQueryTypeResponseMeta` Metadata for the results. - `ConfidenceInfo AS112SummaryQueryTypeResponseMetaConfidenceInfo` - `Annotations []AS112SummaryQueryTypeResponseMetaConfidenceInfoAnnotation` - `DataSource AS112SummaryQueryTypeResponseMetaConfidenceInfoAnnotationsDataSource` Data source for annotations. - `const AS112SummaryQueryTypeResponseMetaConfidenceInfoAnnotationsDataSourceAll AS112SummaryQueryTypeResponseMetaConfidenceInfoAnnotationsDataSource = "ALL"` - `const AS112SummaryQueryTypeResponseMetaConfidenceInfoAnnotationsDataSourceAIBots AS112SummaryQueryTypeResponseMetaConfidenceInfoAnnotationsDataSource = "AI_BOTS"` - `const AS112SummaryQueryTypeResponseMetaConfidenceInfoAnnotationsDataSourceAIGateway AS112SummaryQueryTypeResponseMetaConfidenceInfoAnnotationsDataSource = "AI_GATEWAY"` - `const AS112SummaryQueryTypeResponseMetaConfidenceInfoAnnotationsDataSourceBGP AS112SummaryQueryTypeResponseMetaConfidenceInfoAnnotationsDataSource = "BGP"` - `const AS112SummaryQueryTypeResponseMetaConfidenceInfoAnnotationsDataSourceBots AS112SummaryQueryTypeResponseMetaConfidenceInfoAnnotationsDataSource = "BOTS"` - `const AS112SummaryQueryTypeResponseMetaConfidenceInfoAnnotationsDataSourceConnectionAnomaly AS112SummaryQueryTypeResponseMetaConfidenceInfoAnnotationsDataSource = "CONNECTION_ANOMALY"` - `const AS112SummaryQueryTypeResponseMetaConfidenceInfoAnnotationsDataSourceCT AS112SummaryQueryTypeResponseMetaConfidenceInfoAnnotationsDataSource = "CT"` - `const AS112SummaryQueryTypeResponseMetaConfidenceInfoAnnotationsDataSourceDNS AS112SummaryQueryTypeResponseMetaConfidenceInfoAnnotationsDataSource = "DNS"` - `const AS112SummaryQueryTypeResponseMetaConfidenceInfoAnnotationsDataSourceDNSMagnitude AS112SummaryQueryTypeResponseMetaConfidenceInfoAnnotationsDataSource = "DNS_MAGNITUDE"` - `const AS112SummaryQueryTypeResponseMetaConfidenceInfoAnnotationsDataSourceDNSAS112 AS112SummaryQueryTypeResponseMetaConfidenceInfoAnnotationsDataSource = "DNS_AS112"` - `const AS112SummaryQueryTypeResponseMetaConfidenceInfoAnnotationsDataSourceDos AS112SummaryQueryTypeResponseMetaConfidenceInfoAnnotationsDataSource = "DOS"` - `const AS112SummaryQueryTypeResponseMetaConfidenceInfoAnnotationsDataSourceEmailRouting AS112SummaryQueryTypeResponseMetaConfidenceInfoAnnotationsDataSource = "EMAIL_ROUTING"` - `const AS112SummaryQueryTypeResponseMetaConfidenceInfoAnnotationsDataSourceEmailSecurity AS112SummaryQueryTypeResponseMetaConfidenceInfoAnnotationsDataSource = "EMAIL_SECURITY"` - `const AS112SummaryQueryTypeResponseMetaConfidenceInfoAnnotationsDataSourceFw AS112SummaryQueryTypeResponseMetaConfidenceInfoAnnotationsDataSource = "FW"` - `const AS112SummaryQueryTypeResponseMetaConfidenceInfoAnnotationsDataSourceFwPg AS112SummaryQueryTypeResponseMetaConfidenceInfoAnnotationsDataSource = "FW_PG"` - `const AS112SummaryQueryTypeResponseMetaConfidenceInfoAnnotationsDataSourceHTTP AS112SummaryQueryTypeResponseMetaConfidenceInfoAnnotationsDataSource = "HTTP"` - `const AS112SummaryQueryTypeResponseMetaConfidenceInfoAnnotationsDataSourceHTTPControl AS112SummaryQueryTypeResponseMetaConfidenceInfoAnnotationsDataSource = "HTTP_CONTROL"` - `const AS112SummaryQueryTypeResponseMetaConfidenceInfoAnnotationsDataSourceHTTPCrawlerReferer AS112SummaryQueryTypeResponseMetaConfidenceInfoAnnotationsDataSource = "HTTP_CRAWLER_REFERER"` - `const AS112SummaryQueryTypeResponseMetaConfidenceInfoAnnotationsDataSourceHTTPOrigins AS112SummaryQueryTypeResponseMetaConfidenceInfoAnnotationsDataSource = "HTTP_ORIGINS"` - `const AS112SummaryQueryTypeResponseMetaConfidenceInfoAnnotationsDataSourceIQI AS112SummaryQueryTypeResponseMetaConfidenceInfoAnnotationsDataSource = "IQI"` - `const AS112SummaryQueryTypeResponseMetaConfidenceInfoAnnotationsDataSourceLeakedCredentials AS112SummaryQueryTypeResponseMetaConfidenceInfoAnnotationsDataSource = "LEAKED_CREDENTIALS"` - `const AS112SummaryQueryTypeResponseMetaConfidenceInfoAnnotationsDataSourceNet AS112SummaryQueryTypeResponseMetaConfidenceInfoAnnotationsDataSource = "NET"` - `const AS112SummaryQueryTypeResponseMetaConfidenceInfoAnnotationsDataSourceRobotsTXT AS112SummaryQueryTypeResponseMetaConfidenceInfoAnnotationsDataSource = "ROBOTS_TXT"` - `const AS112SummaryQueryTypeResponseMetaConfidenceInfoAnnotationsDataSourceSpeed AS112SummaryQueryTypeResponseMetaConfidenceInfoAnnotationsDataSource = "SPEED"` - `const AS112SummaryQueryTypeResponseMetaConfidenceInfoAnnotationsDataSourceWorkersAI AS112SummaryQueryTypeResponseMetaConfidenceInfoAnnotationsDataSource = "WORKERS_AI"` - `Description string` - `EndDate Time` - `EventType AS112SummaryQueryTypeResponseMetaConfidenceInfoAnnotationsEventType` Event type for annotations. - `const AS112SummaryQueryTypeResponseMetaConfidenceInfoAnnotationsEventTypeEvent AS112SummaryQueryTypeResponseMetaConfidenceInfoAnnotationsEventType = "EVENT"` - `const AS112SummaryQueryTypeResponseMetaConfidenceInfoAnnotationsEventTypeGeneral AS112SummaryQueryTypeResponseMetaConfidenceInfoAnnotationsEventType = "GENERAL"` - `const AS112SummaryQueryTypeResponseMetaConfidenceInfoAnnotationsEventTypeOutage AS112SummaryQueryTypeResponseMetaConfidenceInfoAnnotationsEventType = "OUTAGE"` - `const AS112SummaryQueryTypeResponseMetaConfidenceInfoAnnotationsEventTypePartialProjection AS112SummaryQueryTypeResponseMetaConfidenceInfoAnnotationsEventType = "PARTIAL_PROJECTION"` - `const AS112SummaryQueryTypeResponseMetaConfidenceInfoAnnotationsEventTypePipeline AS112SummaryQueryTypeResponseMetaConfidenceInfoAnnotationsEventType = "PIPELINE"` - `const AS112SummaryQueryTypeResponseMetaConfidenceInfoAnnotationsEventTypeTrafficAnomaly AS112SummaryQueryTypeResponseMetaConfidenceInfoAnnotationsEventType = "TRAFFIC_ANOMALY"` - `IsInstantaneous bool` Whether event is a single point in time or a time range. - `LinkedURL string` - `StartDate Time` - `Tags []string` - `Level int64` Provides an indication of how much confidence Cloudflare has in the data. - `DateRange []AS112SummaryQueryTypeResponseMetaDateRange` - `EndTime Time` Adjusted end of date range. - `StartTime Time` Adjusted start of date range. - `LastUpdated Time` Timestamp of the last dataset update. - `Normalization AS112SummaryQueryTypeResponseMetaNormalization` Normalization method applied to the results. Refer to [Normalization methods](https://edgetunnel-b2h.pages.dev/radar/concepts/normalization/). - `const AS112SummaryQueryTypeResponseMetaNormalizationPercentage AS112SummaryQueryTypeResponseMetaNormalization = "PERCENTAGE"` - `const AS112SummaryQueryTypeResponseMetaNormalizationMin0Max AS112SummaryQueryTypeResponseMetaNormalization = "MIN0_MAX"` - `const AS112SummaryQueryTypeResponseMetaNormalizationMinMax AS112SummaryQueryTypeResponseMetaNormalization = "MIN_MAX"` - `const AS112SummaryQueryTypeResponseMetaNormalizationRawValues AS112SummaryQueryTypeResponseMetaNormalization = "RAW_VALUES"` - `const AS112SummaryQueryTypeResponseMetaNormalizationPercentageChange AS112SummaryQueryTypeResponseMetaNormalization = "PERCENTAGE_CHANGE"` - `const AS112SummaryQueryTypeResponseMetaNormalizationRollingAverage AS112SummaryQueryTypeResponseMetaNormalization = "ROLLING_AVERAGE"` - `const AS112SummaryQueryTypeResponseMetaNormalizationOverlappedPercentage AS112SummaryQueryTypeResponseMetaNormalization = "OVERLAPPED_PERCENTAGE"` - `const AS112SummaryQueryTypeResponseMetaNormalizationRatio AS112SummaryQueryTypeResponseMetaNormalization = "RATIO"` - `Units []AS112SummaryQueryTypeResponseMetaUnit` Measurement units for the results. - `Name string` - `Value string` - `Summary0 map[string, string]` ### Example ```go 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.QueryType(context.TODO(), radar.AS112SummaryQueryTypeParams{ }) if err != nil { panic(err.Error()) } fmt.Printf("%+v\n", response.Meta) } ``` #### Response ```json { "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": { "A": "19", "AAAA": "1", "PTR": "74", "SOA": "5", "SRV": "1" } }, "success": true } ``` ## Get AS112 DNS queries by response code summary `client.Radar.AS112.Summary.ResponseCodes(ctx, query) (*AS112SummaryResponseCodesResponse, error)` **get** `/radar/as112/summary/response_codes` Retrieves the distribution of AS112 DNS requests classified by response code. ### Parameters - `query AS112SummaryResponseCodesParams` - `Continent param.Field[[]string]` 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]` End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected. - `DateRange param.Field[[]string]` Filters results by relative date range ending at the current time, with each value producing a separate series. Use `d` for days (up to `364d`) or `w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters). - `DateStart param.Field[[]Time]` Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected. - `Format param.Field[AS112SummaryResponseCodesParamsFormat]` Format in which results will be returned. - `const AS112SummaryResponseCodesParamsFormatJson AS112SummaryResponseCodesParamsFormat = "JSON"` - `const AS112SummaryResponseCodesParamsFormatCsv AS112SummaryResponseCodesParamsFormat = "CSV"` - `LimitPerGroup param.Field[int64]` 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. Only supported on high-cardinality dimensions; otherwise the request is rejected. Minimum value is 2. - `Location param.Field[[]string]` 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]` Array of names used to label the series in the response. - `Protocol param.Field[[]AS112SummaryResponseCodesParamsProtocol]` Filters results by DNS transport protocol. - `const AS112SummaryResponseCodesParamsProtocolUdp AS112SummaryResponseCodesParamsProtocol = "UDP"` - `const AS112SummaryResponseCodesParamsProtocolTCP AS112SummaryResponseCodesParamsProtocol = "TCP"` - `const AS112SummaryResponseCodesParamsProtocolHTTPS AS112SummaryResponseCodesParamsProtocol = "HTTPS"` - `const AS112SummaryResponseCodesParamsProtocolTLS AS112SummaryResponseCodesParamsProtocol = "TLS"` - `QueryType param.Field[[]AS112SummaryResponseCodesParamsQueryType]` Filters results by DNS query type. - `const AS112SummaryResponseCodesParamsQueryTypeA AS112SummaryResponseCodesParamsQueryType = "A"` - `const AS112SummaryResponseCodesParamsQueryTypeAAAA AS112SummaryResponseCodesParamsQueryType = "AAAA"` - `const AS112SummaryResponseCodesParamsQueryTypeA6 AS112SummaryResponseCodesParamsQueryType = "A6"` - `const AS112SummaryResponseCodesParamsQueryTypeAfsdb AS112SummaryResponseCodesParamsQueryType = "AFSDB"` - `const AS112SummaryResponseCodesParamsQueryTypeAny AS112SummaryResponseCodesParamsQueryType = "ANY"` - `const AS112SummaryResponseCodesParamsQueryTypeApl AS112SummaryResponseCodesParamsQueryType = "APL"` - `const AS112SummaryResponseCodesParamsQueryTypeAtma AS112SummaryResponseCodesParamsQueryType = "ATMA"` - `const AS112SummaryResponseCodesParamsQueryTypeAXFR AS112SummaryResponseCodesParamsQueryType = "AXFR"` - `const AS112SummaryResponseCodesParamsQueryTypeCAA AS112SummaryResponseCodesParamsQueryType = "CAA"` - `const AS112SummaryResponseCodesParamsQueryTypeCdnskey AS112SummaryResponseCodesParamsQueryType = "CDNSKEY"` - `const AS112SummaryResponseCodesParamsQueryTypeCds AS112SummaryResponseCodesParamsQueryType = "CDS"` - `const AS112SummaryResponseCodesParamsQueryTypeCERT AS112SummaryResponseCodesParamsQueryType = "CERT"` - `const AS112SummaryResponseCodesParamsQueryTypeCNAME AS112SummaryResponseCodesParamsQueryType = "CNAME"` - `const AS112SummaryResponseCodesParamsQueryTypeCsync AS112SummaryResponseCodesParamsQueryType = "CSYNC"` - `const AS112SummaryResponseCodesParamsQueryTypeDhcid AS112SummaryResponseCodesParamsQueryType = "DHCID"` - `const AS112SummaryResponseCodesParamsQueryTypeDlv AS112SummaryResponseCodesParamsQueryType = "DLV"` - `const AS112SummaryResponseCodesParamsQueryTypeDname AS112SummaryResponseCodesParamsQueryType = "DNAME"` - `const AS112SummaryResponseCodesParamsQueryTypeDNSKEY AS112SummaryResponseCodesParamsQueryType = "DNSKEY"` - `const AS112SummaryResponseCodesParamsQueryTypeDoa AS112SummaryResponseCodesParamsQueryType = "DOA"` - `const AS112SummaryResponseCodesParamsQueryTypeDS AS112SummaryResponseCodesParamsQueryType = "DS"` - `const AS112SummaryResponseCodesParamsQueryTypeEid AS112SummaryResponseCodesParamsQueryType = "EID"` - `const AS112SummaryResponseCodesParamsQueryTypeEui48 AS112SummaryResponseCodesParamsQueryType = "EUI48"` - `const AS112SummaryResponseCodesParamsQueryTypeEui64 AS112SummaryResponseCodesParamsQueryType = "EUI64"` - `const AS112SummaryResponseCodesParamsQueryTypeGpos AS112SummaryResponseCodesParamsQueryType = "GPOS"` - `const AS112SummaryResponseCodesParamsQueryTypeGid AS112SummaryResponseCodesParamsQueryType = "GID"` - `const AS112SummaryResponseCodesParamsQueryTypeHinfo AS112SummaryResponseCodesParamsQueryType = "HINFO"` - `const AS112SummaryResponseCodesParamsQueryTypeHip AS112SummaryResponseCodesParamsQueryType = "HIP"` - `const AS112SummaryResponseCodesParamsQueryTypeHTTPS AS112SummaryResponseCodesParamsQueryType = "HTTPS"` - `const AS112SummaryResponseCodesParamsQueryTypeIpseckey AS112SummaryResponseCodesParamsQueryType = "IPSECKEY"` - `const AS112SummaryResponseCodesParamsQueryTypeIsdn AS112SummaryResponseCodesParamsQueryType = "ISDN"` - `const AS112SummaryResponseCodesParamsQueryTypeIxfr AS112SummaryResponseCodesParamsQueryType = "IXFR"` - `const AS112SummaryResponseCodesParamsQueryTypeKey AS112SummaryResponseCodesParamsQueryType = "KEY"` - `const AS112SummaryResponseCodesParamsQueryTypeKx AS112SummaryResponseCodesParamsQueryType = "KX"` - `const AS112SummaryResponseCodesParamsQueryTypeL32 AS112SummaryResponseCodesParamsQueryType = "L32"` - `const AS112SummaryResponseCodesParamsQueryTypeL64 AS112SummaryResponseCodesParamsQueryType = "L64"` - `const AS112SummaryResponseCodesParamsQueryTypeLOC AS112SummaryResponseCodesParamsQueryType = "LOC"` - `const AS112SummaryResponseCodesParamsQueryTypeLp AS112SummaryResponseCodesParamsQueryType = "LP"` - `const AS112SummaryResponseCodesParamsQueryTypeMaila AS112SummaryResponseCodesParamsQueryType = "MAILA"` - `const AS112SummaryResponseCodesParamsQueryTypeMailb AS112SummaryResponseCodesParamsQueryType = "MAILB"` - `const AS112SummaryResponseCodesParamsQueryTypeMB AS112SummaryResponseCodesParamsQueryType = "MB"` - `const AS112SummaryResponseCodesParamsQueryTypeMd AS112SummaryResponseCodesParamsQueryType = "MD"` - `const AS112SummaryResponseCodesParamsQueryTypeMf AS112SummaryResponseCodesParamsQueryType = "MF"` - `const AS112SummaryResponseCodesParamsQueryTypeMg AS112SummaryResponseCodesParamsQueryType = "MG"` - `const AS112SummaryResponseCodesParamsQueryTypeMinfo AS112SummaryResponseCodesParamsQueryType = "MINFO"` - `const AS112SummaryResponseCodesParamsQueryTypeMr AS112SummaryResponseCodesParamsQueryType = "MR"` - `const AS112SummaryResponseCodesParamsQueryTypeMX AS112SummaryResponseCodesParamsQueryType = "MX"` - `const AS112SummaryResponseCodesParamsQueryTypeNAPTR AS112SummaryResponseCodesParamsQueryType = "NAPTR"` - `const AS112SummaryResponseCodesParamsQueryTypeNb AS112SummaryResponseCodesParamsQueryType = "NB"` - `const AS112SummaryResponseCodesParamsQueryTypeNbstat AS112SummaryResponseCodesParamsQueryType = "NBSTAT"` - `const AS112SummaryResponseCodesParamsQueryTypeNid AS112SummaryResponseCodesParamsQueryType = "NID"` - `const AS112SummaryResponseCodesParamsQueryTypeNimloc AS112SummaryResponseCodesParamsQueryType = "NIMLOC"` - `const AS112SummaryResponseCodesParamsQueryTypeNinfo AS112SummaryResponseCodesParamsQueryType = "NINFO"` - `const AS112SummaryResponseCodesParamsQueryTypeNS AS112SummaryResponseCodesParamsQueryType = "NS"` - `const AS112SummaryResponseCodesParamsQueryTypeNsap AS112SummaryResponseCodesParamsQueryType = "NSAP"` - `const AS112SummaryResponseCodesParamsQueryTypeNsec AS112SummaryResponseCodesParamsQueryType = "NSEC"` - `const AS112SummaryResponseCodesParamsQueryTypeNsec3 AS112SummaryResponseCodesParamsQueryType = "NSEC3"` - `const AS112SummaryResponseCodesParamsQueryTypeNsec3Param AS112SummaryResponseCodesParamsQueryType = "NSEC3PARAM"` - `const AS112SummaryResponseCodesParamsQueryTypeNull AS112SummaryResponseCodesParamsQueryType = "NULL"` - `const AS112SummaryResponseCodesParamsQueryTypeNxt AS112SummaryResponseCodesParamsQueryType = "NXT"` - `const AS112SummaryResponseCodesParamsQueryTypeOpenpgpkey AS112SummaryResponseCodesParamsQueryType = "OPENPGPKEY"` - `const AS112SummaryResponseCodesParamsQueryTypeOpt AS112SummaryResponseCodesParamsQueryType = "OPT"` - `const AS112SummaryResponseCodesParamsQueryTypePTR AS112SummaryResponseCodesParamsQueryType = "PTR"` - `const AS112SummaryResponseCodesParamsQueryTypePx AS112SummaryResponseCodesParamsQueryType = "PX"` - `const AS112SummaryResponseCodesParamsQueryTypeRkey AS112SummaryResponseCodesParamsQueryType = "RKEY"` - `const AS112SummaryResponseCodesParamsQueryTypeRp AS112SummaryResponseCodesParamsQueryType = "RP"` - `const AS112SummaryResponseCodesParamsQueryTypeRrsig AS112SummaryResponseCodesParamsQueryType = "RRSIG"` - `const AS112SummaryResponseCodesParamsQueryTypeRt AS112SummaryResponseCodesParamsQueryType = "RT"` - `const AS112SummaryResponseCodesParamsQueryTypeSig AS112SummaryResponseCodesParamsQueryType = "SIG"` - `const AS112SummaryResponseCodesParamsQueryTypeSink AS112SummaryResponseCodesParamsQueryType = "SINK"` - `const AS112SummaryResponseCodesParamsQueryTypeSMIMEA AS112SummaryResponseCodesParamsQueryType = "SMIMEA"` - `const AS112SummaryResponseCodesParamsQueryTypeSOA AS112SummaryResponseCodesParamsQueryType = "SOA"` - `const AS112SummaryResponseCodesParamsQueryTypeSPF AS112SummaryResponseCodesParamsQueryType = "SPF"` - `const AS112SummaryResponseCodesParamsQueryTypeSRV AS112SummaryResponseCodesParamsQueryType = "SRV"` - `const AS112SummaryResponseCodesParamsQueryTypeSSHFP AS112SummaryResponseCodesParamsQueryType = "SSHFP"` - `const AS112SummaryResponseCodesParamsQueryTypeSVCB AS112SummaryResponseCodesParamsQueryType = "SVCB"` - `const AS112SummaryResponseCodesParamsQueryTypeTa AS112SummaryResponseCodesParamsQueryType = "TA"` - `const AS112SummaryResponseCodesParamsQueryTypeTalink AS112SummaryResponseCodesParamsQueryType = "TALINK"` - `const AS112SummaryResponseCodesParamsQueryTypeTkey AS112SummaryResponseCodesParamsQueryType = "TKEY"` - `const AS112SummaryResponseCodesParamsQueryTypeTLSA AS112SummaryResponseCodesParamsQueryType = "TLSA"` - `const AS112SummaryResponseCodesParamsQueryTypeTSIG AS112SummaryResponseCodesParamsQueryType = "TSIG"` - `const AS112SummaryResponseCodesParamsQueryTypeTXT AS112SummaryResponseCodesParamsQueryType = "TXT"` - `const AS112SummaryResponseCodesParamsQueryTypeUinfo AS112SummaryResponseCodesParamsQueryType = "UINFO"` - `const AS112SummaryResponseCodesParamsQueryTypeUID AS112SummaryResponseCodesParamsQueryType = "UID"` - `const AS112SummaryResponseCodesParamsQueryTypeUnspec AS112SummaryResponseCodesParamsQueryType = "UNSPEC"` - `const AS112SummaryResponseCodesParamsQueryTypeURI AS112SummaryResponseCodesParamsQueryType = "URI"` - `const AS112SummaryResponseCodesParamsQueryTypeWks AS112SummaryResponseCodesParamsQueryType = "WKS"` - `const AS112SummaryResponseCodesParamsQueryTypeX25 AS112SummaryResponseCodesParamsQueryType = "X25"` - `const AS112SummaryResponseCodesParamsQueryTypeZonemd AS112SummaryResponseCodesParamsQueryType = "ZONEMD"` ### Returns - `type AS112SummaryResponseCodesResponse struct{…}` - `Meta AS112SummaryResponseCodesResponseMeta` Metadata for the results. - `ConfidenceInfo AS112SummaryResponseCodesResponseMetaConfidenceInfo` - `Annotations []AS112SummaryResponseCodesResponseMetaConfidenceInfoAnnotation` - `DataSource AS112SummaryResponseCodesResponseMetaConfidenceInfoAnnotationsDataSource` Data source for annotations. - `const AS112SummaryResponseCodesResponseMetaConfidenceInfoAnnotationsDataSourceAll AS112SummaryResponseCodesResponseMetaConfidenceInfoAnnotationsDataSource = "ALL"` - `const AS112SummaryResponseCodesResponseMetaConfidenceInfoAnnotationsDataSourceAIBots AS112SummaryResponseCodesResponseMetaConfidenceInfoAnnotationsDataSource = "AI_BOTS"` - `const AS112SummaryResponseCodesResponseMetaConfidenceInfoAnnotationsDataSourceAIGateway AS112SummaryResponseCodesResponseMetaConfidenceInfoAnnotationsDataSource = "AI_GATEWAY"` - `const AS112SummaryResponseCodesResponseMetaConfidenceInfoAnnotationsDataSourceBGP AS112SummaryResponseCodesResponseMetaConfidenceInfoAnnotationsDataSource = "BGP"` - `const AS112SummaryResponseCodesResponseMetaConfidenceInfoAnnotationsDataSourceBots AS112SummaryResponseCodesResponseMetaConfidenceInfoAnnotationsDataSource = "BOTS"` - `const AS112SummaryResponseCodesResponseMetaConfidenceInfoAnnotationsDataSourceConnectionAnomaly AS112SummaryResponseCodesResponseMetaConfidenceInfoAnnotationsDataSource = "CONNECTION_ANOMALY"` - `const AS112SummaryResponseCodesResponseMetaConfidenceInfoAnnotationsDataSourceCT AS112SummaryResponseCodesResponseMetaConfidenceInfoAnnotationsDataSource = "CT"` - `const AS112SummaryResponseCodesResponseMetaConfidenceInfoAnnotationsDataSourceDNS AS112SummaryResponseCodesResponseMetaConfidenceInfoAnnotationsDataSource = "DNS"` - `const AS112SummaryResponseCodesResponseMetaConfidenceInfoAnnotationsDataSourceDNSMagnitude AS112SummaryResponseCodesResponseMetaConfidenceInfoAnnotationsDataSource = "DNS_MAGNITUDE"` - `const AS112SummaryResponseCodesResponseMetaConfidenceInfoAnnotationsDataSourceDNSAS112 AS112SummaryResponseCodesResponseMetaConfidenceInfoAnnotationsDataSource = "DNS_AS112"` - `const AS112SummaryResponseCodesResponseMetaConfidenceInfoAnnotationsDataSourceDos AS112SummaryResponseCodesResponseMetaConfidenceInfoAnnotationsDataSource = "DOS"` - `const AS112SummaryResponseCodesResponseMetaConfidenceInfoAnnotationsDataSourceEmailRouting AS112SummaryResponseCodesResponseMetaConfidenceInfoAnnotationsDataSource = "EMAIL_ROUTING"` - `const AS112SummaryResponseCodesResponseMetaConfidenceInfoAnnotationsDataSourceEmailSecurity AS112SummaryResponseCodesResponseMetaConfidenceInfoAnnotationsDataSource = "EMAIL_SECURITY"` - `const AS112SummaryResponseCodesResponseMetaConfidenceInfoAnnotationsDataSourceFw AS112SummaryResponseCodesResponseMetaConfidenceInfoAnnotationsDataSource = "FW"` - `const AS112SummaryResponseCodesResponseMetaConfidenceInfoAnnotationsDataSourceFwPg AS112SummaryResponseCodesResponseMetaConfidenceInfoAnnotationsDataSource = "FW_PG"` - `const AS112SummaryResponseCodesResponseMetaConfidenceInfoAnnotationsDataSourceHTTP AS112SummaryResponseCodesResponseMetaConfidenceInfoAnnotationsDataSource = "HTTP"` - `const AS112SummaryResponseCodesResponseMetaConfidenceInfoAnnotationsDataSourceHTTPControl AS112SummaryResponseCodesResponseMetaConfidenceInfoAnnotationsDataSource = "HTTP_CONTROL"` - `const AS112SummaryResponseCodesResponseMetaConfidenceInfoAnnotationsDataSourceHTTPCrawlerReferer AS112SummaryResponseCodesResponseMetaConfidenceInfoAnnotationsDataSource = "HTTP_CRAWLER_REFERER"` - `const AS112SummaryResponseCodesResponseMetaConfidenceInfoAnnotationsDataSourceHTTPOrigins AS112SummaryResponseCodesResponseMetaConfidenceInfoAnnotationsDataSource = "HTTP_ORIGINS"` - `const AS112SummaryResponseCodesResponseMetaConfidenceInfoAnnotationsDataSourceIQI AS112SummaryResponseCodesResponseMetaConfidenceInfoAnnotationsDataSource = "IQI"` - `const AS112SummaryResponseCodesResponseMetaConfidenceInfoAnnotationsDataSourceLeakedCredentials AS112SummaryResponseCodesResponseMetaConfidenceInfoAnnotationsDataSource = "LEAKED_CREDENTIALS"` - `const AS112SummaryResponseCodesResponseMetaConfidenceInfoAnnotationsDataSourceNet AS112SummaryResponseCodesResponseMetaConfidenceInfoAnnotationsDataSource = "NET"` - `const AS112SummaryResponseCodesResponseMetaConfidenceInfoAnnotationsDataSourceRobotsTXT AS112SummaryResponseCodesResponseMetaConfidenceInfoAnnotationsDataSource = "ROBOTS_TXT"` - `const AS112SummaryResponseCodesResponseMetaConfidenceInfoAnnotationsDataSourceSpeed AS112SummaryResponseCodesResponseMetaConfidenceInfoAnnotationsDataSource = "SPEED"` - `const AS112SummaryResponseCodesResponseMetaConfidenceInfoAnnotationsDataSourceWorkersAI AS112SummaryResponseCodesResponseMetaConfidenceInfoAnnotationsDataSource = "WORKERS_AI"` - `Description string` - `EndDate Time` - `EventType AS112SummaryResponseCodesResponseMetaConfidenceInfoAnnotationsEventType` Event type for annotations. - `const AS112SummaryResponseCodesResponseMetaConfidenceInfoAnnotationsEventTypeEvent AS112SummaryResponseCodesResponseMetaConfidenceInfoAnnotationsEventType = "EVENT"` - `const AS112SummaryResponseCodesResponseMetaConfidenceInfoAnnotationsEventTypeGeneral AS112SummaryResponseCodesResponseMetaConfidenceInfoAnnotationsEventType = "GENERAL"` - `const AS112SummaryResponseCodesResponseMetaConfidenceInfoAnnotationsEventTypeOutage AS112SummaryResponseCodesResponseMetaConfidenceInfoAnnotationsEventType = "OUTAGE"` - `const AS112SummaryResponseCodesResponseMetaConfidenceInfoAnnotationsEventTypePartialProjection AS112SummaryResponseCodesResponseMetaConfidenceInfoAnnotationsEventType = "PARTIAL_PROJECTION"` - `const AS112SummaryResponseCodesResponseMetaConfidenceInfoAnnotationsEventTypePipeline AS112SummaryResponseCodesResponseMetaConfidenceInfoAnnotationsEventType = "PIPELINE"` - `const AS112SummaryResponseCodesResponseMetaConfidenceInfoAnnotationsEventTypeTrafficAnomaly AS112SummaryResponseCodesResponseMetaConfidenceInfoAnnotationsEventType = "TRAFFIC_ANOMALY"` - `IsInstantaneous bool` Whether event is a single point in time or a time range. - `LinkedURL string` - `StartDate Time` - `Tags []string` - `Level int64` Provides an indication of how much confidence Cloudflare has in the data. - `DateRange []AS112SummaryResponseCodesResponseMetaDateRange` - `EndTime Time` Adjusted end of date range. - `StartTime Time` Adjusted start of date range. - `LastUpdated Time` Timestamp of the last dataset update. - `Normalization AS112SummaryResponseCodesResponseMetaNormalization` Normalization method applied to the results. Refer to [Normalization methods](https://edgetunnel-b2h.pages.dev/radar/concepts/normalization/). - `const AS112SummaryResponseCodesResponseMetaNormalizationPercentage AS112SummaryResponseCodesResponseMetaNormalization = "PERCENTAGE"` - `const AS112SummaryResponseCodesResponseMetaNormalizationMin0Max AS112SummaryResponseCodesResponseMetaNormalization = "MIN0_MAX"` - `const AS112SummaryResponseCodesResponseMetaNormalizationMinMax AS112SummaryResponseCodesResponseMetaNormalization = "MIN_MAX"` - `const AS112SummaryResponseCodesResponseMetaNormalizationRawValues AS112SummaryResponseCodesResponseMetaNormalization = "RAW_VALUES"` - `const AS112SummaryResponseCodesResponseMetaNormalizationPercentageChange AS112SummaryResponseCodesResponseMetaNormalization = "PERCENTAGE_CHANGE"` - `const AS112SummaryResponseCodesResponseMetaNormalizationRollingAverage AS112SummaryResponseCodesResponseMetaNormalization = "ROLLING_AVERAGE"` - `const AS112SummaryResponseCodesResponseMetaNormalizationOverlappedPercentage AS112SummaryResponseCodesResponseMetaNormalization = "OVERLAPPED_PERCENTAGE"` - `const AS112SummaryResponseCodesResponseMetaNormalizationRatio AS112SummaryResponseCodesResponseMetaNormalization = "RATIO"` - `Units []AS112SummaryResponseCodesResponseMetaUnit` Measurement units for the results. - `Name string` - `Value string` - `Summary0 map[string, string]` ### Example ```go 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.ResponseCodes(context.TODO(), radar.AS112SummaryResponseCodesParams{ }) if err != nil { panic(err.Error()) } fmt.Printf("%+v\n", response.Meta) } ``` #### Response ```json { "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 } ``` # Timeseries Groups ## Get AS112 DNS queries by DNS protocol time series `client.Radar.AS112.TimeseriesGroups.Protocol(ctx, query) (*AS112TimeseriesGroupProtocolResponse, error)` **get** `/radar/as112/timeseries_groups/protocol` Retrieves the distribution of AS112 DNS requests classified by protocol over time. ### Parameters - `query AS112TimeseriesGroupProtocolParams` - `AggInterval param.Field[AS112TimeseriesGroupProtocolParamsAggInterval]` Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). Refer to [Aggregation intervals](https://edgetunnel-b2h.pages.dev/radar/concepts/aggregation-intervals/). When omitted, the interval is auto-selected from the requested date range; finer intervals are only available for shorter ranges. If the requested interval is too granular for the date range, the request is rejected. - `const AS112TimeseriesGroupProtocolParamsAggInterval15m AS112TimeseriesGroupProtocolParamsAggInterval = "15m"` - `const AS112TimeseriesGroupProtocolParamsAggInterval1h AS112TimeseriesGroupProtocolParamsAggInterval = "1h"` - `const AS112TimeseriesGroupProtocolParamsAggInterval1d AS112TimeseriesGroupProtocolParamsAggInterval = "1d"` - `const AS112TimeseriesGroupProtocolParamsAggInterval1w AS112TimeseriesGroupProtocolParamsAggInterval = "1w"` - `Continent param.Field[[]string]` 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]` End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected. - `DateRange param.Field[[]string]` Filters results by relative date range ending at the current time, with each value producing a separate series. Use `d` for days (up to `364d`) or `w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters). - `DateStart param.Field[[]Time]` Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected. - `Format param.Field[AS112TimeseriesGroupProtocolParamsFormat]` Format in which results will be returned. - `const AS112TimeseriesGroupProtocolParamsFormatJson AS112TimeseriesGroupProtocolParamsFormat = "JSON"` - `const AS112TimeseriesGroupProtocolParamsFormatCsv AS112TimeseriesGroupProtocolParamsFormat = "CSV"` - `Location param.Field[[]string]` 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]` Array of names used to label the series in the response. - `QueryType param.Field[[]AS112TimeseriesGroupProtocolParamsQueryType]` Filters results by DNS query type. - `const AS112TimeseriesGroupProtocolParamsQueryTypeA AS112TimeseriesGroupProtocolParamsQueryType = "A"` - `const AS112TimeseriesGroupProtocolParamsQueryTypeAAAA AS112TimeseriesGroupProtocolParamsQueryType = "AAAA"` - `const AS112TimeseriesGroupProtocolParamsQueryTypeA6 AS112TimeseriesGroupProtocolParamsQueryType = "A6"` - `const AS112TimeseriesGroupProtocolParamsQueryTypeAfsdb AS112TimeseriesGroupProtocolParamsQueryType = "AFSDB"` - `const AS112TimeseriesGroupProtocolParamsQueryTypeAny AS112TimeseriesGroupProtocolParamsQueryType = "ANY"` - `const AS112TimeseriesGroupProtocolParamsQueryTypeApl AS112TimeseriesGroupProtocolParamsQueryType = "APL"` - `const AS112TimeseriesGroupProtocolParamsQueryTypeAtma AS112TimeseriesGroupProtocolParamsQueryType = "ATMA"` - `const AS112TimeseriesGroupProtocolParamsQueryTypeAXFR AS112TimeseriesGroupProtocolParamsQueryType = "AXFR"` - `const AS112TimeseriesGroupProtocolParamsQueryTypeCAA AS112TimeseriesGroupProtocolParamsQueryType = "CAA"` - `const AS112TimeseriesGroupProtocolParamsQueryTypeCdnskey AS112TimeseriesGroupProtocolParamsQueryType = "CDNSKEY"` - `const AS112TimeseriesGroupProtocolParamsQueryTypeCds AS112TimeseriesGroupProtocolParamsQueryType = "CDS"` - `const AS112TimeseriesGroupProtocolParamsQueryTypeCERT AS112TimeseriesGroupProtocolParamsQueryType = "CERT"` - `const AS112TimeseriesGroupProtocolParamsQueryTypeCNAME AS112TimeseriesGroupProtocolParamsQueryType = "CNAME"` - `const AS112TimeseriesGroupProtocolParamsQueryTypeCsync AS112TimeseriesGroupProtocolParamsQueryType = "CSYNC"` - `const AS112TimeseriesGroupProtocolParamsQueryTypeDhcid AS112TimeseriesGroupProtocolParamsQueryType = "DHCID"` - `const AS112TimeseriesGroupProtocolParamsQueryTypeDlv AS112TimeseriesGroupProtocolParamsQueryType = "DLV"` - `const AS112TimeseriesGroupProtocolParamsQueryTypeDname AS112TimeseriesGroupProtocolParamsQueryType = "DNAME"` - `const AS112TimeseriesGroupProtocolParamsQueryTypeDNSKEY AS112TimeseriesGroupProtocolParamsQueryType = "DNSKEY"` - `const AS112TimeseriesGroupProtocolParamsQueryTypeDoa AS112TimeseriesGroupProtocolParamsQueryType = "DOA"` - `const AS112TimeseriesGroupProtocolParamsQueryTypeDS AS112TimeseriesGroupProtocolParamsQueryType = "DS"` - `const AS112TimeseriesGroupProtocolParamsQueryTypeEid AS112TimeseriesGroupProtocolParamsQueryType = "EID"` - `const AS112TimeseriesGroupProtocolParamsQueryTypeEui48 AS112TimeseriesGroupProtocolParamsQueryType = "EUI48"` - `const AS112TimeseriesGroupProtocolParamsQueryTypeEui64 AS112TimeseriesGroupProtocolParamsQueryType = "EUI64"` - `const AS112TimeseriesGroupProtocolParamsQueryTypeGpos AS112TimeseriesGroupProtocolParamsQueryType = "GPOS"` - `const AS112TimeseriesGroupProtocolParamsQueryTypeGid AS112TimeseriesGroupProtocolParamsQueryType = "GID"` - `const AS112TimeseriesGroupProtocolParamsQueryTypeHinfo AS112TimeseriesGroupProtocolParamsQueryType = "HINFO"` - `const AS112TimeseriesGroupProtocolParamsQueryTypeHip AS112TimeseriesGroupProtocolParamsQueryType = "HIP"` - `const AS112TimeseriesGroupProtocolParamsQueryTypeHTTPS AS112TimeseriesGroupProtocolParamsQueryType = "HTTPS"` - `const AS112TimeseriesGroupProtocolParamsQueryTypeIpseckey AS112TimeseriesGroupProtocolParamsQueryType = "IPSECKEY"` - `const AS112TimeseriesGroupProtocolParamsQueryTypeIsdn AS112TimeseriesGroupProtocolParamsQueryType = "ISDN"` - `const AS112TimeseriesGroupProtocolParamsQueryTypeIxfr AS112TimeseriesGroupProtocolParamsQueryType = "IXFR"` - `const AS112TimeseriesGroupProtocolParamsQueryTypeKey AS112TimeseriesGroupProtocolParamsQueryType = "KEY"` - `const AS112TimeseriesGroupProtocolParamsQueryTypeKx AS112TimeseriesGroupProtocolParamsQueryType = "KX"` - `const AS112TimeseriesGroupProtocolParamsQueryTypeL32 AS112TimeseriesGroupProtocolParamsQueryType = "L32"` - `const AS112TimeseriesGroupProtocolParamsQueryTypeL64 AS112TimeseriesGroupProtocolParamsQueryType = "L64"` - `const AS112TimeseriesGroupProtocolParamsQueryTypeLOC AS112TimeseriesGroupProtocolParamsQueryType = "LOC"` - `const AS112TimeseriesGroupProtocolParamsQueryTypeLp AS112TimeseriesGroupProtocolParamsQueryType = "LP"` - `const AS112TimeseriesGroupProtocolParamsQueryTypeMaila AS112TimeseriesGroupProtocolParamsQueryType = "MAILA"` - `const AS112TimeseriesGroupProtocolParamsQueryTypeMailb AS112TimeseriesGroupProtocolParamsQueryType = "MAILB"` - `const AS112TimeseriesGroupProtocolParamsQueryTypeMB AS112TimeseriesGroupProtocolParamsQueryType = "MB"` - `const AS112TimeseriesGroupProtocolParamsQueryTypeMd AS112TimeseriesGroupProtocolParamsQueryType = "MD"` - `const AS112TimeseriesGroupProtocolParamsQueryTypeMf AS112TimeseriesGroupProtocolParamsQueryType = "MF"` - `const AS112TimeseriesGroupProtocolParamsQueryTypeMg AS112TimeseriesGroupProtocolParamsQueryType = "MG"` - `const AS112TimeseriesGroupProtocolParamsQueryTypeMinfo AS112TimeseriesGroupProtocolParamsQueryType = "MINFO"` - `const AS112TimeseriesGroupProtocolParamsQueryTypeMr AS112TimeseriesGroupProtocolParamsQueryType = "MR"` - `const AS112TimeseriesGroupProtocolParamsQueryTypeMX AS112TimeseriesGroupProtocolParamsQueryType = "MX"` - `const AS112TimeseriesGroupProtocolParamsQueryTypeNAPTR AS112TimeseriesGroupProtocolParamsQueryType = "NAPTR"` - `const AS112TimeseriesGroupProtocolParamsQueryTypeNb AS112TimeseriesGroupProtocolParamsQueryType = "NB"` - `const AS112TimeseriesGroupProtocolParamsQueryTypeNbstat AS112TimeseriesGroupProtocolParamsQueryType = "NBSTAT"` - `const AS112TimeseriesGroupProtocolParamsQueryTypeNid AS112TimeseriesGroupProtocolParamsQueryType = "NID"` - `const AS112TimeseriesGroupProtocolParamsQueryTypeNimloc AS112TimeseriesGroupProtocolParamsQueryType = "NIMLOC"` - `const AS112TimeseriesGroupProtocolParamsQueryTypeNinfo AS112TimeseriesGroupProtocolParamsQueryType = "NINFO"` - `const AS112TimeseriesGroupProtocolParamsQueryTypeNS AS112TimeseriesGroupProtocolParamsQueryType = "NS"` - `const AS112TimeseriesGroupProtocolParamsQueryTypeNsap AS112TimeseriesGroupProtocolParamsQueryType = "NSAP"` - `const AS112TimeseriesGroupProtocolParamsQueryTypeNsec AS112TimeseriesGroupProtocolParamsQueryType = "NSEC"` - `const AS112TimeseriesGroupProtocolParamsQueryTypeNsec3 AS112TimeseriesGroupProtocolParamsQueryType = "NSEC3"` - `const AS112TimeseriesGroupProtocolParamsQueryTypeNsec3Param AS112TimeseriesGroupProtocolParamsQueryType = "NSEC3PARAM"` - `const AS112TimeseriesGroupProtocolParamsQueryTypeNull AS112TimeseriesGroupProtocolParamsQueryType = "NULL"` - `const AS112TimeseriesGroupProtocolParamsQueryTypeNxt AS112TimeseriesGroupProtocolParamsQueryType = "NXT"` - `const AS112TimeseriesGroupProtocolParamsQueryTypeOpenpgpkey AS112TimeseriesGroupProtocolParamsQueryType = "OPENPGPKEY"` - `const AS112TimeseriesGroupProtocolParamsQueryTypeOpt AS112TimeseriesGroupProtocolParamsQueryType = "OPT"` - `const AS112TimeseriesGroupProtocolParamsQueryTypePTR AS112TimeseriesGroupProtocolParamsQueryType = "PTR"` - `const AS112TimeseriesGroupProtocolParamsQueryTypePx AS112TimeseriesGroupProtocolParamsQueryType = "PX"` - `const AS112TimeseriesGroupProtocolParamsQueryTypeRkey AS112TimeseriesGroupProtocolParamsQueryType = "RKEY"` - `const AS112TimeseriesGroupProtocolParamsQueryTypeRp AS112TimeseriesGroupProtocolParamsQueryType = "RP"` - `const AS112TimeseriesGroupProtocolParamsQueryTypeRrsig AS112TimeseriesGroupProtocolParamsQueryType = "RRSIG"` - `const AS112TimeseriesGroupProtocolParamsQueryTypeRt AS112TimeseriesGroupProtocolParamsQueryType = "RT"` - `const AS112TimeseriesGroupProtocolParamsQueryTypeSig AS112TimeseriesGroupProtocolParamsQueryType = "SIG"` - `const AS112TimeseriesGroupProtocolParamsQueryTypeSink AS112TimeseriesGroupProtocolParamsQueryType = "SINK"` - `const AS112TimeseriesGroupProtocolParamsQueryTypeSMIMEA AS112TimeseriesGroupProtocolParamsQueryType = "SMIMEA"` - `const AS112TimeseriesGroupProtocolParamsQueryTypeSOA AS112TimeseriesGroupProtocolParamsQueryType = "SOA"` - `const AS112TimeseriesGroupProtocolParamsQueryTypeSPF AS112TimeseriesGroupProtocolParamsQueryType = "SPF"` - `const AS112TimeseriesGroupProtocolParamsQueryTypeSRV AS112TimeseriesGroupProtocolParamsQueryType = "SRV"` - `const AS112TimeseriesGroupProtocolParamsQueryTypeSSHFP AS112TimeseriesGroupProtocolParamsQueryType = "SSHFP"` - `const AS112TimeseriesGroupProtocolParamsQueryTypeSVCB AS112TimeseriesGroupProtocolParamsQueryType = "SVCB"` - `const AS112TimeseriesGroupProtocolParamsQueryTypeTa AS112TimeseriesGroupProtocolParamsQueryType = "TA"` - `const AS112TimeseriesGroupProtocolParamsQueryTypeTalink AS112TimeseriesGroupProtocolParamsQueryType = "TALINK"` - `const AS112TimeseriesGroupProtocolParamsQueryTypeTkey AS112TimeseriesGroupProtocolParamsQueryType = "TKEY"` - `const AS112TimeseriesGroupProtocolParamsQueryTypeTLSA AS112TimeseriesGroupProtocolParamsQueryType = "TLSA"` - `const AS112TimeseriesGroupProtocolParamsQueryTypeTSIG AS112TimeseriesGroupProtocolParamsQueryType = "TSIG"` - `const AS112TimeseriesGroupProtocolParamsQueryTypeTXT AS112TimeseriesGroupProtocolParamsQueryType = "TXT"` - `const AS112TimeseriesGroupProtocolParamsQueryTypeUinfo AS112TimeseriesGroupProtocolParamsQueryType = "UINFO"` - `const AS112TimeseriesGroupProtocolParamsQueryTypeUID AS112TimeseriesGroupProtocolParamsQueryType = "UID"` - `const AS112TimeseriesGroupProtocolParamsQueryTypeUnspec AS112TimeseriesGroupProtocolParamsQueryType = "UNSPEC"` - `const AS112TimeseriesGroupProtocolParamsQueryTypeURI AS112TimeseriesGroupProtocolParamsQueryType = "URI"` - `const AS112TimeseriesGroupProtocolParamsQueryTypeWks AS112TimeseriesGroupProtocolParamsQueryType = "WKS"` - `const AS112TimeseriesGroupProtocolParamsQueryTypeX25 AS112TimeseriesGroupProtocolParamsQueryType = "X25"` - `const AS112TimeseriesGroupProtocolParamsQueryTypeZonemd AS112TimeseriesGroupProtocolParamsQueryType = "ZONEMD"` - `ResponseCode param.Field[[]AS112TimeseriesGroupProtocolParamsResponseCode]` Filters results by DNS response code. - `const AS112TimeseriesGroupProtocolParamsResponseCodeNoerror AS112TimeseriesGroupProtocolParamsResponseCode = "NOERROR"` - `const AS112TimeseriesGroupProtocolParamsResponseCodeFormerr AS112TimeseriesGroupProtocolParamsResponseCode = "FORMERR"` - `const AS112TimeseriesGroupProtocolParamsResponseCodeServfail AS112TimeseriesGroupProtocolParamsResponseCode = "SERVFAIL"` - `const AS112TimeseriesGroupProtocolParamsResponseCodeNxdomain AS112TimeseriesGroupProtocolParamsResponseCode = "NXDOMAIN"` - `const AS112TimeseriesGroupProtocolParamsResponseCodeNotimp AS112TimeseriesGroupProtocolParamsResponseCode = "NOTIMP"` - `const AS112TimeseriesGroupProtocolParamsResponseCodeRefused AS112TimeseriesGroupProtocolParamsResponseCode = "REFUSED"` - `const AS112TimeseriesGroupProtocolParamsResponseCodeYxdomain AS112TimeseriesGroupProtocolParamsResponseCode = "YXDOMAIN"` - `const AS112TimeseriesGroupProtocolParamsResponseCodeYxrrset AS112TimeseriesGroupProtocolParamsResponseCode = "YXRRSET"` - `const AS112TimeseriesGroupProtocolParamsResponseCodeNxrrset AS112TimeseriesGroupProtocolParamsResponseCode = "NXRRSET"` - `const AS112TimeseriesGroupProtocolParamsResponseCodeNotauth AS112TimeseriesGroupProtocolParamsResponseCode = "NOTAUTH"` - `const AS112TimeseriesGroupProtocolParamsResponseCodeNotzone AS112TimeseriesGroupProtocolParamsResponseCode = "NOTZONE"` - `const AS112TimeseriesGroupProtocolParamsResponseCodeBadsig AS112TimeseriesGroupProtocolParamsResponseCode = "BADSIG"` - `const AS112TimeseriesGroupProtocolParamsResponseCodeBadkey AS112TimeseriesGroupProtocolParamsResponseCode = "BADKEY"` - `const AS112TimeseriesGroupProtocolParamsResponseCodeBadtime AS112TimeseriesGroupProtocolParamsResponseCode = "BADTIME"` - `const AS112TimeseriesGroupProtocolParamsResponseCodeBadmode AS112TimeseriesGroupProtocolParamsResponseCode = "BADMODE"` - `const AS112TimeseriesGroupProtocolParamsResponseCodeBadname AS112TimeseriesGroupProtocolParamsResponseCode = "BADNAME"` - `const AS112TimeseriesGroupProtocolParamsResponseCodeBadalg AS112TimeseriesGroupProtocolParamsResponseCode = "BADALG"` - `const AS112TimeseriesGroupProtocolParamsResponseCodeBadtrunc AS112TimeseriesGroupProtocolParamsResponseCode = "BADTRUNC"` - `const AS112TimeseriesGroupProtocolParamsResponseCodeBadcookie AS112TimeseriesGroupProtocolParamsResponseCode = "BADCOOKIE"` ### Returns - `type AS112TimeseriesGroupProtocolResponse struct{…}` - `Meta AS112TimeseriesGroupProtocolResponseMeta` Metadata for the results. - `AggInterval AS112TimeseriesGroupProtocolResponseMetaAggInterval` Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). Refer to [Aggregation intervals](https://edgetunnel-b2h.pages.dev/radar/concepts/aggregation-intervals/). - `const AS112TimeseriesGroupProtocolResponseMetaAggIntervalFifteenMinutes AS112TimeseriesGroupProtocolResponseMetaAggInterval = "FIFTEEN_MINUTES"` - `const AS112TimeseriesGroupProtocolResponseMetaAggIntervalOneHour AS112TimeseriesGroupProtocolResponseMetaAggInterval = "ONE_HOUR"` - `const AS112TimeseriesGroupProtocolResponseMetaAggIntervalOneDay AS112TimeseriesGroupProtocolResponseMetaAggInterval = "ONE_DAY"` - `const AS112TimeseriesGroupProtocolResponseMetaAggIntervalOneWeek AS112TimeseriesGroupProtocolResponseMetaAggInterval = "ONE_WEEK"` - `const AS112TimeseriesGroupProtocolResponseMetaAggIntervalOneMonth AS112TimeseriesGroupProtocolResponseMetaAggInterval = "ONE_MONTH"` - `ConfidenceInfo AS112TimeseriesGroupProtocolResponseMetaConfidenceInfo` - `Annotations []AS112TimeseriesGroupProtocolResponseMetaConfidenceInfoAnnotation` - `DataSource AS112TimeseriesGroupProtocolResponseMetaConfidenceInfoAnnotationsDataSource` Data source for annotations. - `const AS112TimeseriesGroupProtocolResponseMetaConfidenceInfoAnnotationsDataSourceAll AS112TimeseriesGroupProtocolResponseMetaConfidenceInfoAnnotationsDataSource = "ALL"` - `const AS112TimeseriesGroupProtocolResponseMetaConfidenceInfoAnnotationsDataSourceAIBots AS112TimeseriesGroupProtocolResponseMetaConfidenceInfoAnnotationsDataSource = "AI_BOTS"` - `const AS112TimeseriesGroupProtocolResponseMetaConfidenceInfoAnnotationsDataSourceAIGateway AS112TimeseriesGroupProtocolResponseMetaConfidenceInfoAnnotationsDataSource = "AI_GATEWAY"` - `const AS112TimeseriesGroupProtocolResponseMetaConfidenceInfoAnnotationsDataSourceBGP AS112TimeseriesGroupProtocolResponseMetaConfidenceInfoAnnotationsDataSource = "BGP"` - `const AS112TimeseriesGroupProtocolResponseMetaConfidenceInfoAnnotationsDataSourceBots AS112TimeseriesGroupProtocolResponseMetaConfidenceInfoAnnotationsDataSource = "BOTS"` - `const AS112TimeseriesGroupProtocolResponseMetaConfidenceInfoAnnotationsDataSourceConnectionAnomaly AS112TimeseriesGroupProtocolResponseMetaConfidenceInfoAnnotationsDataSource = "CONNECTION_ANOMALY"` - `const AS112TimeseriesGroupProtocolResponseMetaConfidenceInfoAnnotationsDataSourceCT AS112TimeseriesGroupProtocolResponseMetaConfidenceInfoAnnotationsDataSource = "CT"` - `const AS112TimeseriesGroupProtocolResponseMetaConfidenceInfoAnnotationsDataSourceDNS AS112TimeseriesGroupProtocolResponseMetaConfidenceInfoAnnotationsDataSource = "DNS"` - `const AS112TimeseriesGroupProtocolResponseMetaConfidenceInfoAnnotationsDataSourceDNSMagnitude AS112TimeseriesGroupProtocolResponseMetaConfidenceInfoAnnotationsDataSource = "DNS_MAGNITUDE"` - `const AS112TimeseriesGroupProtocolResponseMetaConfidenceInfoAnnotationsDataSourceDNSAS112 AS112TimeseriesGroupProtocolResponseMetaConfidenceInfoAnnotationsDataSource = "DNS_AS112"` - `const AS112TimeseriesGroupProtocolResponseMetaConfidenceInfoAnnotationsDataSourceDos AS112TimeseriesGroupProtocolResponseMetaConfidenceInfoAnnotationsDataSource = "DOS"` - `const AS112TimeseriesGroupProtocolResponseMetaConfidenceInfoAnnotationsDataSourceEmailRouting AS112TimeseriesGroupProtocolResponseMetaConfidenceInfoAnnotationsDataSource = "EMAIL_ROUTING"` - `const AS112TimeseriesGroupProtocolResponseMetaConfidenceInfoAnnotationsDataSourceEmailSecurity AS112TimeseriesGroupProtocolResponseMetaConfidenceInfoAnnotationsDataSource = "EMAIL_SECURITY"` - `const AS112TimeseriesGroupProtocolResponseMetaConfidenceInfoAnnotationsDataSourceFw AS112TimeseriesGroupProtocolResponseMetaConfidenceInfoAnnotationsDataSource = "FW"` - `const AS112TimeseriesGroupProtocolResponseMetaConfidenceInfoAnnotationsDataSourceFwPg AS112TimeseriesGroupProtocolResponseMetaConfidenceInfoAnnotationsDataSource = "FW_PG"` - `const AS112TimeseriesGroupProtocolResponseMetaConfidenceInfoAnnotationsDataSourceHTTP AS112TimeseriesGroupProtocolResponseMetaConfidenceInfoAnnotationsDataSource = "HTTP"` - `const AS112TimeseriesGroupProtocolResponseMetaConfidenceInfoAnnotationsDataSourceHTTPControl AS112TimeseriesGroupProtocolResponseMetaConfidenceInfoAnnotationsDataSource = "HTTP_CONTROL"` - `const AS112TimeseriesGroupProtocolResponseMetaConfidenceInfoAnnotationsDataSourceHTTPCrawlerReferer AS112TimeseriesGroupProtocolResponseMetaConfidenceInfoAnnotationsDataSource = "HTTP_CRAWLER_REFERER"` - `const AS112TimeseriesGroupProtocolResponseMetaConfidenceInfoAnnotationsDataSourceHTTPOrigins AS112TimeseriesGroupProtocolResponseMetaConfidenceInfoAnnotationsDataSource = "HTTP_ORIGINS"` - `const AS112TimeseriesGroupProtocolResponseMetaConfidenceInfoAnnotationsDataSourceIQI AS112TimeseriesGroupProtocolResponseMetaConfidenceInfoAnnotationsDataSource = "IQI"` - `const AS112TimeseriesGroupProtocolResponseMetaConfidenceInfoAnnotationsDataSourceLeakedCredentials AS112TimeseriesGroupProtocolResponseMetaConfidenceInfoAnnotationsDataSource = "LEAKED_CREDENTIALS"` - `const AS112TimeseriesGroupProtocolResponseMetaConfidenceInfoAnnotationsDataSourceNet AS112TimeseriesGroupProtocolResponseMetaConfidenceInfoAnnotationsDataSource = "NET"` - `const AS112TimeseriesGroupProtocolResponseMetaConfidenceInfoAnnotationsDataSourceRobotsTXT AS112TimeseriesGroupProtocolResponseMetaConfidenceInfoAnnotationsDataSource = "ROBOTS_TXT"` - `const AS112TimeseriesGroupProtocolResponseMetaConfidenceInfoAnnotationsDataSourceSpeed AS112TimeseriesGroupProtocolResponseMetaConfidenceInfoAnnotationsDataSource = "SPEED"` - `const AS112TimeseriesGroupProtocolResponseMetaConfidenceInfoAnnotationsDataSourceWorkersAI AS112TimeseriesGroupProtocolResponseMetaConfidenceInfoAnnotationsDataSource = "WORKERS_AI"` - `Description string` - `EndDate Time` - `EventType AS112TimeseriesGroupProtocolResponseMetaConfidenceInfoAnnotationsEventType` Event type for annotations. - `const AS112TimeseriesGroupProtocolResponseMetaConfidenceInfoAnnotationsEventTypeEvent AS112TimeseriesGroupProtocolResponseMetaConfidenceInfoAnnotationsEventType = "EVENT"` - `const AS112TimeseriesGroupProtocolResponseMetaConfidenceInfoAnnotationsEventTypeGeneral AS112TimeseriesGroupProtocolResponseMetaConfidenceInfoAnnotationsEventType = "GENERAL"` - `const AS112TimeseriesGroupProtocolResponseMetaConfidenceInfoAnnotationsEventTypeOutage AS112TimeseriesGroupProtocolResponseMetaConfidenceInfoAnnotationsEventType = "OUTAGE"` - `const AS112TimeseriesGroupProtocolResponseMetaConfidenceInfoAnnotationsEventTypePartialProjection AS112TimeseriesGroupProtocolResponseMetaConfidenceInfoAnnotationsEventType = "PARTIAL_PROJECTION"` - `const AS112TimeseriesGroupProtocolResponseMetaConfidenceInfoAnnotationsEventTypePipeline AS112TimeseriesGroupProtocolResponseMetaConfidenceInfoAnnotationsEventType = "PIPELINE"` - `const AS112TimeseriesGroupProtocolResponseMetaConfidenceInfoAnnotationsEventTypeTrafficAnomaly AS112TimeseriesGroupProtocolResponseMetaConfidenceInfoAnnotationsEventType = "TRAFFIC_ANOMALY"` - `IsInstantaneous bool` Whether event is a single point in time or a time range. - `LinkedURL string` - `StartDate Time` - `Tags []string` - `Level int64` Provides an indication of how much confidence Cloudflare has in the data. - `DateRange []AS112TimeseriesGroupProtocolResponseMetaDateRange` - `EndTime Time` Adjusted end of date range. - `StartTime Time` Adjusted start of date range. - `LastUpdated Time` Timestamp of the last dataset update. - `Normalization AS112TimeseriesGroupProtocolResponseMetaNormalization` Normalization method applied to the results. Refer to [Normalization methods](https://edgetunnel-b2h.pages.dev/radar/concepts/normalization/). - `const AS112TimeseriesGroupProtocolResponseMetaNormalizationPercentage AS112TimeseriesGroupProtocolResponseMetaNormalization = "PERCENTAGE"` - `const AS112TimeseriesGroupProtocolResponseMetaNormalizationMin0Max AS112TimeseriesGroupProtocolResponseMetaNormalization = "MIN0_MAX"` - `const AS112TimeseriesGroupProtocolResponseMetaNormalizationMinMax AS112TimeseriesGroupProtocolResponseMetaNormalization = "MIN_MAX"` - `const AS112TimeseriesGroupProtocolResponseMetaNormalizationRawValues AS112TimeseriesGroupProtocolResponseMetaNormalization = "RAW_VALUES"` - `const AS112TimeseriesGroupProtocolResponseMetaNormalizationPercentageChange AS112TimeseriesGroupProtocolResponseMetaNormalization = "PERCENTAGE_CHANGE"` - `const AS112TimeseriesGroupProtocolResponseMetaNormalizationRollingAverage AS112TimeseriesGroupProtocolResponseMetaNormalization = "ROLLING_AVERAGE"` - `const AS112TimeseriesGroupProtocolResponseMetaNormalizationOverlappedPercentage AS112TimeseriesGroupProtocolResponseMetaNormalization = "OVERLAPPED_PERCENTAGE"` - `const AS112TimeseriesGroupProtocolResponseMetaNormalizationRatio AS112TimeseriesGroupProtocolResponseMetaNormalization = "RATIO"` - `Units []AS112TimeseriesGroupProtocolResponseMetaUnit` Measurement units for the results. - `Name string` - `Value string` - `Serie0 AS112TimeseriesGroupProtocolResponseSerie0` - `HTTPS []string` - `TCP []string` - `TLS []string` - `Udp []string` ### Example ```go 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.TimeseriesGroups.Protocol(context.TODO(), radar.AS112TimeseriesGroupProtocolParams{ }) if err != nil { panic(err.Error()) } fmt.Printf("%+v\n", response.Meta) } ``` #### Response ```json { "result": { "meta": { "aggInterval": "FIFTEEN_MINUTES", "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" } ] }, "serie_0": { "HTTPS": [ "10" ], "TCP": [ "10" ], "TLS": [ "10" ], "UDP": [ "10" ] } }, "success": true } ``` ## Get AS112 DNS queries by type time series `client.Radar.AS112.TimeseriesGroups.QueryType(ctx, query) (*AS112TimeseriesGroupQueryTypeResponse, error)` **get** `/radar/as112/timeseries_groups/query_type` Retrieves the distribution of AS112 DNS queries by type over time. ### Parameters - `query AS112TimeseriesGroupQueryTypeParams` - `AggInterval param.Field[AS112TimeseriesGroupQueryTypeParamsAggInterval]` Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). Refer to [Aggregation intervals](https://edgetunnel-b2h.pages.dev/radar/concepts/aggregation-intervals/). When omitted, the interval is auto-selected from the requested date range; finer intervals are only available for shorter ranges. If the requested interval is too granular for the date range, the request is rejected. - `const AS112TimeseriesGroupQueryTypeParamsAggInterval15m AS112TimeseriesGroupQueryTypeParamsAggInterval = "15m"` - `const AS112TimeseriesGroupQueryTypeParamsAggInterval1h AS112TimeseriesGroupQueryTypeParamsAggInterval = "1h"` - `const AS112TimeseriesGroupQueryTypeParamsAggInterval1d AS112TimeseriesGroupQueryTypeParamsAggInterval = "1d"` - `const AS112TimeseriesGroupQueryTypeParamsAggInterval1w AS112TimeseriesGroupQueryTypeParamsAggInterval = "1w"` - `Continent param.Field[[]string]` 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]` End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected. - `DateRange param.Field[[]string]` Filters results by relative date range ending at the current time, with each value producing a separate series. Use `d` for days (up to `364d`) or `w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters). - `DateStart param.Field[[]Time]` Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected. - `Format param.Field[AS112TimeseriesGroupQueryTypeParamsFormat]` Format in which results will be returned. - `const AS112TimeseriesGroupQueryTypeParamsFormatJson AS112TimeseriesGroupQueryTypeParamsFormat = "JSON"` - `const AS112TimeseriesGroupQueryTypeParamsFormatCsv AS112TimeseriesGroupQueryTypeParamsFormat = "CSV"` - `LimitPerGroup param.Field[int64]` 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. Only supported on high-cardinality dimensions; otherwise the request is rejected. Minimum value is 2. - `Location param.Field[[]string]` 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]` Array of names used to label the series in the response. - `Protocol param.Field[[]AS112TimeseriesGroupQueryTypeParamsProtocol]` Filters results by DNS transport protocol. - `const AS112TimeseriesGroupQueryTypeParamsProtocolUdp AS112TimeseriesGroupQueryTypeParamsProtocol = "UDP"` - `const AS112TimeseriesGroupQueryTypeParamsProtocolTCP AS112TimeseriesGroupQueryTypeParamsProtocol = "TCP"` - `const AS112TimeseriesGroupQueryTypeParamsProtocolHTTPS AS112TimeseriesGroupQueryTypeParamsProtocol = "HTTPS"` - `const AS112TimeseriesGroupQueryTypeParamsProtocolTLS AS112TimeseriesGroupQueryTypeParamsProtocol = "TLS"` - `ResponseCode param.Field[[]AS112TimeseriesGroupQueryTypeParamsResponseCode]` Filters results by DNS response code. - `const AS112TimeseriesGroupQueryTypeParamsResponseCodeNoerror AS112TimeseriesGroupQueryTypeParamsResponseCode = "NOERROR"` - `const AS112TimeseriesGroupQueryTypeParamsResponseCodeFormerr AS112TimeseriesGroupQueryTypeParamsResponseCode = "FORMERR"` - `const AS112TimeseriesGroupQueryTypeParamsResponseCodeServfail AS112TimeseriesGroupQueryTypeParamsResponseCode = "SERVFAIL"` - `const AS112TimeseriesGroupQueryTypeParamsResponseCodeNxdomain AS112TimeseriesGroupQueryTypeParamsResponseCode = "NXDOMAIN"` - `const AS112TimeseriesGroupQueryTypeParamsResponseCodeNotimp AS112TimeseriesGroupQueryTypeParamsResponseCode = "NOTIMP"` - `const AS112TimeseriesGroupQueryTypeParamsResponseCodeRefused AS112TimeseriesGroupQueryTypeParamsResponseCode = "REFUSED"` - `const AS112TimeseriesGroupQueryTypeParamsResponseCodeYxdomain AS112TimeseriesGroupQueryTypeParamsResponseCode = "YXDOMAIN"` - `const AS112TimeseriesGroupQueryTypeParamsResponseCodeYxrrset AS112TimeseriesGroupQueryTypeParamsResponseCode = "YXRRSET"` - `const AS112TimeseriesGroupQueryTypeParamsResponseCodeNxrrset AS112TimeseriesGroupQueryTypeParamsResponseCode = "NXRRSET"` - `const AS112TimeseriesGroupQueryTypeParamsResponseCodeNotauth AS112TimeseriesGroupQueryTypeParamsResponseCode = "NOTAUTH"` - `const AS112TimeseriesGroupQueryTypeParamsResponseCodeNotzone AS112TimeseriesGroupQueryTypeParamsResponseCode = "NOTZONE"` - `const AS112TimeseriesGroupQueryTypeParamsResponseCodeBadsig AS112TimeseriesGroupQueryTypeParamsResponseCode = "BADSIG"` - `const AS112TimeseriesGroupQueryTypeParamsResponseCodeBadkey AS112TimeseriesGroupQueryTypeParamsResponseCode = "BADKEY"` - `const AS112TimeseriesGroupQueryTypeParamsResponseCodeBadtime AS112TimeseriesGroupQueryTypeParamsResponseCode = "BADTIME"` - `const AS112TimeseriesGroupQueryTypeParamsResponseCodeBadmode AS112TimeseriesGroupQueryTypeParamsResponseCode = "BADMODE"` - `const AS112TimeseriesGroupQueryTypeParamsResponseCodeBadname AS112TimeseriesGroupQueryTypeParamsResponseCode = "BADNAME"` - `const AS112TimeseriesGroupQueryTypeParamsResponseCodeBadalg AS112TimeseriesGroupQueryTypeParamsResponseCode = "BADALG"` - `const AS112TimeseriesGroupQueryTypeParamsResponseCodeBadtrunc AS112TimeseriesGroupQueryTypeParamsResponseCode = "BADTRUNC"` - `const AS112TimeseriesGroupQueryTypeParamsResponseCodeBadcookie AS112TimeseriesGroupQueryTypeParamsResponseCode = "BADCOOKIE"` ### Returns - `type AS112TimeseriesGroupQueryTypeResponse struct{…}` - `Meta AS112TimeseriesGroupQueryTypeResponseMeta` Metadata for the results. - `AggInterval AS112TimeseriesGroupQueryTypeResponseMetaAggInterval` Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). Refer to [Aggregation intervals](https://edgetunnel-b2h.pages.dev/radar/concepts/aggregation-intervals/). - `const AS112TimeseriesGroupQueryTypeResponseMetaAggIntervalFifteenMinutes AS112TimeseriesGroupQueryTypeResponseMetaAggInterval = "FIFTEEN_MINUTES"` - `const AS112TimeseriesGroupQueryTypeResponseMetaAggIntervalOneHour AS112TimeseriesGroupQueryTypeResponseMetaAggInterval = "ONE_HOUR"` - `const AS112TimeseriesGroupQueryTypeResponseMetaAggIntervalOneDay AS112TimeseriesGroupQueryTypeResponseMetaAggInterval = "ONE_DAY"` - `const AS112TimeseriesGroupQueryTypeResponseMetaAggIntervalOneWeek AS112TimeseriesGroupQueryTypeResponseMetaAggInterval = "ONE_WEEK"` - `const AS112TimeseriesGroupQueryTypeResponseMetaAggIntervalOneMonth AS112TimeseriesGroupQueryTypeResponseMetaAggInterval = "ONE_MONTH"` - `ConfidenceInfo AS112TimeseriesGroupQueryTypeResponseMetaConfidenceInfo` - `Annotations []AS112TimeseriesGroupQueryTypeResponseMetaConfidenceInfoAnnotation` - `DataSource AS112TimeseriesGroupQueryTypeResponseMetaConfidenceInfoAnnotationsDataSource` Data source for annotations. - `const AS112TimeseriesGroupQueryTypeResponseMetaConfidenceInfoAnnotationsDataSourceAll AS112TimeseriesGroupQueryTypeResponseMetaConfidenceInfoAnnotationsDataSource = "ALL"` - `const AS112TimeseriesGroupQueryTypeResponseMetaConfidenceInfoAnnotationsDataSourceAIBots AS112TimeseriesGroupQueryTypeResponseMetaConfidenceInfoAnnotationsDataSource = "AI_BOTS"` - `const AS112TimeseriesGroupQueryTypeResponseMetaConfidenceInfoAnnotationsDataSourceAIGateway AS112TimeseriesGroupQueryTypeResponseMetaConfidenceInfoAnnotationsDataSource = "AI_GATEWAY"` - `const AS112TimeseriesGroupQueryTypeResponseMetaConfidenceInfoAnnotationsDataSourceBGP AS112TimeseriesGroupQueryTypeResponseMetaConfidenceInfoAnnotationsDataSource = "BGP"` - `const AS112TimeseriesGroupQueryTypeResponseMetaConfidenceInfoAnnotationsDataSourceBots AS112TimeseriesGroupQueryTypeResponseMetaConfidenceInfoAnnotationsDataSource = "BOTS"` - `const AS112TimeseriesGroupQueryTypeResponseMetaConfidenceInfoAnnotationsDataSourceConnectionAnomaly AS112TimeseriesGroupQueryTypeResponseMetaConfidenceInfoAnnotationsDataSource = "CONNECTION_ANOMALY"` - `const AS112TimeseriesGroupQueryTypeResponseMetaConfidenceInfoAnnotationsDataSourceCT AS112TimeseriesGroupQueryTypeResponseMetaConfidenceInfoAnnotationsDataSource = "CT"` - `const AS112TimeseriesGroupQueryTypeResponseMetaConfidenceInfoAnnotationsDataSourceDNS AS112TimeseriesGroupQueryTypeResponseMetaConfidenceInfoAnnotationsDataSource = "DNS"` - `const AS112TimeseriesGroupQueryTypeResponseMetaConfidenceInfoAnnotationsDataSourceDNSMagnitude AS112TimeseriesGroupQueryTypeResponseMetaConfidenceInfoAnnotationsDataSource = "DNS_MAGNITUDE"` - `const AS112TimeseriesGroupQueryTypeResponseMetaConfidenceInfoAnnotationsDataSourceDNSAS112 AS112TimeseriesGroupQueryTypeResponseMetaConfidenceInfoAnnotationsDataSource = "DNS_AS112"` - `const AS112TimeseriesGroupQueryTypeResponseMetaConfidenceInfoAnnotationsDataSourceDos AS112TimeseriesGroupQueryTypeResponseMetaConfidenceInfoAnnotationsDataSource = "DOS"` - `const AS112TimeseriesGroupQueryTypeResponseMetaConfidenceInfoAnnotationsDataSourceEmailRouting AS112TimeseriesGroupQueryTypeResponseMetaConfidenceInfoAnnotationsDataSource = "EMAIL_ROUTING"` - `const AS112TimeseriesGroupQueryTypeResponseMetaConfidenceInfoAnnotationsDataSourceEmailSecurity AS112TimeseriesGroupQueryTypeResponseMetaConfidenceInfoAnnotationsDataSource = "EMAIL_SECURITY"` - `const AS112TimeseriesGroupQueryTypeResponseMetaConfidenceInfoAnnotationsDataSourceFw AS112TimeseriesGroupQueryTypeResponseMetaConfidenceInfoAnnotationsDataSource = "FW"` - `const AS112TimeseriesGroupQueryTypeResponseMetaConfidenceInfoAnnotationsDataSourceFwPg AS112TimeseriesGroupQueryTypeResponseMetaConfidenceInfoAnnotationsDataSource = "FW_PG"` - `const AS112TimeseriesGroupQueryTypeResponseMetaConfidenceInfoAnnotationsDataSourceHTTP AS112TimeseriesGroupQueryTypeResponseMetaConfidenceInfoAnnotationsDataSource = "HTTP"` - `const AS112TimeseriesGroupQueryTypeResponseMetaConfidenceInfoAnnotationsDataSourceHTTPControl AS112TimeseriesGroupQueryTypeResponseMetaConfidenceInfoAnnotationsDataSource = "HTTP_CONTROL"` - `const AS112TimeseriesGroupQueryTypeResponseMetaConfidenceInfoAnnotationsDataSourceHTTPCrawlerReferer AS112TimeseriesGroupQueryTypeResponseMetaConfidenceInfoAnnotationsDataSource = "HTTP_CRAWLER_REFERER"` - `const AS112TimeseriesGroupQueryTypeResponseMetaConfidenceInfoAnnotationsDataSourceHTTPOrigins AS112TimeseriesGroupQueryTypeResponseMetaConfidenceInfoAnnotationsDataSource = "HTTP_ORIGINS"` - `const AS112TimeseriesGroupQueryTypeResponseMetaConfidenceInfoAnnotationsDataSourceIQI AS112TimeseriesGroupQueryTypeResponseMetaConfidenceInfoAnnotationsDataSource = "IQI"` - `const AS112TimeseriesGroupQueryTypeResponseMetaConfidenceInfoAnnotationsDataSourceLeakedCredentials AS112TimeseriesGroupQueryTypeResponseMetaConfidenceInfoAnnotationsDataSource = "LEAKED_CREDENTIALS"` - `const AS112TimeseriesGroupQueryTypeResponseMetaConfidenceInfoAnnotationsDataSourceNet AS112TimeseriesGroupQueryTypeResponseMetaConfidenceInfoAnnotationsDataSource = "NET"` - `const AS112TimeseriesGroupQueryTypeResponseMetaConfidenceInfoAnnotationsDataSourceRobotsTXT AS112TimeseriesGroupQueryTypeResponseMetaConfidenceInfoAnnotationsDataSource = "ROBOTS_TXT"` - `const AS112TimeseriesGroupQueryTypeResponseMetaConfidenceInfoAnnotationsDataSourceSpeed AS112TimeseriesGroupQueryTypeResponseMetaConfidenceInfoAnnotationsDataSource = "SPEED"` - `const AS112TimeseriesGroupQueryTypeResponseMetaConfidenceInfoAnnotationsDataSourceWorkersAI AS112TimeseriesGroupQueryTypeResponseMetaConfidenceInfoAnnotationsDataSource = "WORKERS_AI"` - `Description string` - `EndDate Time` - `EventType AS112TimeseriesGroupQueryTypeResponseMetaConfidenceInfoAnnotationsEventType` Event type for annotations. - `const AS112TimeseriesGroupQueryTypeResponseMetaConfidenceInfoAnnotationsEventTypeEvent AS112TimeseriesGroupQueryTypeResponseMetaConfidenceInfoAnnotationsEventType = "EVENT"` - `const AS112TimeseriesGroupQueryTypeResponseMetaConfidenceInfoAnnotationsEventTypeGeneral AS112TimeseriesGroupQueryTypeResponseMetaConfidenceInfoAnnotationsEventType = "GENERAL"` - `const AS112TimeseriesGroupQueryTypeResponseMetaConfidenceInfoAnnotationsEventTypeOutage AS112TimeseriesGroupQueryTypeResponseMetaConfidenceInfoAnnotationsEventType = "OUTAGE"` - `const AS112TimeseriesGroupQueryTypeResponseMetaConfidenceInfoAnnotationsEventTypePartialProjection AS112TimeseriesGroupQueryTypeResponseMetaConfidenceInfoAnnotationsEventType = "PARTIAL_PROJECTION"` - `const AS112TimeseriesGroupQueryTypeResponseMetaConfidenceInfoAnnotationsEventTypePipeline AS112TimeseriesGroupQueryTypeResponseMetaConfidenceInfoAnnotationsEventType = "PIPELINE"` - `const AS112TimeseriesGroupQueryTypeResponseMetaConfidenceInfoAnnotationsEventTypeTrafficAnomaly AS112TimeseriesGroupQueryTypeResponseMetaConfidenceInfoAnnotationsEventType = "TRAFFIC_ANOMALY"` - `IsInstantaneous bool` Whether event is a single point in time or a time range. - `LinkedURL string` - `StartDate Time` - `Tags []string` - `Level int64` Provides an indication of how much confidence Cloudflare has in the data. - `DateRange []AS112TimeseriesGroupQueryTypeResponseMetaDateRange` - `EndTime Time` Adjusted end of date range. - `StartTime Time` Adjusted start of date range. - `LastUpdated Time` Timestamp of the last dataset update. - `Normalization AS112TimeseriesGroupQueryTypeResponseMetaNormalization` Normalization method applied to the results. Refer to [Normalization methods](https://edgetunnel-b2h.pages.dev/radar/concepts/normalization/). - `const AS112TimeseriesGroupQueryTypeResponseMetaNormalizationPercentage AS112TimeseriesGroupQueryTypeResponseMetaNormalization = "PERCENTAGE"` - `const AS112TimeseriesGroupQueryTypeResponseMetaNormalizationMin0Max AS112TimeseriesGroupQueryTypeResponseMetaNormalization = "MIN0_MAX"` - `const AS112TimeseriesGroupQueryTypeResponseMetaNormalizationMinMax AS112TimeseriesGroupQueryTypeResponseMetaNormalization = "MIN_MAX"` - `const AS112TimeseriesGroupQueryTypeResponseMetaNormalizationRawValues AS112TimeseriesGroupQueryTypeResponseMetaNormalization = "RAW_VALUES"` - `const AS112TimeseriesGroupQueryTypeResponseMetaNormalizationPercentageChange AS112TimeseriesGroupQueryTypeResponseMetaNormalization = "PERCENTAGE_CHANGE"` - `const AS112TimeseriesGroupQueryTypeResponseMetaNormalizationRollingAverage AS112TimeseriesGroupQueryTypeResponseMetaNormalization = "ROLLING_AVERAGE"` - `const AS112TimeseriesGroupQueryTypeResponseMetaNormalizationOverlappedPercentage AS112TimeseriesGroupQueryTypeResponseMetaNormalization = "OVERLAPPED_PERCENTAGE"` - `const AS112TimeseriesGroupQueryTypeResponseMetaNormalizationRatio AS112TimeseriesGroupQueryTypeResponseMetaNormalization = "RATIO"` - `Units []AS112TimeseriesGroupQueryTypeResponseMetaUnit` Measurement units for the results. - `Name string` - `Value string` - `Serie0 AS112TimeseriesGroupQueryTypeResponseSerie0` - `Timestamps []Time` ### Example ```go 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.TimeseriesGroups.QueryType(context.TODO(), radar.AS112TimeseriesGroupQueryTypeParams{ }) if err != nil { panic(err.Error()) } fmt.Printf("%+v\n", response.Meta) } ``` #### Response ```json { "result": { "meta": { "aggInterval": "FIFTEEN_MINUTES", "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" } ] }, "serie_0": { "timestamps": [ "2023-08-08T10:15:00Z" ] } }, "success": true } ``` ## Get AS112 DNS queries by response code time series `client.Radar.AS112.TimeseriesGroups.ResponseCodes(ctx, query) (*AS112TimeseriesGroupResponseCodesResponse, error)` **get** `/radar/as112/timeseries_groups/response_codes` Retrieves the distribution of AS112 DNS requests classified by response code over time. ### Parameters - `query AS112TimeseriesGroupResponseCodesParams` - `AggInterval param.Field[AS112TimeseriesGroupResponseCodesParamsAggInterval]` Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). Refer to [Aggregation intervals](https://edgetunnel-b2h.pages.dev/radar/concepts/aggregation-intervals/). When omitted, the interval is auto-selected from the requested date range; finer intervals are only available for shorter ranges. If the requested interval is too granular for the date range, the request is rejected. - `const AS112TimeseriesGroupResponseCodesParamsAggInterval15m AS112TimeseriesGroupResponseCodesParamsAggInterval = "15m"` - `const AS112TimeseriesGroupResponseCodesParamsAggInterval1h AS112TimeseriesGroupResponseCodesParamsAggInterval = "1h"` - `const AS112TimeseriesGroupResponseCodesParamsAggInterval1d AS112TimeseriesGroupResponseCodesParamsAggInterval = "1d"` - `const AS112TimeseriesGroupResponseCodesParamsAggInterval1w AS112TimeseriesGroupResponseCodesParamsAggInterval = "1w"` - `Continent param.Field[[]string]` 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]` End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected. - `DateRange param.Field[[]string]` Filters results by relative date range ending at the current time, with each value producing a separate series. Use `d` for days (up to `364d`) or `w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters). - `DateStart param.Field[[]Time]` Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected. - `Format param.Field[AS112TimeseriesGroupResponseCodesParamsFormat]` Format in which results will be returned. - `const AS112TimeseriesGroupResponseCodesParamsFormatJson AS112TimeseriesGroupResponseCodesParamsFormat = "JSON"` - `const AS112TimeseriesGroupResponseCodesParamsFormatCsv AS112TimeseriesGroupResponseCodesParamsFormat = "CSV"` - `LimitPerGroup param.Field[int64]` 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. Only supported on high-cardinality dimensions; otherwise the request is rejected. Minimum value is 2. - `Location param.Field[[]string]` 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]` Array of names used to label the series in the response. - `Protocol param.Field[[]AS112TimeseriesGroupResponseCodesParamsProtocol]` Filters results by DNS transport protocol. - `const AS112TimeseriesGroupResponseCodesParamsProtocolUdp AS112TimeseriesGroupResponseCodesParamsProtocol = "UDP"` - `const AS112TimeseriesGroupResponseCodesParamsProtocolTCP AS112TimeseriesGroupResponseCodesParamsProtocol = "TCP"` - `const AS112TimeseriesGroupResponseCodesParamsProtocolHTTPS AS112TimeseriesGroupResponseCodesParamsProtocol = "HTTPS"` - `const AS112TimeseriesGroupResponseCodesParamsProtocolTLS AS112TimeseriesGroupResponseCodesParamsProtocol = "TLS"` - `QueryType param.Field[[]AS112TimeseriesGroupResponseCodesParamsQueryType]` Filters results by DNS query type. - `const AS112TimeseriesGroupResponseCodesParamsQueryTypeA AS112TimeseriesGroupResponseCodesParamsQueryType = "A"` - `const AS112TimeseriesGroupResponseCodesParamsQueryTypeAAAA AS112TimeseriesGroupResponseCodesParamsQueryType = "AAAA"` - `const AS112TimeseriesGroupResponseCodesParamsQueryTypeA6 AS112TimeseriesGroupResponseCodesParamsQueryType = "A6"` - `const AS112TimeseriesGroupResponseCodesParamsQueryTypeAfsdb AS112TimeseriesGroupResponseCodesParamsQueryType = "AFSDB"` - `const AS112TimeseriesGroupResponseCodesParamsQueryTypeAny AS112TimeseriesGroupResponseCodesParamsQueryType = "ANY"` - `const AS112TimeseriesGroupResponseCodesParamsQueryTypeApl AS112TimeseriesGroupResponseCodesParamsQueryType = "APL"` - `const AS112TimeseriesGroupResponseCodesParamsQueryTypeAtma AS112TimeseriesGroupResponseCodesParamsQueryType = "ATMA"` - `const AS112TimeseriesGroupResponseCodesParamsQueryTypeAXFR AS112TimeseriesGroupResponseCodesParamsQueryType = "AXFR"` - `const AS112TimeseriesGroupResponseCodesParamsQueryTypeCAA AS112TimeseriesGroupResponseCodesParamsQueryType = "CAA"` - `const AS112TimeseriesGroupResponseCodesParamsQueryTypeCdnskey AS112TimeseriesGroupResponseCodesParamsQueryType = "CDNSKEY"` - `const AS112TimeseriesGroupResponseCodesParamsQueryTypeCds AS112TimeseriesGroupResponseCodesParamsQueryType = "CDS"` - `const AS112TimeseriesGroupResponseCodesParamsQueryTypeCERT AS112TimeseriesGroupResponseCodesParamsQueryType = "CERT"` - `const AS112TimeseriesGroupResponseCodesParamsQueryTypeCNAME AS112TimeseriesGroupResponseCodesParamsQueryType = "CNAME"` - `const AS112TimeseriesGroupResponseCodesParamsQueryTypeCsync AS112TimeseriesGroupResponseCodesParamsQueryType = "CSYNC"` - `const AS112TimeseriesGroupResponseCodesParamsQueryTypeDhcid AS112TimeseriesGroupResponseCodesParamsQueryType = "DHCID"` - `const AS112TimeseriesGroupResponseCodesParamsQueryTypeDlv AS112TimeseriesGroupResponseCodesParamsQueryType = "DLV"` - `const AS112TimeseriesGroupResponseCodesParamsQueryTypeDname AS112TimeseriesGroupResponseCodesParamsQueryType = "DNAME"` - `const AS112TimeseriesGroupResponseCodesParamsQueryTypeDNSKEY AS112TimeseriesGroupResponseCodesParamsQueryType = "DNSKEY"` - `const AS112TimeseriesGroupResponseCodesParamsQueryTypeDoa AS112TimeseriesGroupResponseCodesParamsQueryType = "DOA"` - `const AS112TimeseriesGroupResponseCodesParamsQueryTypeDS AS112TimeseriesGroupResponseCodesParamsQueryType = "DS"` - `const AS112TimeseriesGroupResponseCodesParamsQueryTypeEid AS112TimeseriesGroupResponseCodesParamsQueryType = "EID"` - `const AS112TimeseriesGroupResponseCodesParamsQueryTypeEui48 AS112TimeseriesGroupResponseCodesParamsQueryType = "EUI48"` - `const AS112TimeseriesGroupResponseCodesParamsQueryTypeEui64 AS112TimeseriesGroupResponseCodesParamsQueryType = "EUI64"` - `const AS112TimeseriesGroupResponseCodesParamsQueryTypeGpos AS112TimeseriesGroupResponseCodesParamsQueryType = "GPOS"` - `const AS112TimeseriesGroupResponseCodesParamsQueryTypeGid AS112TimeseriesGroupResponseCodesParamsQueryType = "GID"` - `const AS112TimeseriesGroupResponseCodesParamsQueryTypeHinfo AS112TimeseriesGroupResponseCodesParamsQueryType = "HINFO"` - `const AS112TimeseriesGroupResponseCodesParamsQueryTypeHip AS112TimeseriesGroupResponseCodesParamsQueryType = "HIP"` - `const AS112TimeseriesGroupResponseCodesParamsQueryTypeHTTPS AS112TimeseriesGroupResponseCodesParamsQueryType = "HTTPS"` - `const AS112TimeseriesGroupResponseCodesParamsQueryTypeIpseckey AS112TimeseriesGroupResponseCodesParamsQueryType = "IPSECKEY"` - `const AS112TimeseriesGroupResponseCodesParamsQueryTypeIsdn AS112TimeseriesGroupResponseCodesParamsQueryType = "ISDN"` - `const AS112TimeseriesGroupResponseCodesParamsQueryTypeIxfr AS112TimeseriesGroupResponseCodesParamsQueryType = "IXFR"` - `const AS112TimeseriesGroupResponseCodesParamsQueryTypeKey AS112TimeseriesGroupResponseCodesParamsQueryType = "KEY"` - `const AS112TimeseriesGroupResponseCodesParamsQueryTypeKx AS112TimeseriesGroupResponseCodesParamsQueryType = "KX"` - `const AS112TimeseriesGroupResponseCodesParamsQueryTypeL32 AS112TimeseriesGroupResponseCodesParamsQueryType = "L32"` - `const AS112TimeseriesGroupResponseCodesParamsQueryTypeL64 AS112TimeseriesGroupResponseCodesParamsQueryType = "L64"` - `const AS112TimeseriesGroupResponseCodesParamsQueryTypeLOC AS112TimeseriesGroupResponseCodesParamsQueryType = "LOC"` - `const AS112TimeseriesGroupResponseCodesParamsQueryTypeLp AS112TimeseriesGroupResponseCodesParamsQueryType = "LP"` - `const AS112TimeseriesGroupResponseCodesParamsQueryTypeMaila AS112TimeseriesGroupResponseCodesParamsQueryType = "MAILA"` - `const AS112TimeseriesGroupResponseCodesParamsQueryTypeMailb AS112TimeseriesGroupResponseCodesParamsQueryType = "MAILB"` - `const AS112TimeseriesGroupResponseCodesParamsQueryTypeMB AS112TimeseriesGroupResponseCodesParamsQueryType = "MB"` - `const AS112TimeseriesGroupResponseCodesParamsQueryTypeMd AS112TimeseriesGroupResponseCodesParamsQueryType = "MD"` - `const AS112TimeseriesGroupResponseCodesParamsQueryTypeMf AS112TimeseriesGroupResponseCodesParamsQueryType = "MF"` - `const AS112TimeseriesGroupResponseCodesParamsQueryTypeMg AS112TimeseriesGroupResponseCodesParamsQueryType = "MG"` - `const AS112TimeseriesGroupResponseCodesParamsQueryTypeMinfo AS112TimeseriesGroupResponseCodesParamsQueryType = "MINFO"` - `const AS112TimeseriesGroupResponseCodesParamsQueryTypeMr AS112TimeseriesGroupResponseCodesParamsQueryType = "MR"` - `const AS112TimeseriesGroupResponseCodesParamsQueryTypeMX AS112TimeseriesGroupResponseCodesParamsQueryType = "MX"` - `const AS112TimeseriesGroupResponseCodesParamsQueryTypeNAPTR AS112TimeseriesGroupResponseCodesParamsQueryType = "NAPTR"` - `const AS112TimeseriesGroupResponseCodesParamsQueryTypeNb AS112TimeseriesGroupResponseCodesParamsQueryType = "NB"` - `const AS112TimeseriesGroupResponseCodesParamsQueryTypeNbstat AS112TimeseriesGroupResponseCodesParamsQueryType = "NBSTAT"` - `const AS112TimeseriesGroupResponseCodesParamsQueryTypeNid AS112TimeseriesGroupResponseCodesParamsQueryType = "NID"` - `const AS112TimeseriesGroupResponseCodesParamsQueryTypeNimloc AS112TimeseriesGroupResponseCodesParamsQueryType = "NIMLOC"` - `const AS112TimeseriesGroupResponseCodesParamsQueryTypeNinfo AS112TimeseriesGroupResponseCodesParamsQueryType = "NINFO"` - `const AS112TimeseriesGroupResponseCodesParamsQueryTypeNS AS112TimeseriesGroupResponseCodesParamsQueryType = "NS"` - `const AS112TimeseriesGroupResponseCodesParamsQueryTypeNsap AS112TimeseriesGroupResponseCodesParamsQueryType = "NSAP"` - `const AS112TimeseriesGroupResponseCodesParamsQueryTypeNsec AS112TimeseriesGroupResponseCodesParamsQueryType = "NSEC"` - `const AS112TimeseriesGroupResponseCodesParamsQueryTypeNsec3 AS112TimeseriesGroupResponseCodesParamsQueryType = "NSEC3"` - `const AS112TimeseriesGroupResponseCodesParamsQueryTypeNsec3Param AS112TimeseriesGroupResponseCodesParamsQueryType = "NSEC3PARAM"` - `const AS112TimeseriesGroupResponseCodesParamsQueryTypeNull AS112TimeseriesGroupResponseCodesParamsQueryType = "NULL"` - `const AS112TimeseriesGroupResponseCodesParamsQueryTypeNxt AS112TimeseriesGroupResponseCodesParamsQueryType = "NXT"` - `const AS112TimeseriesGroupResponseCodesParamsQueryTypeOpenpgpkey AS112TimeseriesGroupResponseCodesParamsQueryType = "OPENPGPKEY"` - `const AS112TimeseriesGroupResponseCodesParamsQueryTypeOpt AS112TimeseriesGroupResponseCodesParamsQueryType = "OPT"` - `const AS112TimeseriesGroupResponseCodesParamsQueryTypePTR AS112TimeseriesGroupResponseCodesParamsQueryType = "PTR"` - `const AS112TimeseriesGroupResponseCodesParamsQueryTypePx AS112TimeseriesGroupResponseCodesParamsQueryType = "PX"` - `const AS112TimeseriesGroupResponseCodesParamsQueryTypeRkey AS112TimeseriesGroupResponseCodesParamsQueryType = "RKEY"` - `const AS112TimeseriesGroupResponseCodesParamsQueryTypeRp AS112TimeseriesGroupResponseCodesParamsQueryType = "RP"` - `const AS112TimeseriesGroupResponseCodesParamsQueryTypeRrsig AS112TimeseriesGroupResponseCodesParamsQueryType = "RRSIG"` - `const AS112TimeseriesGroupResponseCodesParamsQueryTypeRt AS112TimeseriesGroupResponseCodesParamsQueryType = "RT"` - `const AS112TimeseriesGroupResponseCodesParamsQueryTypeSig AS112TimeseriesGroupResponseCodesParamsQueryType = "SIG"` - `const AS112TimeseriesGroupResponseCodesParamsQueryTypeSink AS112TimeseriesGroupResponseCodesParamsQueryType = "SINK"` - `const AS112TimeseriesGroupResponseCodesParamsQueryTypeSMIMEA AS112TimeseriesGroupResponseCodesParamsQueryType = "SMIMEA"` - `const AS112TimeseriesGroupResponseCodesParamsQueryTypeSOA AS112TimeseriesGroupResponseCodesParamsQueryType = "SOA"` - `const AS112TimeseriesGroupResponseCodesParamsQueryTypeSPF AS112TimeseriesGroupResponseCodesParamsQueryType = "SPF"` - `const AS112TimeseriesGroupResponseCodesParamsQueryTypeSRV AS112TimeseriesGroupResponseCodesParamsQueryType = "SRV"` - `const AS112TimeseriesGroupResponseCodesParamsQueryTypeSSHFP AS112TimeseriesGroupResponseCodesParamsQueryType = "SSHFP"` - `const AS112TimeseriesGroupResponseCodesParamsQueryTypeSVCB AS112TimeseriesGroupResponseCodesParamsQueryType = "SVCB"` - `const AS112TimeseriesGroupResponseCodesParamsQueryTypeTa AS112TimeseriesGroupResponseCodesParamsQueryType = "TA"` - `const AS112TimeseriesGroupResponseCodesParamsQueryTypeTalink AS112TimeseriesGroupResponseCodesParamsQueryType = "TALINK"` - `const AS112TimeseriesGroupResponseCodesParamsQueryTypeTkey AS112TimeseriesGroupResponseCodesParamsQueryType = "TKEY"` - `const AS112TimeseriesGroupResponseCodesParamsQueryTypeTLSA AS112TimeseriesGroupResponseCodesParamsQueryType = "TLSA"` - `const AS112TimeseriesGroupResponseCodesParamsQueryTypeTSIG AS112TimeseriesGroupResponseCodesParamsQueryType = "TSIG"` - `const AS112TimeseriesGroupResponseCodesParamsQueryTypeTXT AS112TimeseriesGroupResponseCodesParamsQueryType = "TXT"` - `const AS112TimeseriesGroupResponseCodesParamsQueryTypeUinfo AS112TimeseriesGroupResponseCodesParamsQueryType = "UINFO"` - `const AS112TimeseriesGroupResponseCodesParamsQueryTypeUID AS112TimeseriesGroupResponseCodesParamsQueryType = "UID"` - `const AS112TimeseriesGroupResponseCodesParamsQueryTypeUnspec AS112TimeseriesGroupResponseCodesParamsQueryType = "UNSPEC"` - `const AS112TimeseriesGroupResponseCodesParamsQueryTypeURI AS112TimeseriesGroupResponseCodesParamsQueryType = "URI"` - `const AS112TimeseriesGroupResponseCodesParamsQueryTypeWks AS112TimeseriesGroupResponseCodesParamsQueryType = "WKS"` - `const AS112TimeseriesGroupResponseCodesParamsQueryTypeX25 AS112TimeseriesGroupResponseCodesParamsQueryType = "X25"` - `const AS112TimeseriesGroupResponseCodesParamsQueryTypeZonemd AS112TimeseriesGroupResponseCodesParamsQueryType = "ZONEMD"` ### Returns - `type AS112TimeseriesGroupResponseCodesResponse struct{…}` - `Meta AS112TimeseriesGroupResponseCodesResponseMeta` Metadata for the results. - `AggInterval AS112TimeseriesGroupResponseCodesResponseMetaAggInterval` Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). Refer to [Aggregation intervals](https://edgetunnel-b2h.pages.dev/radar/concepts/aggregation-intervals/). - `const AS112TimeseriesGroupResponseCodesResponseMetaAggIntervalFifteenMinutes AS112TimeseriesGroupResponseCodesResponseMetaAggInterval = "FIFTEEN_MINUTES"` - `const AS112TimeseriesGroupResponseCodesResponseMetaAggIntervalOneHour AS112TimeseriesGroupResponseCodesResponseMetaAggInterval = "ONE_HOUR"` - `const AS112TimeseriesGroupResponseCodesResponseMetaAggIntervalOneDay AS112TimeseriesGroupResponseCodesResponseMetaAggInterval = "ONE_DAY"` - `const AS112TimeseriesGroupResponseCodesResponseMetaAggIntervalOneWeek AS112TimeseriesGroupResponseCodesResponseMetaAggInterval = "ONE_WEEK"` - `const AS112TimeseriesGroupResponseCodesResponseMetaAggIntervalOneMonth AS112TimeseriesGroupResponseCodesResponseMetaAggInterval = "ONE_MONTH"` - `ConfidenceInfo AS112TimeseriesGroupResponseCodesResponseMetaConfidenceInfo` - `Annotations []AS112TimeseriesGroupResponseCodesResponseMetaConfidenceInfoAnnotation` - `DataSource AS112TimeseriesGroupResponseCodesResponseMetaConfidenceInfoAnnotationsDataSource` Data source for annotations. - `const AS112TimeseriesGroupResponseCodesResponseMetaConfidenceInfoAnnotationsDataSourceAll AS112TimeseriesGroupResponseCodesResponseMetaConfidenceInfoAnnotationsDataSource = "ALL"` - `const AS112TimeseriesGroupResponseCodesResponseMetaConfidenceInfoAnnotationsDataSourceAIBots AS112TimeseriesGroupResponseCodesResponseMetaConfidenceInfoAnnotationsDataSource = "AI_BOTS"` - `const AS112TimeseriesGroupResponseCodesResponseMetaConfidenceInfoAnnotationsDataSourceAIGateway AS112TimeseriesGroupResponseCodesResponseMetaConfidenceInfoAnnotationsDataSource = "AI_GATEWAY"` - `const AS112TimeseriesGroupResponseCodesResponseMetaConfidenceInfoAnnotationsDataSourceBGP AS112TimeseriesGroupResponseCodesResponseMetaConfidenceInfoAnnotationsDataSource = "BGP"` - `const AS112TimeseriesGroupResponseCodesResponseMetaConfidenceInfoAnnotationsDataSourceBots AS112TimeseriesGroupResponseCodesResponseMetaConfidenceInfoAnnotationsDataSource = "BOTS"` - `const AS112TimeseriesGroupResponseCodesResponseMetaConfidenceInfoAnnotationsDataSourceConnectionAnomaly AS112TimeseriesGroupResponseCodesResponseMetaConfidenceInfoAnnotationsDataSource = "CONNECTION_ANOMALY"` - `const AS112TimeseriesGroupResponseCodesResponseMetaConfidenceInfoAnnotationsDataSourceCT AS112TimeseriesGroupResponseCodesResponseMetaConfidenceInfoAnnotationsDataSource = "CT"` - `const AS112TimeseriesGroupResponseCodesResponseMetaConfidenceInfoAnnotationsDataSourceDNS AS112TimeseriesGroupResponseCodesResponseMetaConfidenceInfoAnnotationsDataSource = "DNS"` - `const AS112TimeseriesGroupResponseCodesResponseMetaConfidenceInfoAnnotationsDataSourceDNSMagnitude AS112TimeseriesGroupResponseCodesResponseMetaConfidenceInfoAnnotationsDataSource = "DNS_MAGNITUDE"` - `const AS112TimeseriesGroupResponseCodesResponseMetaConfidenceInfoAnnotationsDataSourceDNSAS112 AS112TimeseriesGroupResponseCodesResponseMetaConfidenceInfoAnnotationsDataSource = "DNS_AS112"` - `const AS112TimeseriesGroupResponseCodesResponseMetaConfidenceInfoAnnotationsDataSourceDos AS112TimeseriesGroupResponseCodesResponseMetaConfidenceInfoAnnotationsDataSource = "DOS"` - `const AS112TimeseriesGroupResponseCodesResponseMetaConfidenceInfoAnnotationsDataSourceEmailRouting AS112TimeseriesGroupResponseCodesResponseMetaConfidenceInfoAnnotationsDataSource = "EMAIL_ROUTING"` - `const AS112TimeseriesGroupResponseCodesResponseMetaConfidenceInfoAnnotationsDataSourceEmailSecurity AS112TimeseriesGroupResponseCodesResponseMetaConfidenceInfoAnnotationsDataSource = "EMAIL_SECURITY"` - `const AS112TimeseriesGroupResponseCodesResponseMetaConfidenceInfoAnnotationsDataSourceFw AS112TimeseriesGroupResponseCodesResponseMetaConfidenceInfoAnnotationsDataSource = "FW"` - `const AS112TimeseriesGroupResponseCodesResponseMetaConfidenceInfoAnnotationsDataSourceFwPg AS112TimeseriesGroupResponseCodesResponseMetaConfidenceInfoAnnotationsDataSource = "FW_PG"` - `const AS112TimeseriesGroupResponseCodesResponseMetaConfidenceInfoAnnotationsDataSourceHTTP AS112TimeseriesGroupResponseCodesResponseMetaConfidenceInfoAnnotationsDataSource = "HTTP"` - `const AS112TimeseriesGroupResponseCodesResponseMetaConfidenceInfoAnnotationsDataSourceHTTPControl AS112TimeseriesGroupResponseCodesResponseMetaConfidenceInfoAnnotationsDataSource = "HTTP_CONTROL"` - `const AS112TimeseriesGroupResponseCodesResponseMetaConfidenceInfoAnnotationsDataSourceHTTPCrawlerReferer AS112TimeseriesGroupResponseCodesResponseMetaConfidenceInfoAnnotationsDataSource = "HTTP_CRAWLER_REFERER"` - `const AS112TimeseriesGroupResponseCodesResponseMetaConfidenceInfoAnnotationsDataSourceHTTPOrigins AS112TimeseriesGroupResponseCodesResponseMetaConfidenceInfoAnnotationsDataSource = "HTTP_ORIGINS"` - `const AS112TimeseriesGroupResponseCodesResponseMetaConfidenceInfoAnnotationsDataSourceIQI AS112TimeseriesGroupResponseCodesResponseMetaConfidenceInfoAnnotationsDataSource = "IQI"` - `const AS112TimeseriesGroupResponseCodesResponseMetaConfidenceInfoAnnotationsDataSourceLeakedCredentials AS112TimeseriesGroupResponseCodesResponseMetaConfidenceInfoAnnotationsDataSource = "LEAKED_CREDENTIALS"` - `const AS112TimeseriesGroupResponseCodesResponseMetaConfidenceInfoAnnotationsDataSourceNet AS112TimeseriesGroupResponseCodesResponseMetaConfidenceInfoAnnotationsDataSource = "NET"` - `const AS112TimeseriesGroupResponseCodesResponseMetaConfidenceInfoAnnotationsDataSourceRobotsTXT AS112TimeseriesGroupResponseCodesResponseMetaConfidenceInfoAnnotationsDataSource = "ROBOTS_TXT"` - `const AS112TimeseriesGroupResponseCodesResponseMetaConfidenceInfoAnnotationsDataSourceSpeed AS112TimeseriesGroupResponseCodesResponseMetaConfidenceInfoAnnotationsDataSource = "SPEED"` - `const AS112TimeseriesGroupResponseCodesResponseMetaConfidenceInfoAnnotationsDataSourceWorkersAI AS112TimeseriesGroupResponseCodesResponseMetaConfidenceInfoAnnotationsDataSource = "WORKERS_AI"` - `Description string` - `EndDate Time` - `EventType AS112TimeseriesGroupResponseCodesResponseMetaConfidenceInfoAnnotationsEventType` Event type for annotations. - `const AS112TimeseriesGroupResponseCodesResponseMetaConfidenceInfoAnnotationsEventTypeEvent AS112TimeseriesGroupResponseCodesResponseMetaConfidenceInfoAnnotationsEventType = "EVENT"` - `const AS112TimeseriesGroupResponseCodesResponseMetaConfidenceInfoAnnotationsEventTypeGeneral AS112TimeseriesGroupResponseCodesResponseMetaConfidenceInfoAnnotationsEventType = "GENERAL"` - `const AS112TimeseriesGroupResponseCodesResponseMetaConfidenceInfoAnnotationsEventTypeOutage AS112TimeseriesGroupResponseCodesResponseMetaConfidenceInfoAnnotationsEventType = "OUTAGE"` - `const AS112TimeseriesGroupResponseCodesResponseMetaConfidenceInfoAnnotationsEventTypePartialProjection AS112TimeseriesGroupResponseCodesResponseMetaConfidenceInfoAnnotationsEventType = "PARTIAL_PROJECTION"` - `const AS112TimeseriesGroupResponseCodesResponseMetaConfidenceInfoAnnotationsEventTypePipeline AS112TimeseriesGroupResponseCodesResponseMetaConfidenceInfoAnnotationsEventType = "PIPELINE"` - `const AS112TimeseriesGroupResponseCodesResponseMetaConfidenceInfoAnnotationsEventTypeTrafficAnomaly AS112TimeseriesGroupResponseCodesResponseMetaConfidenceInfoAnnotationsEventType = "TRAFFIC_ANOMALY"` - `IsInstantaneous bool` Whether event is a single point in time or a time range. - `LinkedURL string` - `StartDate Time` - `Tags []string` - `Level int64` Provides an indication of how much confidence Cloudflare has in the data. - `DateRange []AS112TimeseriesGroupResponseCodesResponseMetaDateRange` - `EndTime Time` Adjusted end of date range. - `StartTime Time` Adjusted start of date range. - `LastUpdated Time` Timestamp of the last dataset update. - `Normalization AS112TimeseriesGroupResponseCodesResponseMetaNormalization` Normalization method applied to the results. Refer to [Normalization methods](https://edgetunnel-b2h.pages.dev/radar/concepts/normalization/). - `const AS112TimeseriesGroupResponseCodesResponseMetaNormalizationPercentage AS112TimeseriesGroupResponseCodesResponseMetaNormalization = "PERCENTAGE"` - `const AS112TimeseriesGroupResponseCodesResponseMetaNormalizationMin0Max AS112TimeseriesGroupResponseCodesResponseMetaNormalization = "MIN0_MAX"` - `const AS112TimeseriesGroupResponseCodesResponseMetaNormalizationMinMax AS112TimeseriesGroupResponseCodesResponseMetaNormalization = "MIN_MAX"` - `const AS112TimeseriesGroupResponseCodesResponseMetaNormalizationRawValues AS112TimeseriesGroupResponseCodesResponseMetaNormalization = "RAW_VALUES"` - `const AS112TimeseriesGroupResponseCodesResponseMetaNormalizationPercentageChange AS112TimeseriesGroupResponseCodesResponseMetaNormalization = "PERCENTAGE_CHANGE"` - `const AS112TimeseriesGroupResponseCodesResponseMetaNormalizationRollingAverage AS112TimeseriesGroupResponseCodesResponseMetaNormalization = "ROLLING_AVERAGE"` - `const AS112TimeseriesGroupResponseCodesResponseMetaNormalizationOverlappedPercentage AS112TimeseriesGroupResponseCodesResponseMetaNormalization = "OVERLAPPED_PERCENTAGE"` - `const AS112TimeseriesGroupResponseCodesResponseMetaNormalizationRatio AS112TimeseriesGroupResponseCodesResponseMetaNormalization = "RATIO"` - `Units []AS112TimeseriesGroupResponseCodesResponseMetaUnit` Measurement units for the results. - `Name string` - `Value string` - `Serie0 AS112TimeseriesGroupResponseCodesResponseSerie0` - `Timestamps []Time` ### Example ```go 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.TimeseriesGroups.ResponseCodes(context.TODO(), radar.AS112TimeseriesGroupResponseCodesParams{ }) if err != nil { panic(err.Error()) } fmt.Printf("%+v\n", response.Meta) } ``` #### Response ```json { "result": { "meta": { "aggInterval": "FIFTEEN_MINUTES", "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" } ] }, "serie_0": { "timestamps": [ "2023-08-08T10:15:00Z" ] } }, "success": true } ``` ## Get AS112 DNS queries by DNSSEC support time series `client.Radar.AS112.TimeseriesGroups.DNSSEC(ctx, query) (*AS112TimeseriesGroupDNSSECResponse, error)` **get** `/radar/as112/timeseries_groups/dnssec` Retrieves the distribution of AS112 DNS queries by DNSSEC (DNS Security Extensions) support over time. ### Parameters - `query AS112TimeseriesGroupDNSSECParams` - `AggInterval param.Field[AS112TimeseriesGroupDNSSECParamsAggInterval]` Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). Refer to [Aggregation intervals](https://edgetunnel-b2h.pages.dev/radar/concepts/aggregation-intervals/). When omitted, the interval is auto-selected from the requested date range; finer intervals are only available for shorter ranges. If the requested interval is too granular for the date range, the request is rejected. - `const AS112TimeseriesGroupDNSSECParamsAggInterval15m AS112TimeseriesGroupDNSSECParamsAggInterval = "15m"` - `const AS112TimeseriesGroupDNSSECParamsAggInterval1h AS112TimeseriesGroupDNSSECParamsAggInterval = "1h"` - `const AS112TimeseriesGroupDNSSECParamsAggInterval1d AS112TimeseriesGroupDNSSECParamsAggInterval = "1d"` - `const AS112TimeseriesGroupDNSSECParamsAggInterval1w AS112TimeseriesGroupDNSSECParamsAggInterval = "1w"` - `Continent param.Field[[]string]` 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]` End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected. - `DateRange param.Field[[]string]` Filters results by relative date range ending at the current time, with each value producing a separate series. Use `d` for days (up to `364d`) or `w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters). - `DateStart param.Field[[]Time]` Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected. - `Format param.Field[AS112TimeseriesGroupDNSSECParamsFormat]` Format in which results will be returned. - `const AS112TimeseriesGroupDNSSECParamsFormatJson AS112TimeseriesGroupDNSSECParamsFormat = "JSON"` - `const AS112TimeseriesGroupDNSSECParamsFormatCsv AS112TimeseriesGroupDNSSECParamsFormat = "CSV"` - `Location param.Field[[]string]` 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]` Array of names used to label the series in the response. - `Protocol param.Field[[]AS112TimeseriesGroupDNSSECParamsProtocol]` Filters results by DNS transport protocol. - `const AS112TimeseriesGroupDNSSECParamsProtocolUdp AS112TimeseriesGroupDNSSECParamsProtocol = "UDP"` - `const AS112TimeseriesGroupDNSSECParamsProtocolTCP AS112TimeseriesGroupDNSSECParamsProtocol = "TCP"` - `const AS112TimeseriesGroupDNSSECParamsProtocolHTTPS AS112TimeseriesGroupDNSSECParamsProtocol = "HTTPS"` - `const AS112TimeseriesGroupDNSSECParamsProtocolTLS AS112TimeseriesGroupDNSSECParamsProtocol = "TLS"` - `QueryType param.Field[[]AS112TimeseriesGroupDNSSECParamsQueryType]` Filters results by DNS query type. - `const AS112TimeseriesGroupDNSSECParamsQueryTypeA AS112TimeseriesGroupDNSSECParamsQueryType = "A"` - `const AS112TimeseriesGroupDNSSECParamsQueryTypeAAAA AS112TimeseriesGroupDNSSECParamsQueryType = "AAAA"` - `const AS112TimeseriesGroupDNSSECParamsQueryTypeA6 AS112TimeseriesGroupDNSSECParamsQueryType = "A6"` - `const AS112TimeseriesGroupDNSSECParamsQueryTypeAfsdb AS112TimeseriesGroupDNSSECParamsQueryType = "AFSDB"` - `const AS112TimeseriesGroupDNSSECParamsQueryTypeAny AS112TimeseriesGroupDNSSECParamsQueryType = "ANY"` - `const AS112TimeseriesGroupDNSSECParamsQueryTypeApl AS112TimeseriesGroupDNSSECParamsQueryType = "APL"` - `const AS112TimeseriesGroupDNSSECParamsQueryTypeAtma AS112TimeseriesGroupDNSSECParamsQueryType = "ATMA"` - `const AS112TimeseriesGroupDNSSECParamsQueryTypeAXFR AS112TimeseriesGroupDNSSECParamsQueryType = "AXFR"` - `const AS112TimeseriesGroupDNSSECParamsQueryTypeCAA AS112TimeseriesGroupDNSSECParamsQueryType = "CAA"` - `const AS112TimeseriesGroupDNSSECParamsQueryTypeCdnskey AS112TimeseriesGroupDNSSECParamsQueryType = "CDNSKEY"` - `const AS112TimeseriesGroupDNSSECParamsQueryTypeCds AS112TimeseriesGroupDNSSECParamsQueryType = "CDS"` - `const AS112TimeseriesGroupDNSSECParamsQueryTypeCERT AS112TimeseriesGroupDNSSECParamsQueryType = "CERT"` - `const AS112TimeseriesGroupDNSSECParamsQueryTypeCNAME AS112TimeseriesGroupDNSSECParamsQueryType = "CNAME"` - `const AS112TimeseriesGroupDNSSECParamsQueryTypeCsync AS112TimeseriesGroupDNSSECParamsQueryType = "CSYNC"` - `const AS112TimeseriesGroupDNSSECParamsQueryTypeDhcid AS112TimeseriesGroupDNSSECParamsQueryType = "DHCID"` - `const AS112TimeseriesGroupDNSSECParamsQueryTypeDlv AS112TimeseriesGroupDNSSECParamsQueryType = "DLV"` - `const AS112TimeseriesGroupDNSSECParamsQueryTypeDname AS112TimeseriesGroupDNSSECParamsQueryType = "DNAME"` - `const AS112TimeseriesGroupDNSSECParamsQueryTypeDNSKEY AS112TimeseriesGroupDNSSECParamsQueryType = "DNSKEY"` - `const AS112TimeseriesGroupDNSSECParamsQueryTypeDoa AS112TimeseriesGroupDNSSECParamsQueryType = "DOA"` - `const AS112TimeseriesGroupDNSSECParamsQueryTypeDS AS112TimeseriesGroupDNSSECParamsQueryType = "DS"` - `const AS112TimeseriesGroupDNSSECParamsQueryTypeEid AS112TimeseriesGroupDNSSECParamsQueryType = "EID"` - `const AS112TimeseriesGroupDNSSECParamsQueryTypeEui48 AS112TimeseriesGroupDNSSECParamsQueryType = "EUI48"` - `const AS112TimeseriesGroupDNSSECParamsQueryTypeEui64 AS112TimeseriesGroupDNSSECParamsQueryType = "EUI64"` - `const AS112TimeseriesGroupDNSSECParamsQueryTypeGpos AS112TimeseriesGroupDNSSECParamsQueryType = "GPOS"` - `const AS112TimeseriesGroupDNSSECParamsQueryTypeGid AS112TimeseriesGroupDNSSECParamsQueryType = "GID"` - `const AS112TimeseriesGroupDNSSECParamsQueryTypeHinfo AS112TimeseriesGroupDNSSECParamsQueryType = "HINFO"` - `const AS112TimeseriesGroupDNSSECParamsQueryTypeHip AS112TimeseriesGroupDNSSECParamsQueryType = "HIP"` - `const AS112TimeseriesGroupDNSSECParamsQueryTypeHTTPS AS112TimeseriesGroupDNSSECParamsQueryType = "HTTPS"` - `const AS112TimeseriesGroupDNSSECParamsQueryTypeIpseckey AS112TimeseriesGroupDNSSECParamsQueryType = "IPSECKEY"` - `const AS112TimeseriesGroupDNSSECParamsQueryTypeIsdn AS112TimeseriesGroupDNSSECParamsQueryType = "ISDN"` - `const AS112TimeseriesGroupDNSSECParamsQueryTypeIxfr AS112TimeseriesGroupDNSSECParamsQueryType = "IXFR"` - `const AS112TimeseriesGroupDNSSECParamsQueryTypeKey AS112TimeseriesGroupDNSSECParamsQueryType = "KEY"` - `const AS112TimeseriesGroupDNSSECParamsQueryTypeKx AS112TimeseriesGroupDNSSECParamsQueryType = "KX"` - `const AS112TimeseriesGroupDNSSECParamsQueryTypeL32 AS112TimeseriesGroupDNSSECParamsQueryType = "L32"` - `const AS112TimeseriesGroupDNSSECParamsQueryTypeL64 AS112TimeseriesGroupDNSSECParamsQueryType = "L64"` - `const AS112TimeseriesGroupDNSSECParamsQueryTypeLOC AS112TimeseriesGroupDNSSECParamsQueryType = "LOC"` - `const AS112TimeseriesGroupDNSSECParamsQueryTypeLp AS112TimeseriesGroupDNSSECParamsQueryType = "LP"` - `const AS112TimeseriesGroupDNSSECParamsQueryTypeMaila AS112TimeseriesGroupDNSSECParamsQueryType = "MAILA"` - `const AS112TimeseriesGroupDNSSECParamsQueryTypeMailb AS112TimeseriesGroupDNSSECParamsQueryType = "MAILB"` - `const AS112TimeseriesGroupDNSSECParamsQueryTypeMB AS112TimeseriesGroupDNSSECParamsQueryType = "MB"` - `const AS112TimeseriesGroupDNSSECParamsQueryTypeMd AS112TimeseriesGroupDNSSECParamsQueryType = "MD"` - `const AS112TimeseriesGroupDNSSECParamsQueryTypeMf AS112TimeseriesGroupDNSSECParamsQueryType = "MF"` - `const AS112TimeseriesGroupDNSSECParamsQueryTypeMg AS112TimeseriesGroupDNSSECParamsQueryType = "MG"` - `const AS112TimeseriesGroupDNSSECParamsQueryTypeMinfo AS112TimeseriesGroupDNSSECParamsQueryType = "MINFO"` - `const AS112TimeseriesGroupDNSSECParamsQueryTypeMr AS112TimeseriesGroupDNSSECParamsQueryType = "MR"` - `const AS112TimeseriesGroupDNSSECParamsQueryTypeMX AS112TimeseriesGroupDNSSECParamsQueryType = "MX"` - `const AS112TimeseriesGroupDNSSECParamsQueryTypeNAPTR AS112TimeseriesGroupDNSSECParamsQueryType = "NAPTR"` - `const AS112TimeseriesGroupDNSSECParamsQueryTypeNb AS112TimeseriesGroupDNSSECParamsQueryType = "NB"` - `const AS112TimeseriesGroupDNSSECParamsQueryTypeNbstat AS112TimeseriesGroupDNSSECParamsQueryType = "NBSTAT"` - `const AS112TimeseriesGroupDNSSECParamsQueryTypeNid AS112TimeseriesGroupDNSSECParamsQueryType = "NID"` - `const AS112TimeseriesGroupDNSSECParamsQueryTypeNimloc AS112TimeseriesGroupDNSSECParamsQueryType = "NIMLOC"` - `const AS112TimeseriesGroupDNSSECParamsQueryTypeNinfo AS112TimeseriesGroupDNSSECParamsQueryType = "NINFO"` - `const AS112TimeseriesGroupDNSSECParamsQueryTypeNS AS112TimeseriesGroupDNSSECParamsQueryType = "NS"` - `const AS112TimeseriesGroupDNSSECParamsQueryTypeNsap AS112TimeseriesGroupDNSSECParamsQueryType = "NSAP"` - `const AS112TimeseriesGroupDNSSECParamsQueryTypeNsec AS112TimeseriesGroupDNSSECParamsQueryType = "NSEC"` - `const AS112TimeseriesGroupDNSSECParamsQueryTypeNsec3 AS112TimeseriesGroupDNSSECParamsQueryType = "NSEC3"` - `const AS112TimeseriesGroupDNSSECParamsQueryTypeNsec3Param AS112TimeseriesGroupDNSSECParamsQueryType = "NSEC3PARAM"` - `const AS112TimeseriesGroupDNSSECParamsQueryTypeNull AS112TimeseriesGroupDNSSECParamsQueryType = "NULL"` - `const AS112TimeseriesGroupDNSSECParamsQueryTypeNxt AS112TimeseriesGroupDNSSECParamsQueryType = "NXT"` - `const AS112TimeseriesGroupDNSSECParamsQueryTypeOpenpgpkey AS112TimeseriesGroupDNSSECParamsQueryType = "OPENPGPKEY"` - `const AS112TimeseriesGroupDNSSECParamsQueryTypeOpt AS112TimeseriesGroupDNSSECParamsQueryType = "OPT"` - `const AS112TimeseriesGroupDNSSECParamsQueryTypePTR AS112TimeseriesGroupDNSSECParamsQueryType = "PTR"` - `const AS112TimeseriesGroupDNSSECParamsQueryTypePx AS112TimeseriesGroupDNSSECParamsQueryType = "PX"` - `const AS112TimeseriesGroupDNSSECParamsQueryTypeRkey AS112TimeseriesGroupDNSSECParamsQueryType = "RKEY"` - `const AS112TimeseriesGroupDNSSECParamsQueryTypeRp AS112TimeseriesGroupDNSSECParamsQueryType = "RP"` - `const AS112TimeseriesGroupDNSSECParamsQueryTypeRrsig AS112TimeseriesGroupDNSSECParamsQueryType = "RRSIG"` - `const AS112TimeseriesGroupDNSSECParamsQueryTypeRt AS112TimeseriesGroupDNSSECParamsQueryType = "RT"` - `const AS112TimeseriesGroupDNSSECParamsQueryTypeSig AS112TimeseriesGroupDNSSECParamsQueryType = "SIG"` - `const AS112TimeseriesGroupDNSSECParamsQueryTypeSink AS112TimeseriesGroupDNSSECParamsQueryType = "SINK"` - `const AS112TimeseriesGroupDNSSECParamsQueryTypeSMIMEA AS112TimeseriesGroupDNSSECParamsQueryType = "SMIMEA"` - `const AS112TimeseriesGroupDNSSECParamsQueryTypeSOA AS112TimeseriesGroupDNSSECParamsQueryType = "SOA"` - `const AS112TimeseriesGroupDNSSECParamsQueryTypeSPF AS112TimeseriesGroupDNSSECParamsQueryType = "SPF"` - `const AS112TimeseriesGroupDNSSECParamsQueryTypeSRV AS112TimeseriesGroupDNSSECParamsQueryType = "SRV"` - `const AS112TimeseriesGroupDNSSECParamsQueryTypeSSHFP AS112TimeseriesGroupDNSSECParamsQueryType = "SSHFP"` - `const AS112TimeseriesGroupDNSSECParamsQueryTypeSVCB AS112TimeseriesGroupDNSSECParamsQueryType = "SVCB"` - `const AS112TimeseriesGroupDNSSECParamsQueryTypeTa AS112TimeseriesGroupDNSSECParamsQueryType = "TA"` - `const AS112TimeseriesGroupDNSSECParamsQueryTypeTalink AS112TimeseriesGroupDNSSECParamsQueryType = "TALINK"` - `const AS112TimeseriesGroupDNSSECParamsQueryTypeTkey AS112TimeseriesGroupDNSSECParamsQueryType = "TKEY"` - `const AS112TimeseriesGroupDNSSECParamsQueryTypeTLSA AS112TimeseriesGroupDNSSECParamsQueryType = "TLSA"` - `const AS112TimeseriesGroupDNSSECParamsQueryTypeTSIG AS112TimeseriesGroupDNSSECParamsQueryType = "TSIG"` - `const AS112TimeseriesGroupDNSSECParamsQueryTypeTXT AS112TimeseriesGroupDNSSECParamsQueryType = "TXT"` - `const AS112TimeseriesGroupDNSSECParamsQueryTypeUinfo AS112TimeseriesGroupDNSSECParamsQueryType = "UINFO"` - `const AS112TimeseriesGroupDNSSECParamsQueryTypeUID AS112TimeseriesGroupDNSSECParamsQueryType = "UID"` - `const AS112TimeseriesGroupDNSSECParamsQueryTypeUnspec AS112TimeseriesGroupDNSSECParamsQueryType = "UNSPEC"` - `const AS112TimeseriesGroupDNSSECParamsQueryTypeURI AS112TimeseriesGroupDNSSECParamsQueryType = "URI"` - `const AS112TimeseriesGroupDNSSECParamsQueryTypeWks AS112TimeseriesGroupDNSSECParamsQueryType = "WKS"` - `const AS112TimeseriesGroupDNSSECParamsQueryTypeX25 AS112TimeseriesGroupDNSSECParamsQueryType = "X25"` - `const AS112TimeseriesGroupDNSSECParamsQueryTypeZonemd AS112TimeseriesGroupDNSSECParamsQueryType = "ZONEMD"` - `ResponseCode param.Field[[]AS112TimeseriesGroupDNSSECParamsResponseCode]` Filters results by DNS response code. - `const AS112TimeseriesGroupDNSSECParamsResponseCodeNoerror AS112TimeseriesGroupDNSSECParamsResponseCode = "NOERROR"` - `const AS112TimeseriesGroupDNSSECParamsResponseCodeFormerr AS112TimeseriesGroupDNSSECParamsResponseCode = "FORMERR"` - `const AS112TimeseriesGroupDNSSECParamsResponseCodeServfail AS112TimeseriesGroupDNSSECParamsResponseCode = "SERVFAIL"` - `const AS112TimeseriesGroupDNSSECParamsResponseCodeNxdomain AS112TimeseriesGroupDNSSECParamsResponseCode = "NXDOMAIN"` - `const AS112TimeseriesGroupDNSSECParamsResponseCodeNotimp AS112TimeseriesGroupDNSSECParamsResponseCode = "NOTIMP"` - `const AS112TimeseriesGroupDNSSECParamsResponseCodeRefused AS112TimeseriesGroupDNSSECParamsResponseCode = "REFUSED"` - `const AS112TimeseriesGroupDNSSECParamsResponseCodeYxdomain AS112TimeseriesGroupDNSSECParamsResponseCode = "YXDOMAIN"` - `const AS112TimeseriesGroupDNSSECParamsResponseCodeYxrrset AS112TimeseriesGroupDNSSECParamsResponseCode = "YXRRSET"` - `const AS112TimeseriesGroupDNSSECParamsResponseCodeNxrrset AS112TimeseriesGroupDNSSECParamsResponseCode = "NXRRSET"` - `const AS112TimeseriesGroupDNSSECParamsResponseCodeNotauth AS112TimeseriesGroupDNSSECParamsResponseCode = "NOTAUTH"` - `const AS112TimeseriesGroupDNSSECParamsResponseCodeNotzone AS112TimeseriesGroupDNSSECParamsResponseCode = "NOTZONE"` - `const AS112TimeseriesGroupDNSSECParamsResponseCodeBadsig AS112TimeseriesGroupDNSSECParamsResponseCode = "BADSIG"` - `const AS112TimeseriesGroupDNSSECParamsResponseCodeBadkey AS112TimeseriesGroupDNSSECParamsResponseCode = "BADKEY"` - `const AS112TimeseriesGroupDNSSECParamsResponseCodeBadtime AS112TimeseriesGroupDNSSECParamsResponseCode = "BADTIME"` - `const AS112TimeseriesGroupDNSSECParamsResponseCodeBadmode AS112TimeseriesGroupDNSSECParamsResponseCode = "BADMODE"` - `const AS112TimeseriesGroupDNSSECParamsResponseCodeBadname AS112TimeseriesGroupDNSSECParamsResponseCode = "BADNAME"` - `const AS112TimeseriesGroupDNSSECParamsResponseCodeBadalg AS112TimeseriesGroupDNSSECParamsResponseCode = "BADALG"` - `const AS112TimeseriesGroupDNSSECParamsResponseCodeBadtrunc AS112TimeseriesGroupDNSSECParamsResponseCode = "BADTRUNC"` - `const AS112TimeseriesGroupDNSSECParamsResponseCodeBadcookie AS112TimeseriesGroupDNSSECParamsResponseCode = "BADCOOKIE"` ### Returns - `type AS112TimeseriesGroupDNSSECResponse struct{…}` - `Meta AS112TimeseriesGroupDNSSECResponseMeta` Metadata for the results. - `AggInterval AS112TimeseriesGroupDNSSECResponseMetaAggInterval` Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). Refer to [Aggregation intervals](https://edgetunnel-b2h.pages.dev/radar/concepts/aggregation-intervals/). - `const AS112TimeseriesGroupDNSSECResponseMetaAggIntervalFifteenMinutes AS112TimeseriesGroupDNSSECResponseMetaAggInterval = "FIFTEEN_MINUTES"` - `const AS112TimeseriesGroupDNSSECResponseMetaAggIntervalOneHour AS112TimeseriesGroupDNSSECResponseMetaAggInterval = "ONE_HOUR"` - `const AS112TimeseriesGroupDNSSECResponseMetaAggIntervalOneDay AS112TimeseriesGroupDNSSECResponseMetaAggInterval = "ONE_DAY"` - `const AS112TimeseriesGroupDNSSECResponseMetaAggIntervalOneWeek AS112TimeseriesGroupDNSSECResponseMetaAggInterval = "ONE_WEEK"` - `const AS112TimeseriesGroupDNSSECResponseMetaAggIntervalOneMonth AS112TimeseriesGroupDNSSECResponseMetaAggInterval = "ONE_MONTH"` - `ConfidenceInfo AS112TimeseriesGroupDNSSECResponseMetaConfidenceInfo` - `Annotations []AS112TimeseriesGroupDNSSECResponseMetaConfidenceInfoAnnotation` - `DataSource AS112TimeseriesGroupDNSSECResponseMetaConfidenceInfoAnnotationsDataSource` Data source for annotations. - `const AS112TimeseriesGroupDNSSECResponseMetaConfidenceInfoAnnotationsDataSourceAll AS112TimeseriesGroupDNSSECResponseMetaConfidenceInfoAnnotationsDataSource = "ALL"` - `const AS112TimeseriesGroupDNSSECResponseMetaConfidenceInfoAnnotationsDataSourceAIBots AS112TimeseriesGroupDNSSECResponseMetaConfidenceInfoAnnotationsDataSource = "AI_BOTS"` - `const AS112TimeseriesGroupDNSSECResponseMetaConfidenceInfoAnnotationsDataSourceAIGateway AS112TimeseriesGroupDNSSECResponseMetaConfidenceInfoAnnotationsDataSource = "AI_GATEWAY"` - `const AS112TimeseriesGroupDNSSECResponseMetaConfidenceInfoAnnotationsDataSourceBGP AS112TimeseriesGroupDNSSECResponseMetaConfidenceInfoAnnotationsDataSource = "BGP"` - `const AS112TimeseriesGroupDNSSECResponseMetaConfidenceInfoAnnotationsDataSourceBots AS112TimeseriesGroupDNSSECResponseMetaConfidenceInfoAnnotationsDataSource = "BOTS"` - `const AS112TimeseriesGroupDNSSECResponseMetaConfidenceInfoAnnotationsDataSourceConnectionAnomaly AS112TimeseriesGroupDNSSECResponseMetaConfidenceInfoAnnotationsDataSource = "CONNECTION_ANOMALY"` - `const AS112TimeseriesGroupDNSSECResponseMetaConfidenceInfoAnnotationsDataSourceCT AS112TimeseriesGroupDNSSECResponseMetaConfidenceInfoAnnotationsDataSource = "CT"` - `const AS112TimeseriesGroupDNSSECResponseMetaConfidenceInfoAnnotationsDataSourceDNS AS112TimeseriesGroupDNSSECResponseMetaConfidenceInfoAnnotationsDataSource = "DNS"` - `const AS112TimeseriesGroupDNSSECResponseMetaConfidenceInfoAnnotationsDataSourceDNSMagnitude AS112TimeseriesGroupDNSSECResponseMetaConfidenceInfoAnnotationsDataSource = "DNS_MAGNITUDE"` - `const AS112TimeseriesGroupDNSSECResponseMetaConfidenceInfoAnnotationsDataSourceDNSAS112 AS112TimeseriesGroupDNSSECResponseMetaConfidenceInfoAnnotationsDataSource = "DNS_AS112"` - `const AS112TimeseriesGroupDNSSECResponseMetaConfidenceInfoAnnotationsDataSourceDos AS112TimeseriesGroupDNSSECResponseMetaConfidenceInfoAnnotationsDataSource = "DOS"` - `const AS112TimeseriesGroupDNSSECResponseMetaConfidenceInfoAnnotationsDataSourceEmailRouting AS112TimeseriesGroupDNSSECResponseMetaConfidenceInfoAnnotationsDataSource = "EMAIL_ROUTING"` - `const AS112TimeseriesGroupDNSSECResponseMetaConfidenceInfoAnnotationsDataSourceEmailSecurity AS112TimeseriesGroupDNSSECResponseMetaConfidenceInfoAnnotationsDataSource = "EMAIL_SECURITY"` - `const AS112TimeseriesGroupDNSSECResponseMetaConfidenceInfoAnnotationsDataSourceFw AS112TimeseriesGroupDNSSECResponseMetaConfidenceInfoAnnotationsDataSource = "FW"` - `const AS112TimeseriesGroupDNSSECResponseMetaConfidenceInfoAnnotationsDataSourceFwPg AS112TimeseriesGroupDNSSECResponseMetaConfidenceInfoAnnotationsDataSource = "FW_PG"` - `const AS112TimeseriesGroupDNSSECResponseMetaConfidenceInfoAnnotationsDataSourceHTTP AS112TimeseriesGroupDNSSECResponseMetaConfidenceInfoAnnotationsDataSource = "HTTP"` - `const AS112TimeseriesGroupDNSSECResponseMetaConfidenceInfoAnnotationsDataSourceHTTPControl AS112TimeseriesGroupDNSSECResponseMetaConfidenceInfoAnnotationsDataSource = "HTTP_CONTROL"` - `const AS112TimeseriesGroupDNSSECResponseMetaConfidenceInfoAnnotationsDataSourceHTTPCrawlerReferer AS112TimeseriesGroupDNSSECResponseMetaConfidenceInfoAnnotationsDataSource = "HTTP_CRAWLER_REFERER"` - `const AS112TimeseriesGroupDNSSECResponseMetaConfidenceInfoAnnotationsDataSourceHTTPOrigins AS112TimeseriesGroupDNSSECResponseMetaConfidenceInfoAnnotationsDataSource = "HTTP_ORIGINS"` - `const AS112TimeseriesGroupDNSSECResponseMetaConfidenceInfoAnnotationsDataSourceIQI AS112TimeseriesGroupDNSSECResponseMetaConfidenceInfoAnnotationsDataSource = "IQI"` - `const AS112TimeseriesGroupDNSSECResponseMetaConfidenceInfoAnnotationsDataSourceLeakedCredentials AS112TimeseriesGroupDNSSECResponseMetaConfidenceInfoAnnotationsDataSource = "LEAKED_CREDENTIALS"` - `const AS112TimeseriesGroupDNSSECResponseMetaConfidenceInfoAnnotationsDataSourceNet AS112TimeseriesGroupDNSSECResponseMetaConfidenceInfoAnnotationsDataSource = "NET"` - `const AS112TimeseriesGroupDNSSECResponseMetaConfidenceInfoAnnotationsDataSourceRobotsTXT AS112TimeseriesGroupDNSSECResponseMetaConfidenceInfoAnnotationsDataSource = "ROBOTS_TXT"` - `const AS112TimeseriesGroupDNSSECResponseMetaConfidenceInfoAnnotationsDataSourceSpeed AS112TimeseriesGroupDNSSECResponseMetaConfidenceInfoAnnotationsDataSource = "SPEED"` - `const AS112TimeseriesGroupDNSSECResponseMetaConfidenceInfoAnnotationsDataSourceWorkersAI AS112TimeseriesGroupDNSSECResponseMetaConfidenceInfoAnnotationsDataSource = "WORKERS_AI"` - `Description string` - `EndDate Time` - `EventType AS112TimeseriesGroupDNSSECResponseMetaConfidenceInfoAnnotationsEventType` Event type for annotations. - `const AS112TimeseriesGroupDNSSECResponseMetaConfidenceInfoAnnotationsEventTypeEvent AS112TimeseriesGroupDNSSECResponseMetaConfidenceInfoAnnotationsEventType = "EVENT"` - `const AS112TimeseriesGroupDNSSECResponseMetaConfidenceInfoAnnotationsEventTypeGeneral AS112TimeseriesGroupDNSSECResponseMetaConfidenceInfoAnnotationsEventType = "GENERAL"` - `const AS112TimeseriesGroupDNSSECResponseMetaConfidenceInfoAnnotationsEventTypeOutage AS112TimeseriesGroupDNSSECResponseMetaConfidenceInfoAnnotationsEventType = "OUTAGE"` - `const AS112TimeseriesGroupDNSSECResponseMetaConfidenceInfoAnnotationsEventTypePartialProjection AS112TimeseriesGroupDNSSECResponseMetaConfidenceInfoAnnotationsEventType = "PARTIAL_PROJECTION"` - `const AS112TimeseriesGroupDNSSECResponseMetaConfidenceInfoAnnotationsEventTypePipeline AS112TimeseriesGroupDNSSECResponseMetaConfidenceInfoAnnotationsEventType = "PIPELINE"` - `const AS112TimeseriesGroupDNSSECResponseMetaConfidenceInfoAnnotationsEventTypeTrafficAnomaly AS112TimeseriesGroupDNSSECResponseMetaConfidenceInfoAnnotationsEventType = "TRAFFIC_ANOMALY"` - `IsInstantaneous bool` Whether event is a single point in time or a time range. - `LinkedURL string` - `StartDate Time` - `Tags []string` - `Level int64` Provides an indication of how much confidence Cloudflare has in the data. - `DateRange []AS112TimeseriesGroupDNSSECResponseMetaDateRange` - `EndTime Time` Adjusted end of date range. - `StartTime Time` Adjusted start of date range. - `LastUpdated Time` Timestamp of the last dataset update. - `Normalization AS112TimeseriesGroupDNSSECResponseMetaNormalization` Normalization method applied to the results. Refer to [Normalization methods](https://edgetunnel-b2h.pages.dev/radar/concepts/normalization/). - `const AS112TimeseriesGroupDNSSECResponseMetaNormalizationPercentage AS112TimeseriesGroupDNSSECResponseMetaNormalization = "PERCENTAGE"` - `const AS112TimeseriesGroupDNSSECResponseMetaNormalizationMin0Max AS112TimeseriesGroupDNSSECResponseMetaNormalization = "MIN0_MAX"` - `const AS112TimeseriesGroupDNSSECResponseMetaNormalizationMinMax AS112TimeseriesGroupDNSSECResponseMetaNormalization = "MIN_MAX"` - `const AS112TimeseriesGroupDNSSECResponseMetaNormalizationRawValues AS112TimeseriesGroupDNSSECResponseMetaNormalization = "RAW_VALUES"` - `const AS112TimeseriesGroupDNSSECResponseMetaNormalizationPercentageChange AS112TimeseriesGroupDNSSECResponseMetaNormalization = "PERCENTAGE_CHANGE"` - `const AS112TimeseriesGroupDNSSECResponseMetaNormalizationRollingAverage AS112TimeseriesGroupDNSSECResponseMetaNormalization = "ROLLING_AVERAGE"` - `const AS112TimeseriesGroupDNSSECResponseMetaNormalizationOverlappedPercentage AS112TimeseriesGroupDNSSECResponseMetaNormalization = "OVERLAPPED_PERCENTAGE"` - `const AS112TimeseriesGroupDNSSECResponseMetaNormalizationRatio AS112TimeseriesGroupDNSSECResponseMetaNormalization = "RATIO"` - `Units []AS112TimeseriesGroupDNSSECResponseMetaUnit` Measurement units for the results. - `Name string` - `Value string` - `Serie0 AS112TimeseriesGroupDNSSECResponseSerie0` - `NotSupported []string` - `Supported []string` ### Example ```go 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.TimeseriesGroups.DNSSEC(context.TODO(), radar.AS112TimeseriesGroupDNSSECParams{ }) if err != nil { panic(err.Error()) } fmt.Printf("%+v\n", response.Meta) } ``` #### Response ```json { "result": { "meta": { "aggInterval": "FIFTEEN_MINUTES", "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" } ] }, "serie_0": { "NOT_SUPPORTED": [ "10" ], "SUPPORTED": [ "10" ] } }, "success": true } ``` ## Get AS112 DNS queries by EDNS support summary `client.Radar.AS112.TimeseriesGroups.Edns(ctx, query) (*AS112TimeseriesGroupEdnsResponse, error)` **get** `/radar/as112/timeseries_groups/edns` Retrieves the distribution of AS112 DNS queries by EDNS (Extension Mechanisms for DNS) support over time. ### Parameters - `query AS112TimeseriesGroupEdnsParams` - `AggInterval param.Field[AS112TimeseriesGroupEdnsParamsAggInterval]` Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). Refer to [Aggregation intervals](https://edgetunnel-b2h.pages.dev/radar/concepts/aggregation-intervals/). When omitted, the interval is auto-selected from the requested date range; finer intervals are only available for shorter ranges. If the requested interval is too granular for the date range, the request is rejected. - `const AS112TimeseriesGroupEdnsParamsAggInterval15m AS112TimeseriesGroupEdnsParamsAggInterval = "15m"` - `const AS112TimeseriesGroupEdnsParamsAggInterval1h AS112TimeseriesGroupEdnsParamsAggInterval = "1h"` - `const AS112TimeseriesGroupEdnsParamsAggInterval1d AS112TimeseriesGroupEdnsParamsAggInterval = "1d"` - `const AS112TimeseriesGroupEdnsParamsAggInterval1w AS112TimeseriesGroupEdnsParamsAggInterval = "1w"` - `Continent param.Field[[]string]` 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]` End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected. - `DateRange param.Field[[]string]` Filters results by relative date range ending at the current time, with each value producing a separate series. Use `d` for days (up to `364d`) or `w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters). - `DateStart param.Field[[]Time]` Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected. - `Format param.Field[AS112TimeseriesGroupEdnsParamsFormat]` Format in which results will be returned. - `const AS112TimeseriesGroupEdnsParamsFormatJson AS112TimeseriesGroupEdnsParamsFormat = "JSON"` - `const AS112TimeseriesGroupEdnsParamsFormatCsv AS112TimeseriesGroupEdnsParamsFormat = "CSV"` - `Location param.Field[[]string]` 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]` Array of names used to label the series in the response. - `Protocol param.Field[[]AS112TimeseriesGroupEdnsParamsProtocol]` Filters results by DNS transport protocol. - `const AS112TimeseriesGroupEdnsParamsProtocolUdp AS112TimeseriesGroupEdnsParamsProtocol = "UDP"` - `const AS112TimeseriesGroupEdnsParamsProtocolTCP AS112TimeseriesGroupEdnsParamsProtocol = "TCP"` - `const AS112TimeseriesGroupEdnsParamsProtocolHTTPS AS112TimeseriesGroupEdnsParamsProtocol = "HTTPS"` - `const AS112TimeseriesGroupEdnsParamsProtocolTLS AS112TimeseriesGroupEdnsParamsProtocol = "TLS"` - `QueryType param.Field[[]AS112TimeseriesGroupEdnsParamsQueryType]` Filters results by DNS query type. - `const AS112TimeseriesGroupEdnsParamsQueryTypeA AS112TimeseriesGroupEdnsParamsQueryType = "A"` - `const AS112TimeseriesGroupEdnsParamsQueryTypeAAAA AS112TimeseriesGroupEdnsParamsQueryType = "AAAA"` - `const AS112TimeseriesGroupEdnsParamsQueryTypeA6 AS112TimeseriesGroupEdnsParamsQueryType = "A6"` - `const AS112TimeseriesGroupEdnsParamsQueryTypeAfsdb AS112TimeseriesGroupEdnsParamsQueryType = "AFSDB"` - `const AS112TimeseriesGroupEdnsParamsQueryTypeAny AS112TimeseriesGroupEdnsParamsQueryType = "ANY"` - `const AS112TimeseriesGroupEdnsParamsQueryTypeApl AS112TimeseriesGroupEdnsParamsQueryType = "APL"` - `const AS112TimeseriesGroupEdnsParamsQueryTypeAtma AS112TimeseriesGroupEdnsParamsQueryType = "ATMA"` - `const AS112TimeseriesGroupEdnsParamsQueryTypeAXFR AS112TimeseriesGroupEdnsParamsQueryType = "AXFR"` - `const AS112TimeseriesGroupEdnsParamsQueryTypeCAA AS112TimeseriesGroupEdnsParamsQueryType = "CAA"` - `const AS112TimeseriesGroupEdnsParamsQueryTypeCdnskey AS112TimeseriesGroupEdnsParamsQueryType = "CDNSKEY"` - `const AS112TimeseriesGroupEdnsParamsQueryTypeCds AS112TimeseriesGroupEdnsParamsQueryType = "CDS"` - `const AS112TimeseriesGroupEdnsParamsQueryTypeCERT AS112TimeseriesGroupEdnsParamsQueryType = "CERT"` - `const AS112TimeseriesGroupEdnsParamsQueryTypeCNAME AS112TimeseriesGroupEdnsParamsQueryType = "CNAME"` - `const AS112TimeseriesGroupEdnsParamsQueryTypeCsync AS112TimeseriesGroupEdnsParamsQueryType = "CSYNC"` - `const AS112TimeseriesGroupEdnsParamsQueryTypeDhcid AS112TimeseriesGroupEdnsParamsQueryType = "DHCID"` - `const AS112TimeseriesGroupEdnsParamsQueryTypeDlv AS112TimeseriesGroupEdnsParamsQueryType = "DLV"` - `const AS112TimeseriesGroupEdnsParamsQueryTypeDname AS112TimeseriesGroupEdnsParamsQueryType = "DNAME"` - `const AS112TimeseriesGroupEdnsParamsQueryTypeDNSKEY AS112TimeseriesGroupEdnsParamsQueryType = "DNSKEY"` - `const AS112TimeseriesGroupEdnsParamsQueryTypeDoa AS112TimeseriesGroupEdnsParamsQueryType = "DOA"` - `const AS112TimeseriesGroupEdnsParamsQueryTypeDS AS112TimeseriesGroupEdnsParamsQueryType = "DS"` - `const AS112TimeseriesGroupEdnsParamsQueryTypeEid AS112TimeseriesGroupEdnsParamsQueryType = "EID"` - `const AS112TimeseriesGroupEdnsParamsQueryTypeEui48 AS112TimeseriesGroupEdnsParamsQueryType = "EUI48"` - `const AS112TimeseriesGroupEdnsParamsQueryTypeEui64 AS112TimeseriesGroupEdnsParamsQueryType = "EUI64"` - `const AS112TimeseriesGroupEdnsParamsQueryTypeGpos AS112TimeseriesGroupEdnsParamsQueryType = "GPOS"` - `const AS112TimeseriesGroupEdnsParamsQueryTypeGid AS112TimeseriesGroupEdnsParamsQueryType = "GID"` - `const AS112TimeseriesGroupEdnsParamsQueryTypeHinfo AS112TimeseriesGroupEdnsParamsQueryType = "HINFO"` - `const AS112TimeseriesGroupEdnsParamsQueryTypeHip AS112TimeseriesGroupEdnsParamsQueryType = "HIP"` - `const AS112TimeseriesGroupEdnsParamsQueryTypeHTTPS AS112TimeseriesGroupEdnsParamsQueryType = "HTTPS"` - `const AS112TimeseriesGroupEdnsParamsQueryTypeIpseckey AS112TimeseriesGroupEdnsParamsQueryType = "IPSECKEY"` - `const AS112TimeseriesGroupEdnsParamsQueryTypeIsdn AS112TimeseriesGroupEdnsParamsQueryType = "ISDN"` - `const AS112TimeseriesGroupEdnsParamsQueryTypeIxfr AS112TimeseriesGroupEdnsParamsQueryType = "IXFR"` - `const AS112TimeseriesGroupEdnsParamsQueryTypeKey AS112TimeseriesGroupEdnsParamsQueryType = "KEY"` - `const AS112TimeseriesGroupEdnsParamsQueryTypeKx AS112TimeseriesGroupEdnsParamsQueryType = "KX"` - `const AS112TimeseriesGroupEdnsParamsQueryTypeL32 AS112TimeseriesGroupEdnsParamsQueryType = "L32"` - `const AS112TimeseriesGroupEdnsParamsQueryTypeL64 AS112TimeseriesGroupEdnsParamsQueryType = "L64"` - `const AS112TimeseriesGroupEdnsParamsQueryTypeLOC AS112TimeseriesGroupEdnsParamsQueryType = "LOC"` - `const AS112TimeseriesGroupEdnsParamsQueryTypeLp AS112TimeseriesGroupEdnsParamsQueryType = "LP"` - `const AS112TimeseriesGroupEdnsParamsQueryTypeMaila AS112TimeseriesGroupEdnsParamsQueryType = "MAILA"` - `const AS112TimeseriesGroupEdnsParamsQueryTypeMailb AS112TimeseriesGroupEdnsParamsQueryType = "MAILB"` - `const AS112TimeseriesGroupEdnsParamsQueryTypeMB AS112TimeseriesGroupEdnsParamsQueryType = "MB"` - `const AS112TimeseriesGroupEdnsParamsQueryTypeMd AS112TimeseriesGroupEdnsParamsQueryType = "MD"` - `const AS112TimeseriesGroupEdnsParamsQueryTypeMf AS112TimeseriesGroupEdnsParamsQueryType = "MF"` - `const AS112TimeseriesGroupEdnsParamsQueryTypeMg AS112TimeseriesGroupEdnsParamsQueryType = "MG"` - `const AS112TimeseriesGroupEdnsParamsQueryTypeMinfo AS112TimeseriesGroupEdnsParamsQueryType = "MINFO"` - `const AS112TimeseriesGroupEdnsParamsQueryTypeMr AS112TimeseriesGroupEdnsParamsQueryType = "MR"` - `const AS112TimeseriesGroupEdnsParamsQueryTypeMX AS112TimeseriesGroupEdnsParamsQueryType = "MX"` - `const AS112TimeseriesGroupEdnsParamsQueryTypeNAPTR AS112TimeseriesGroupEdnsParamsQueryType = "NAPTR"` - `const AS112TimeseriesGroupEdnsParamsQueryTypeNb AS112TimeseriesGroupEdnsParamsQueryType = "NB"` - `const AS112TimeseriesGroupEdnsParamsQueryTypeNbstat AS112TimeseriesGroupEdnsParamsQueryType = "NBSTAT"` - `const AS112TimeseriesGroupEdnsParamsQueryTypeNid AS112TimeseriesGroupEdnsParamsQueryType = "NID"` - `const AS112TimeseriesGroupEdnsParamsQueryTypeNimloc AS112TimeseriesGroupEdnsParamsQueryType = "NIMLOC"` - `const AS112TimeseriesGroupEdnsParamsQueryTypeNinfo AS112TimeseriesGroupEdnsParamsQueryType = "NINFO"` - `const AS112TimeseriesGroupEdnsParamsQueryTypeNS AS112TimeseriesGroupEdnsParamsQueryType = "NS"` - `const AS112TimeseriesGroupEdnsParamsQueryTypeNsap AS112TimeseriesGroupEdnsParamsQueryType = "NSAP"` - `const AS112TimeseriesGroupEdnsParamsQueryTypeNsec AS112TimeseriesGroupEdnsParamsQueryType = "NSEC"` - `const AS112TimeseriesGroupEdnsParamsQueryTypeNsec3 AS112TimeseriesGroupEdnsParamsQueryType = "NSEC3"` - `const AS112TimeseriesGroupEdnsParamsQueryTypeNsec3Param AS112TimeseriesGroupEdnsParamsQueryType = "NSEC3PARAM"` - `const AS112TimeseriesGroupEdnsParamsQueryTypeNull AS112TimeseriesGroupEdnsParamsQueryType = "NULL"` - `const AS112TimeseriesGroupEdnsParamsQueryTypeNxt AS112TimeseriesGroupEdnsParamsQueryType = "NXT"` - `const AS112TimeseriesGroupEdnsParamsQueryTypeOpenpgpkey AS112TimeseriesGroupEdnsParamsQueryType = "OPENPGPKEY"` - `const AS112TimeseriesGroupEdnsParamsQueryTypeOpt AS112TimeseriesGroupEdnsParamsQueryType = "OPT"` - `const AS112TimeseriesGroupEdnsParamsQueryTypePTR AS112TimeseriesGroupEdnsParamsQueryType = "PTR"` - `const AS112TimeseriesGroupEdnsParamsQueryTypePx AS112TimeseriesGroupEdnsParamsQueryType = "PX"` - `const AS112TimeseriesGroupEdnsParamsQueryTypeRkey AS112TimeseriesGroupEdnsParamsQueryType = "RKEY"` - `const AS112TimeseriesGroupEdnsParamsQueryTypeRp AS112TimeseriesGroupEdnsParamsQueryType = "RP"` - `const AS112TimeseriesGroupEdnsParamsQueryTypeRrsig AS112TimeseriesGroupEdnsParamsQueryType = "RRSIG"` - `const AS112TimeseriesGroupEdnsParamsQueryTypeRt AS112TimeseriesGroupEdnsParamsQueryType = "RT"` - `const AS112TimeseriesGroupEdnsParamsQueryTypeSig AS112TimeseriesGroupEdnsParamsQueryType = "SIG"` - `const AS112TimeseriesGroupEdnsParamsQueryTypeSink AS112TimeseriesGroupEdnsParamsQueryType = "SINK"` - `const AS112TimeseriesGroupEdnsParamsQueryTypeSMIMEA AS112TimeseriesGroupEdnsParamsQueryType = "SMIMEA"` - `const AS112TimeseriesGroupEdnsParamsQueryTypeSOA AS112TimeseriesGroupEdnsParamsQueryType = "SOA"` - `const AS112TimeseriesGroupEdnsParamsQueryTypeSPF AS112TimeseriesGroupEdnsParamsQueryType = "SPF"` - `const AS112TimeseriesGroupEdnsParamsQueryTypeSRV AS112TimeseriesGroupEdnsParamsQueryType = "SRV"` - `const AS112TimeseriesGroupEdnsParamsQueryTypeSSHFP AS112TimeseriesGroupEdnsParamsQueryType = "SSHFP"` - `const AS112TimeseriesGroupEdnsParamsQueryTypeSVCB AS112TimeseriesGroupEdnsParamsQueryType = "SVCB"` - `const AS112TimeseriesGroupEdnsParamsQueryTypeTa AS112TimeseriesGroupEdnsParamsQueryType = "TA"` - `const AS112TimeseriesGroupEdnsParamsQueryTypeTalink AS112TimeseriesGroupEdnsParamsQueryType = "TALINK"` - `const AS112TimeseriesGroupEdnsParamsQueryTypeTkey AS112TimeseriesGroupEdnsParamsQueryType = "TKEY"` - `const AS112TimeseriesGroupEdnsParamsQueryTypeTLSA AS112TimeseriesGroupEdnsParamsQueryType = "TLSA"` - `const AS112TimeseriesGroupEdnsParamsQueryTypeTSIG AS112TimeseriesGroupEdnsParamsQueryType = "TSIG"` - `const AS112TimeseriesGroupEdnsParamsQueryTypeTXT AS112TimeseriesGroupEdnsParamsQueryType = "TXT"` - `const AS112TimeseriesGroupEdnsParamsQueryTypeUinfo AS112TimeseriesGroupEdnsParamsQueryType = "UINFO"` - `const AS112TimeseriesGroupEdnsParamsQueryTypeUID AS112TimeseriesGroupEdnsParamsQueryType = "UID"` - `const AS112TimeseriesGroupEdnsParamsQueryTypeUnspec AS112TimeseriesGroupEdnsParamsQueryType = "UNSPEC"` - `const AS112TimeseriesGroupEdnsParamsQueryTypeURI AS112TimeseriesGroupEdnsParamsQueryType = "URI"` - `const AS112TimeseriesGroupEdnsParamsQueryTypeWks AS112TimeseriesGroupEdnsParamsQueryType = "WKS"` - `const AS112TimeseriesGroupEdnsParamsQueryTypeX25 AS112TimeseriesGroupEdnsParamsQueryType = "X25"` - `const AS112TimeseriesGroupEdnsParamsQueryTypeZonemd AS112TimeseriesGroupEdnsParamsQueryType = "ZONEMD"` - `ResponseCode param.Field[[]AS112TimeseriesGroupEdnsParamsResponseCode]` Filters results by DNS response code. - `const AS112TimeseriesGroupEdnsParamsResponseCodeNoerror AS112TimeseriesGroupEdnsParamsResponseCode = "NOERROR"` - `const AS112TimeseriesGroupEdnsParamsResponseCodeFormerr AS112TimeseriesGroupEdnsParamsResponseCode = "FORMERR"` - `const AS112TimeseriesGroupEdnsParamsResponseCodeServfail AS112TimeseriesGroupEdnsParamsResponseCode = "SERVFAIL"` - `const AS112TimeseriesGroupEdnsParamsResponseCodeNxdomain AS112TimeseriesGroupEdnsParamsResponseCode = "NXDOMAIN"` - `const AS112TimeseriesGroupEdnsParamsResponseCodeNotimp AS112TimeseriesGroupEdnsParamsResponseCode = "NOTIMP"` - `const AS112TimeseriesGroupEdnsParamsResponseCodeRefused AS112TimeseriesGroupEdnsParamsResponseCode = "REFUSED"` - `const AS112TimeseriesGroupEdnsParamsResponseCodeYxdomain AS112TimeseriesGroupEdnsParamsResponseCode = "YXDOMAIN"` - `const AS112TimeseriesGroupEdnsParamsResponseCodeYxrrset AS112TimeseriesGroupEdnsParamsResponseCode = "YXRRSET"` - `const AS112TimeseriesGroupEdnsParamsResponseCodeNxrrset AS112TimeseriesGroupEdnsParamsResponseCode = "NXRRSET"` - `const AS112TimeseriesGroupEdnsParamsResponseCodeNotauth AS112TimeseriesGroupEdnsParamsResponseCode = "NOTAUTH"` - `const AS112TimeseriesGroupEdnsParamsResponseCodeNotzone AS112TimeseriesGroupEdnsParamsResponseCode = "NOTZONE"` - `const AS112TimeseriesGroupEdnsParamsResponseCodeBadsig AS112TimeseriesGroupEdnsParamsResponseCode = "BADSIG"` - `const AS112TimeseriesGroupEdnsParamsResponseCodeBadkey AS112TimeseriesGroupEdnsParamsResponseCode = "BADKEY"` - `const AS112TimeseriesGroupEdnsParamsResponseCodeBadtime AS112TimeseriesGroupEdnsParamsResponseCode = "BADTIME"` - `const AS112TimeseriesGroupEdnsParamsResponseCodeBadmode AS112TimeseriesGroupEdnsParamsResponseCode = "BADMODE"` - `const AS112TimeseriesGroupEdnsParamsResponseCodeBadname AS112TimeseriesGroupEdnsParamsResponseCode = "BADNAME"` - `const AS112TimeseriesGroupEdnsParamsResponseCodeBadalg AS112TimeseriesGroupEdnsParamsResponseCode = "BADALG"` - `const AS112TimeseriesGroupEdnsParamsResponseCodeBadtrunc AS112TimeseriesGroupEdnsParamsResponseCode = "BADTRUNC"` - `const AS112TimeseriesGroupEdnsParamsResponseCodeBadcookie AS112TimeseriesGroupEdnsParamsResponseCode = "BADCOOKIE"` ### Returns - `type AS112TimeseriesGroupEdnsResponse struct{…}` - `Meta AS112TimeseriesGroupEdnsResponseMeta` Metadata for the results. - `AggInterval AS112TimeseriesGroupEdnsResponseMetaAggInterval` Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). Refer to [Aggregation intervals](https://edgetunnel-b2h.pages.dev/radar/concepts/aggregation-intervals/). - `const AS112TimeseriesGroupEdnsResponseMetaAggIntervalFifteenMinutes AS112TimeseriesGroupEdnsResponseMetaAggInterval = "FIFTEEN_MINUTES"` - `const AS112TimeseriesGroupEdnsResponseMetaAggIntervalOneHour AS112TimeseriesGroupEdnsResponseMetaAggInterval = "ONE_HOUR"` - `const AS112TimeseriesGroupEdnsResponseMetaAggIntervalOneDay AS112TimeseriesGroupEdnsResponseMetaAggInterval = "ONE_DAY"` - `const AS112TimeseriesGroupEdnsResponseMetaAggIntervalOneWeek AS112TimeseriesGroupEdnsResponseMetaAggInterval = "ONE_WEEK"` - `const AS112TimeseriesGroupEdnsResponseMetaAggIntervalOneMonth AS112TimeseriesGroupEdnsResponseMetaAggInterval = "ONE_MONTH"` - `ConfidenceInfo AS112TimeseriesGroupEdnsResponseMetaConfidenceInfo` - `Annotations []AS112TimeseriesGroupEdnsResponseMetaConfidenceInfoAnnotation` - `DataSource AS112TimeseriesGroupEdnsResponseMetaConfidenceInfoAnnotationsDataSource` Data source for annotations. - `const AS112TimeseriesGroupEdnsResponseMetaConfidenceInfoAnnotationsDataSourceAll AS112TimeseriesGroupEdnsResponseMetaConfidenceInfoAnnotationsDataSource = "ALL"` - `const AS112TimeseriesGroupEdnsResponseMetaConfidenceInfoAnnotationsDataSourceAIBots AS112TimeseriesGroupEdnsResponseMetaConfidenceInfoAnnotationsDataSource = "AI_BOTS"` - `const AS112TimeseriesGroupEdnsResponseMetaConfidenceInfoAnnotationsDataSourceAIGateway AS112TimeseriesGroupEdnsResponseMetaConfidenceInfoAnnotationsDataSource = "AI_GATEWAY"` - `const AS112TimeseriesGroupEdnsResponseMetaConfidenceInfoAnnotationsDataSourceBGP AS112TimeseriesGroupEdnsResponseMetaConfidenceInfoAnnotationsDataSource = "BGP"` - `const AS112TimeseriesGroupEdnsResponseMetaConfidenceInfoAnnotationsDataSourceBots AS112TimeseriesGroupEdnsResponseMetaConfidenceInfoAnnotationsDataSource = "BOTS"` - `const AS112TimeseriesGroupEdnsResponseMetaConfidenceInfoAnnotationsDataSourceConnectionAnomaly AS112TimeseriesGroupEdnsResponseMetaConfidenceInfoAnnotationsDataSource = "CONNECTION_ANOMALY"` - `const AS112TimeseriesGroupEdnsResponseMetaConfidenceInfoAnnotationsDataSourceCT AS112TimeseriesGroupEdnsResponseMetaConfidenceInfoAnnotationsDataSource = "CT"` - `const AS112TimeseriesGroupEdnsResponseMetaConfidenceInfoAnnotationsDataSourceDNS AS112TimeseriesGroupEdnsResponseMetaConfidenceInfoAnnotationsDataSource = "DNS"` - `const AS112TimeseriesGroupEdnsResponseMetaConfidenceInfoAnnotationsDataSourceDNSMagnitude AS112TimeseriesGroupEdnsResponseMetaConfidenceInfoAnnotationsDataSource = "DNS_MAGNITUDE"` - `const AS112TimeseriesGroupEdnsResponseMetaConfidenceInfoAnnotationsDataSourceDNSAS112 AS112TimeseriesGroupEdnsResponseMetaConfidenceInfoAnnotationsDataSource = "DNS_AS112"` - `const AS112TimeseriesGroupEdnsResponseMetaConfidenceInfoAnnotationsDataSourceDos AS112TimeseriesGroupEdnsResponseMetaConfidenceInfoAnnotationsDataSource = "DOS"` - `const AS112TimeseriesGroupEdnsResponseMetaConfidenceInfoAnnotationsDataSourceEmailRouting AS112TimeseriesGroupEdnsResponseMetaConfidenceInfoAnnotationsDataSource = "EMAIL_ROUTING"` - `const AS112TimeseriesGroupEdnsResponseMetaConfidenceInfoAnnotationsDataSourceEmailSecurity AS112TimeseriesGroupEdnsResponseMetaConfidenceInfoAnnotationsDataSource = "EMAIL_SECURITY"` - `const AS112TimeseriesGroupEdnsResponseMetaConfidenceInfoAnnotationsDataSourceFw AS112TimeseriesGroupEdnsResponseMetaConfidenceInfoAnnotationsDataSource = "FW"` - `const AS112TimeseriesGroupEdnsResponseMetaConfidenceInfoAnnotationsDataSourceFwPg AS112TimeseriesGroupEdnsResponseMetaConfidenceInfoAnnotationsDataSource = "FW_PG"` - `const AS112TimeseriesGroupEdnsResponseMetaConfidenceInfoAnnotationsDataSourceHTTP AS112TimeseriesGroupEdnsResponseMetaConfidenceInfoAnnotationsDataSource = "HTTP"` - `const AS112TimeseriesGroupEdnsResponseMetaConfidenceInfoAnnotationsDataSourceHTTPControl AS112TimeseriesGroupEdnsResponseMetaConfidenceInfoAnnotationsDataSource = "HTTP_CONTROL"` - `const AS112TimeseriesGroupEdnsResponseMetaConfidenceInfoAnnotationsDataSourceHTTPCrawlerReferer AS112TimeseriesGroupEdnsResponseMetaConfidenceInfoAnnotationsDataSource = "HTTP_CRAWLER_REFERER"` - `const AS112TimeseriesGroupEdnsResponseMetaConfidenceInfoAnnotationsDataSourceHTTPOrigins AS112TimeseriesGroupEdnsResponseMetaConfidenceInfoAnnotationsDataSource = "HTTP_ORIGINS"` - `const AS112TimeseriesGroupEdnsResponseMetaConfidenceInfoAnnotationsDataSourceIQI AS112TimeseriesGroupEdnsResponseMetaConfidenceInfoAnnotationsDataSource = "IQI"` - `const AS112TimeseriesGroupEdnsResponseMetaConfidenceInfoAnnotationsDataSourceLeakedCredentials AS112TimeseriesGroupEdnsResponseMetaConfidenceInfoAnnotationsDataSource = "LEAKED_CREDENTIALS"` - `const AS112TimeseriesGroupEdnsResponseMetaConfidenceInfoAnnotationsDataSourceNet AS112TimeseriesGroupEdnsResponseMetaConfidenceInfoAnnotationsDataSource = "NET"` - `const AS112TimeseriesGroupEdnsResponseMetaConfidenceInfoAnnotationsDataSourceRobotsTXT AS112TimeseriesGroupEdnsResponseMetaConfidenceInfoAnnotationsDataSource = "ROBOTS_TXT"` - `const AS112TimeseriesGroupEdnsResponseMetaConfidenceInfoAnnotationsDataSourceSpeed AS112TimeseriesGroupEdnsResponseMetaConfidenceInfoAnnotationsDataSource = "SPEED"` - `const AS112TimeseriesGroupEdnsResponseMetaConfidenceInfoAnnotationsDataSourceWorkersAI AS112TimeseriesGroupEdnsResponseMetaConfidenceInfoAnnotationsDataSource = "WORKERS_AI"` - `Description string` - `EndDate Time` - `EventType AS112TimeseriesGroupEdnsResponseMetaConfidenceInfoAnnotationsEventType` Event type for annotations. - `const AS112TimeseriesGroupEdnsResponseMetaConfidenceInfoAnnotationsEventTypeEvent AS112TimeseriesGroupEdnsResponseMetaConfidenceInfoAnnotationsEventType = "EVENT"` - `const AS112TimeseriesGroupEdnsResponseMetaConfidenceInfoAnnotationsEventTypeGeneral AS112TimeseriesGroupEdnsResponseMetaConfidenceInfoAnnotationsEventType = "GENERAL"` - `const AS112TimeseriesGroupEdnsResponseMetaConfidenceInfoAnnotationsEventTypeOutage AS112TimeseriesGroupEdnsResponseMetaConfidenceInfoAnnotationsEventType = "OUTAGE"` - `const AS112TimeseriesGroupEdnsResponseMetaConfidenceInfoAnnotationsEventTypePartialProjection AS112TimeseriesGroupEdnsResponseMetaConfidenceInfoAnnotationsEventType = "PARTIAL_PROJECTION"` - `const AS112TimeseriesGroupEdnsResponseMetaConfidenceInfoAnnotationsEventTypePipeline AS112TimeseriesGroupEdnsResponseMetaConfidenceInfoAnnotationsEventType = "PIPELINE"` - `const AS112TimeseriesGroupEdnsResponseMetaConfidenceInfoAnnotationsEventTypeTrafficAnomaly AS112TimeseriesGroupEdnsResponseMetaConfidenceInfoAnnotationsEventType = "TRAFFIC_ANOMALY"` - `IsInstantaneous bool` Whether event is a single point in time or a time range. - `LinkedURL string` - `StartDate Time` - `Tags []string` - `Level int64` Provides an indication of how much confidence Cloudflare has in the data. - `DateRange []AS112TimeseriesGroupEdnsResponseMetaDateRange` - `EndTime Time` Adjusted end of date range. - `StartTime Time` Adjusted start of date range. - `LastUpdated Time` Timestamp of the last dataset update. - `Normalization AS112TimeseriesGroupEdnsResponseMetaNormalization` Normalization method applied to the results. Refer to [Normalization methods](https://edgetunnel-b2h.pages.dev/radar/concepts/normalization/). - `const AS112TimeseriesGroupEdnsResponseMetaNormalizationPercentage AS112TimeseriesGroupEdnsResponseMetaNormalization = "PERCENTAGE"` - `const AS112TimeseriesGroupEdnsResponseMetaNormalizationMin0Max AS112TimeseriesGroupEdnsResponseMetaNormalization = "MIN0_MAX"` - `const AS112TimeseriesGroupEdnsResponseMetaNormalizationMinMax AS112TimeseriesGroupEdnsResponseMetaNormalization = "MIN_MAX"` - `const AS112TimeseriesGroupEdnsResponseMetaNormalizationRawValues AS112TimeseriesGroupEdnsResponseMetaNormalization = "RAW_VALUES"` - `const AS112TimeseriesGroupEdnsResponseMetaNormalizationPercentageChange AS112TimeseriesGroupEdnsResponseMetaNormalization = "PERCENTAGE_CHANGE"` - `const AS112TimeseriesGroupEdnsResponseMetaNormalizationRollingAverage AS112TimeseriesGroupEdnsResponseMetaNormalization = "ROLLING_AVERAGE"` - `const AS112TimeseriesGroupEdnsResponseMetaNormalizationOverlappedPercentage AS112TimeseriesGroupEdnsResponseMetaNormalization = "OVERLAPPED_PERCENTAGE"` - `const AS112TimeseriesGroupEdnsResponseMetaNormalizationRatio AS112TimeseriesGroupEdnsResponseMetaNormalization = "RATIO"` - `Units []AS112TimeseriesGroupEdnsResponseMetaUnit` Measurement units for the results. - `Name string` - `Value string` - `Serie0 AS112TimeseriesGroupEdnsResponseSerie0` - `NotSupported []string` - `Supported []string` ### Example ```go 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.TimeseriesGroups.Edns(context.TODO(), radar.AS112TimeseriesGroupEdnsParams{ }) if err != nil { panic(err.Error()) } fmt.Printf("%+v\n", response.Meta) } ``` #### Response ```json { "result": { "meta": { "aggInterval": "FIFTEEN_MINUTES", "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" } ] }, "serie_0": { "NOT_SUPPORTED": [ "10" ], "SUPPORTED": [ "10" ] } }, "success": true } ``` ## Get AS112 DNS queries by IP version time series `client.Radar.AS112.TimeseriesGroups.IPVersion(ctx, query) (*AS112TimeseriesGroupIPVersionResponse, error)` **get** `/radar/as112/timeseries_groups/ip_version` Retrieves the distribution of AS112 DNS queries by IP version over time. ### Parameters - `query AS112TimeseriesGroupIPVersionParams` - `AggInterval param.Field[AS112TimeseriesGroupIPVersionParamsAggInterval]` Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). Refer to [Aggregation intervals](https://edgetunnel-b2h.pages.dev/radar/concepts/aggregation-intervals/). When omitted, the interval is auto-selected from the requested date range; finer intervals are only available for shorter ranges. If the requested interval is too granular for the date range, the request is rejected. - `const AS112TimeseriesGroupIPVersionParamsAggInterval15m AS112TimeseriesGroupIPVersionParamsAggInterval = "15m"` - `const AS112TimeseriesGroupIPVersionParamsAggInterval1h AS112TimeseriesGroupIPVersionParamsAggInterval = "1h"` - `const AS112TimeseriesGroupIPVersionParamsAggInterval1d AS112TimeseriesGroupIPVersionParamsAggInterval = "1d"` - `const AS112TimeseriesGroupIPVersionParamsAggInterval1w AS112TimeseriesGroupIPVersionParamsAggInterval = "1w"` - `Continent param.Field[[]string]` 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]` End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected. - `DateRange param.Field[[]string]` Filters results by relative date range ending at the current time, with each value producing a separate series. Use `d` for days (up to `364d`) or `w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters). - `DateStart param.Field[[]Time]` Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected. - `Format param.Field[AS112TimeseriesGroupIPVersionParamsFormat]` Format in which results will be returned. - `const AS112TimeseriesGroupIPVersionParamsFormatJson AS112TimeseriesGroupIPVersionParamsFormat = "JSON"` - `const AS112TimeseriesGroupIPVersionParamsFormatCsv AS112TimeseriesGroupIPVersionParamsFormat = "CSV"` - `Location param.Field[[]string]` 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]` Array of names used to label the series in the response. - `Protocol param.Field[[]AS112TimeseriesGroupIPVersionParamsProtocol]` Filters results by DNS transport protocol. - `const AS112TimeseriesGroupIPVersionParamsProtocolUdp AS112TimeseriesGroupIPVersionParamsProtocol = "UDP"` - `const AS112TimeseriesGroupIPVersionParamsProtocolTCP AS112TimeseriesGroupIPVersionParamsProtocol = "TCP"` - `const AS112TimeseriesGroupIPVersionParamsProtocolHTTPS AS112TimeseriesGroupIPVersionParamsProtocol = "HTTPS"` - `const AS112TimeseriesGroupIPVersionParamsProtocolTLS AS112TimeseriesGroupIPVersionParamsProtocol = "TLS"` - `QueryType param.Field[[]AS112TimeseriesGroupIPVersionParamsQueryType]` Filters results by DNS query type. - `const AS112TimeseriesGroupIPVersionParamsQueryTypeA AS112TimeseriesGroupIPVersionParamsQueryType = "A"` - `const AS112TimeseriesGroupIPVersionParamsQueryTypeAAAA AS112TimeseriesGroupIPVersionParamsQueryType = "AAAA"` - `const AS112TimeseriesGroupIPVersionParamsQueryTypeA6 AS112TimeseriesGroupIPVersionParamsQueryType = "A6"` - `const AS112TimeseriesGroupIPVersionParamsQueryTypeAfsdb AS112TimeseriesGroupIPVersionParamsQueryType = "AFSDB"` - `const AS112TimeseriesGroupIPVersionParamsQueryTypeAny AS112TimeseriesGroupIPVersionParamsQueryType = "ANY"` - `const AS112TimeseriesGroupIPVersionParamsQueryTypeApl AS112TimeseriesGroupIPVersionParamsQueryType = "APL"` - `const AS112TimeseriesGroupIPVersionParamsQueryTypeAtma AS112TimeseriesGroupIPVersionParamsQueryType = "ATMA"` - `const AS112TimeseriesGroupIPVersionParamsQueryTypeAXFR AS112TimeseriesGroupIPVersionParamsQueryType = "AXFR"` - `const AS112TimeseriesGroupIPVersionParamsQueryTypeCAA AS112TimeseriesGroupIPVersionParamsQueryType = "CAA"` - `const AS112TimeseriesGroupIPVersionParamsQueryTypeCdnskey AS112TimeseriesGroupIPVersionParamsQueryType = "CDNSKEY"` - `const AS112TimeseriesGroupIPVersionParamsQueryTypeCds AS112TimeseriesGroupIPVersionParamsQueryType = "CDS"` - `const AS112TimeseriesGroupIPVersionParamsQueryTypeCERT AS112TimeseriesGroupIPVersionParamsQueryType = "CERT"` - `const AS112TimeseriesGroupIPVersionParamsQueryTypeCNAME AS112TimeseriesGroupIPVersionParamsQueryType = "CNAME"` - `const AS112TimeseriesGroupIPVersionParamsQueryTypeCsync AS112TimeseriesGroupIPVersionParamsQueryType = "CSYNC"` - `const AS112TimeseriesGroupIPVersionParamsQueryTypeDhcid AS112TimeseriesGroupIPVersionParamsQueryType = "DHCID"` - `const AS112TimeseriesGroupIPVersionParamsQueryTypeDlv AS112TimeseriesGroupIPVersionParamsQueryType = "DLV"` - `const AS112TimeseriesGroupIPVersionParamsQueryTypeDname AS112TimeseriesGroupIPVersionParamsQueryType = "DNAME"` - `const AS112TimeseriesGroupIPVersionParamsQueryTypeDNSKEY AS112TimeseriesGroupIPVersionParamsQueryType = "DNSKEY"` - `const AS112TimeseriesGroupIPVersionParamsQueryTypeDoa AS112TimeseriesGroupIPVersionParamsQueryType = "DOA"` - `const AS112TimeseriesGroupIPVersionParamsQueryTypeDS AS112TimeseriesGroupIPVersionParamsQueryType = "DS"` - `const AS112TimeseriesGroupIPVersionParamsQueryTypeEid AS112TimeseriesGroupIPVersionParamsQueryType = "EID"` - `const AS112TimeseriesGroupIPVersionParamsQueryTypeEui48 AS112TimeseriesGroupIPVersionParamsQueryType = "EUI48"` - `const AS112TimeseriesGroupIPVersionParamsQueryTypeEui64 AS112TimeseriesGroupIPVersionParamsQueryType = "EUI64"` - `const AS112TimeseriesGroupIPVersionParamsQueryTypeGpos AS112TimeseriesGroupIPVersionParamsQueryType = "GPOS"` - `const AS112TimeseriesGroupIPVersionParamsQueryTypeGid AS112TimeseriesGroupIPVersionParamsQueryType = "GID"` - `const AS112TimeseriesGroupIPVersionParamsQueryTypeHinfo AS112TimeseriesGroupIPVersionParamsQueryType = "HINFO"` - `const AS112TimeseriesGroupIPVersionParamsQueryTypeHip AS112TimeseriesGroupIPVersionParamsQueryType = "HIP"` - `const AS112TimeseriesGroupIPVersionParamsQueryTypeHTTPS AS112TimeseriesGroupIPVersionParamsQueryType = "HTTPS"` - `const AS112TimeseriesGroupIPVersionParamsQueryTypeIpseckey AS112TimeseriesGroupIPVersionParamsQueryType = "IPSECKEY"` - `const AS112TimeseriesGroupIPVersionParamsQueryTypeIsdn AS112TimeseriesGroupIPVersionParamsQueryType = "ISDN"` - `const AS112TimeseriesGroupIPVersionParamsQueryTypeIxfr AS112TimeseriesGroupIPVersionParamsQueryType = "IXFR"` - `const AS112TimeseriesGroupIPVersionParamsQueryTypeKey AS112TimeseriesGroupIPVersionParamsQueryType = "KEY"` - `const AS112TimeseriesGroupIPVersionParamsQueryTypeKx AS112TimeseriesGroupIPVersionParamsQueryType = "KX"` - `const AS112TimeseriesGroupIPVersionParamsQueryTypeL32 AS112TimeseriesGroupIPVersionParamsQueryType = "L32"` - `const AS112TimeseriesGroupIPVersionParamsQueryTypeL64 AS112TimeseriesGroupIPVersionParamsQueryType = "L64"` - `const AS112TimeseriesGroupIPVersionParamsQueryTypeLOC AS112TimeseriesGroupIPVersionParamsQueryType = "LOC"` - `const AS112TimeseriesGroupIPVersionParamsQueryTypeLp AS112TimeseriesGroupIPVersionParamsQueryType = "LP"` - `const AS112TimeseriesGroupIPVersionParamsQueryTypeMaila AS112TimeseriesGroupIPVersionParamsQueryType = "MAILA"` - `const AS112TimeseriesGroupIPVersionParamsQueryTypeMailb AS112TimeseriesGroupIPVersionParamsQueryType = "MAILB"` - `const AS112TimeseriesGroupIPVersionParamsQueryTypeMB AS112TimeseriesGroupIPVersionParamsQueryType = "MB"` - `const AS112TimeseriesGroupIPVersionParamsQueryTypeMd AS112TimeseriesGroupIPVersionParamsQueryType = "MD"` - `const AS112TimeseriesGroupIPVersionParamsQueryTypeMf AS112TimeseriesGroupIPVersionParamsQueryType = "MF"` - `const AS112TimeseriesGroupIPVersionParamsQueryTypeMg AS112TimeseriesGroupIPVersionParamsQueryType = "MG"` - `const AS112TimeseriesGroupIPVersionParamsQueryTypeMinfo AS112TimeseriesGroupIPVersionParamsQueryType = "MINFO"` - `const AS112TimeseriesGroupIPVersionParamsQueryTypeMr AS112TimeseriesGroupIPVersionParamsQueryType = "MR"` - `const AS112TimeseriesGroupIPVersionParamsQueryTypeMX AS112TimeseriesGroupIPVersionParamsQueryType = "MX"` - `const AS112TimeseriesGroupIPVersionParamsQueryTypeNAPTR AS112TimeseriesGroupIPVersionParamsQueryType = "NAPTR"` - `const AS112TimeseriesGroupIPVersionParamsQueryTypeNb AS112TimeseriesGroupIPVersionParamsQueryType = "NB"` - `const AS112TimeseriesGroupIPVersionParamsQueryTypeNbstat AS112TimeseriesGroupIPVersionParamsQueryType = "NBSTAT"` - `const AS112TimeseriesGroupIPVersionParamsQueryTypeNid AS112TimeseriesGroupIPVersionParamsQueryType = "NID"` - `const AS112TimeseriesGroupIPVersionParamsQueryTypeNimloc AS112TimeseriesGroupIPVersionParamsQueryType = "NIMLOC"` - `const AS112TimeseriesGroupIPVersionParamsQueryTypeNinfo AS112TimeseriesGroupIPVersionParamsQueryType = "NINFO"` - `const AS112TimeseriesGroupIPVersionParamsQueryTypeNS AS112TimeseriesGroupIPVersionParamsQueryType = "NS"` - `const AS112TimeseriesGroupIPVersionParamsQueryTypeNsap AS112TimeseriesGroupIPVersionParamsQueryType = "NSAP"` - `const AS112TimeseriesGroupIPVersionParamsQueryTypeNsec AS112TimeseriesGroupIPVersionParamsQueryType = "NSEC"` - `const AS112TimeseriesGroupIPVersionParamsQueryTypeNsec3 AS112TimeseriesGroupIPVersionParamsQueryType = "NSEC3"` - `const AS112TimeseriesGroupIPVersionParamsQueryTypeNsec3Param AS112TimeseriesGroupIPVersionParamsQueryType = "NSEC3PARAM"` - `const AS112TimeseriesGroupIPVersionParamsQueryTypeNull AS112TimeseriesGroupIPVersionParamsQueryType = "NULL"` - `const AS112TimeseriesGroupIPVersionParamsQueryTypeNxt AS112TimeseriesGroupIPVersionParamsQueryType = "NXT"` - `const AS112TimeseriesGroupIPVersionParamsQueryTypeOpenpgpkey AS112TimeseriesGroupIPVersionParamsQueryType = "OPENPGPKEY"` - `const AS112TimeseriesGroupIPVersionParamsQueryTypeOpt AS112TimeseriesGroupIPVersionParamsQueryType = "OPT"` - `const AS112TimeseriesGroupIPVersionParamsQueryTypePTR AS112TimeseriesGroupIPVersionParamsQueryType = "PTR"` - `const AS112TimeseriesGroupIPVersionParamsQueryTypePx AS112TimeseriesGroupIPVersionParamsQueryType = "PX"` - `const AS112TimeseriesGroupIPVersionParamsQueryTypeRkey AS112TimeseriesGroupIPVersionParamsQueryType = "RKEY"` - `const AS112TimeseriesGroupIPVersionParamsQueryTypeRp AS112TimeseriesGroupIPVersionParamsQueryType = "RP"` - `const AS112TimeseriesGroupIPVersionParamsQueryTypeRrsig AS112TimeseriesGroupIPVersionParamsQueryType = "RRSIG"` - `const AS112TimeseriesGroupIPVersionParamsQueryTypeRt AS112TimeseriesGroupIPVersionParamsQueryType = "RT"` - `const AS112TimeseriesGroupIPVersionParamsQueryTypeSig AS112TimeseriesGroupIPVersionParamsQueryType = "SIG"` - `const AS112TimeseriesGroupIPVersionParamsQueryTypeSink AS112TimeseriesGroupIPVersionParamsQueryType = "SINK"` - `const AS112TimeseriesGroupIPVersionParamsQueryTypeSMIMEA AS112TimeseriesGroupIPVersionParamsQueryType = "SMIMEA"` - `const AS112TimeseriesGroupIPVersionParamsQueryTypeSOA AS112TimeseriesGroupIPVersionParamsQueryType = "SOA"` - `const AS112TimeseriesGroupIPVersionParamsQueryTypeSPF AS112TimeseriesGroupIPVersionParamsQueryType = "SPF"` - `const AS112TimeseriesGroupIPVersionParamsQueryTypeSRV AS112TimeseriesGroupIPVersionParamsQueryType = "SRV"` - `const AS112TimeseriesGroupIPVersionParamsQueryTypeSSHFP AS112TimeseriesGroupIPVersionParamsQueryType = "SSHFP"` - `const AS112TimeseriesGroupIPVersionParamsQueryTypeSVCB AS112TimeseriesGroupIPVersionParamsQueryType = "SVCB"` - `const AS112TimeseriesGroupIPVersionParamsQueryTypeTa AS112TimeseriesGroupIPVersionParamsQueryType = "TA"` - `const AS112TimeseriesGroupIPVersionParamsQueryTypeTalink AS112TimeseriesGroupIPVersionParamsQueryType = "TALINK"` - `const AS112TimeseriesGroupIPVersionParamsQueryTypeTkey AS112TimeseriesGroupIPVersionParamsQueryType = "TKEY"` - `const AS112TimeseriesGroupIPVersionParamsQueryTypeTLSA AS112TimeseriesGroupIPVersionParamsQueryType = "TLSA"` - `const AS112TimeseriesGroupIPVersionParamsQueryTypeTSIG AS112TimeseriesGroupIPVersionParamsQueryType = "TSIG"` - `const AS112TimeseriesGroupIPVersionParamsQueryTypeTXT AS112TimeseriesGroupIPVersionParamsQueryType = "TXT"` - `const AS112TimeseriesGroupIPVersionParamsQueryTypeUinfo AS112TimeseriesGroupIPVersionParamsQueryType = "UINFO"` - `const AS112TimeseriesGroupIPVersionParamsQueryTypeUID AS112TimeseriesGroupIPVersionParamsQueryType = "UID"` - `const AS112TimeseriesGroupIPVersionParamsQueryTypeUnspec AS112TimeseriesGroupIPVersionParamsQueryType = "UNSPEC"` - `const AS112TimeseriesGroupIPVersionParamsQueryTypeURI AS112TimeseriesGroupIPVersionParamsQueryType = "URI"` - `const AS112TimeseriesGroupIPVersionParamsQueryTypeWks AS112TimeseriesGroupIPVersionParamsQueryType = "WKS"` - `const AS112TimeseriesGroupIPVersionParamsQueryTypeX25 AS112TimeseriesGroupIPVersionParamsQueryType = "X25"` - `const AS112TimeseriesGroupIPVersionParamsQueryTypeZonemd AS112TimeseriesGroupIPVersionParamsQueryType = "ZONEMD"` - `ResponseCode param.Field[[]AS112TimeseriesGroupIPVersionParamsResponseCode]` Filters results by DNS response code. - `const AS112TimeseriesGroupIPVersionParamsResponseCodeNoerror AS112TimeseriesGroupIPVersionParamsResponseCode = "NOERROR"` - `const AS112TimeseriesGroupIPVersionParamsResponseCodeFormerr AS112TimeseriesGroupIPVersionParamsResponseCode = "FORMERR"` - `const AS112TimeseriesGroupIPVersionParamsResponseCodeServfail AS112TimeseriesGroupIPVersionParamsResponseCode = "SERVFAIL"` - `const AS112TimeseriesGroupIPVersionParamsResponseCodeNxdomain AS112TimeseriesGroupIPVersionParamsResponseCode = "NXDOMAIN"` - `const AS112TimeseriesGroupIPVersionParamsResponseCodeNotimp AS112TimeseriesGroupIPVersionParamsResponseCode = "NOTIMP"` - `const AS112TimeseriesGroupIPVersionParamsResponseCodeRefused AS112TimeseriesGroupIPVersionParamsResponseCode = "REFUSED"` - `const AS112TimeseriesGroupIPVersionParamsResponseCodeYxdomain AS112TimeseriesGroupIPVersionParamsResponseCode = "YXDOMAIN"` - `const AS112TimeseriesGroupIPVersionParamsResponseCodeYxrrset AS112TimeseriesGroupIPVersionParamsResponseCode = "YXRRSET"` - `const AS112TimeseriesGroupIPVersionParamsResponseCodeNxrrset AS112TimeseriesGroupIPVersionParamsResponseCode = "NXRRSET"` - `const AS112TimeseriesGroupIPVersionParamsResponseCodeNotauth AS112TimeseriesGroupIPVersionParamsResponseCode = "NOTAUTH"` - `const AS112TimeseriesGroupIPVersionParamsResponseCodeNotzone AS112TimeseriesGroupIPVersionParamsResponseCode = "NOTZONE"` - `const AS112TimeseriesGroupIPVersionParamsResponseCodeBadsig AS112TimeseriesGroupIPVersionParamsResponseCode = "BADSIG"` - `const AS112TimeseriesGroupIPVersionParamsResponseCodeBadkey AS112TimeseriesGroupIPVersionParamsResponseCode = "BADKEY"` - `const AS112TimeseriesGroupIPVersionParamsResponseCodeBadtime AS112TimeseriesGroupIPVersionParamsResponseCode = "BADTIME"` - `const AS112TimeseriesGroupIPVersionParamsResponseCodeBadmode AS112TimeseriesGroupIPVersionParamsResponseCode = "BADMODE"` - `const AS112TimeseriesGroupIPVersionParamsResponseCodeBadname AS112TimeseriesGroupIPVersionParamsResponseCode = "BADNAME"` - `const AS112TimeseriesGroupIPVersionParamsResponseCodeBadalg AS112TimeseriesGroupIPVersionParamsResponseCode = "BADALG"` - `const AS112TimeseriesGroupIPVersionParamsResponseCodeBadtrunc AS112TimeseriesGroupIPVersionParamsResponseCode = "BADTRUNC"` - `const AS112TimeseriesGroupIPVersionParamsResponseCodeBadcookie AS112TimeseriesGroupIPVersionParamsResponseCode = "BADCOOKIE"` ### Returns - `type AS112TimeseriesGroupIPVersionResponse struct{…}` - `Meta AS112TimeseriesGroupIPVersionResponseMeta` Metadata for the results. - `AggInterval AS112TimeseriesGroupIPVersionResponseMetaAggInterval` Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). Refer to [Aggregation intervals](https://edgetunnel-b2h.pages.dev/radar/concepts/aggregation-intervals/). - `const AS112TimeseriesGroupIPVersionResponseMetaAggIntervalFifteenMinutes AS112TimeseriesGroupIPVersionResponseMetaAggInterval = "FIFTEEN_MINUTES"` - `const AS112TimeseriesGroupIPVersionResponseMetaAggIntervalOneHour AS112TimeseriesGroupIPVersionResponseMetaAggInterval = "ONE_HOUR"` - `const AS112TimeseriesGroupIPVersionResponseMetaAggIntervalOneDay AS112TimeseriesGroupIPVersionResponseMetaAggInterval = "ONE_DAY"` - `const AS112TimeseriesGroupIPVersionResponseMetaAggIntervalOneWeek AS112TimeseriesGroupIPVersionResponseMetaAggInterval = "ONE_WEEK"` - `const AS112TimeseriesGroupIPVersionResponseMetaAggIntervalOneMonth AS112TimeseriesGroupIPVersionResponseMetaAggInterval = "ONE_MONTH"` - `ConfidenceInfo AS112TimeseriesGroupIPVersionResponseMetaConfidenceInfo` - `Annotations []AS112TimeseriesGroupIPVersionResponseMetaConfidenceInfoAnnotation` - `DataSource AS112TimeseriesGroupIPVersionResponseMetaConfidenceInfoAnnotationsDataSource` Data source for annotations. - `const AS112TimeseriesGroupIPVersionResponseMetaConfidenceInfoAnnotationsDataSourceAll AS112TimeseriesGroupIPVersionResponseMetaConfidenceInfoAnnotationsDataSource = "ALL"` - `const AS112TimeseriesGroupIPVersionResponseMetaConfidenceInfoAnnotationsDataSourceAIBots AS112TimeseriesGroupIPVersionResponseMetaConfidenceInfoAnnotationsDataSource = "AI_BOTS"` - `const AS112TimeseriesGroupIPVersionResponseMetaConfidenceInfoAnnotationsDataSourceAIGateway AS112TimeseriesGroupIPVersionResponseMetaConfidenceInfoAnnotationsDataSource = "AI_GATEWAY"` - `const AS112TimeseriesGroupIPVersionResponseMetaConfidenceInfoAnnotationsDataSourceBGP AS112TimeseriesGroupIPVersionResponseMetaConfidenceInfoAnnotationsDataSource = "BGP"` - `const AS112TimeseriesGroupIPVersionResponseMetaConfidenceInfoAnnotationsDataSourceBots AS112TimeseriesGroupIPVersionResponseMetaConfidenceInfoAnnotationsDataSource = "BOTS"` - `const AS112TimeseriesGroupIPVersionResponseMetaConfidenceInfoAnnotationsDataSourceConnectionAnomaly AS112TimeseriesGroupIPVersionResponseMetaConfidenceInfoAnnotationsDataSource = "CONNECTION_ANOMALY"` - `const AS112TimeseriesGroupIPVersionResponseMetaConfidenceInfoAnnotationsDataSourceCT AS112TimeseriesGroupIPVersionResponseMetaConfidenceInfoAnnotationsDataSource = "CT"` - `const AS112TimeseriesGroupIPVersionResponseMetaConfidenceInfoAnnotationsDataSourceDNS AS112TimeseriesGroupIPVersionResponseMetaConfidenceInfoAnnotationsDataSource = "DNS"` - `const AS112TimeseriesGroupIPVersionResponseMetaConfidenceInfoAnnotationsDataSourceDNSMagnitude AS112TimeseriesGroupIPVersionResponseMetaConfidenceInfoAnnotationsDataSource = "DNS_MAGNITUDE"` - `const AS112TimeseriesGroupIPVersionResponseMetaConfidenceInfoAnnotationsDataSourceDNSAS112 AS112TimeseriesGroupIPVersionResponseMetaConfidenceInfoAnnotationsDataSource = "DNS_AS112"` - `const AS112TimeseriesGroupIPVersionResponseMetaConfidenceInfoAnnotationsDataSourceDos AS112TimeseriesGroupIPVersionResponseMetaConfidenceInfoAnnotationsDataSource = "DOS"` - `const AS112TimeseriesGroupIPVersionResponseMetaConfidenceInfoAnnotationsDataSourceEmailRouting AS112TimeseriesGroupIPVersionResponseMetaConfidenceInfoAnnotationsDataSource = "EMAIL_ROUTING"` - `const AS112TimeseriesGroupIPVersionResponseMetaConfidenceInfoAnnotationsDataSourceEmailSecurity AS112TimeseriesGroupIPVersionResponseMetaConfidenceInfoAnnotationsDataSource = "EMAIL_SECURITY"` - `const AS112TimeseriesGroupIPVersionResponseMetaConfidenceInfoAnnotationsDataSourceFw AS112TimeseriesGroupIPVersionResponseMetaConfidenceInfoAnnotationsDataSource = "FW"` - `const AS112TimeseriesGroupIPVersionResponseMetaConfidenceInfoAnnotationsDataSourceFwPg AS112TimeseriesGroupIPVersionResponseMetaConfidenceInfoAnnotationsDataSource = "FW_PG"` - `const AS112TimeseriesGroupIPVersionResponseMetaConfidenceInfoAnnotationsDataSourceHTTP AS112TimeseriesGroupIPVersionResponseMetaConfidenceInfoAnnotationsDataSource = "HTTP"` - `const AS112TimeseriesGroupIPVersionResponseMetaConfidenceInfoAnnotationsDataSourceHTTPControl AS112TimeseriesGroupIPVersionResponseMetaConfidenceInfoAnnotationsDataSource = "HTTP_CONTROL"` - `const AS112TimeseriesGroupIPVersionResponseMetaConfidenceInfoAnnotationsDataSourceHTTPCrawlerReferer AS112TimeseriesGroupIPVersionResponseMetaConfidenceInfoAnnotationsDataSource = "HTTP_CRAWLER_REFERER"` - `const AS112TimeseriesGroupIPVersionResponseMetaConfidenceInfoAnnotationsDataSourceHTTPOrigins AS112TimeseriesGroupIPVersionResponseMetaConfidenceInfoAnnotationsDataSource = "HTTP_ORIGINS"` - `const AS112TimeseriesGroupIPVersionResponseMetaConfidenceInfoAnnotationsDataSourceIQI AS112TimeseriesGroupIPVersionResponseMetaConfidenceInfoAnnotationsDataSource = "IQI"` - `const AS112TimeseriesGroupIPVersionResponseMetaConfidenceInfoAnnotationsDataSourceLeakedCredentials AS112TimeseriesGroupIPVersionResponseMetaConfidenceInfoAnnotationsDataSource = "LEAKED_CREDENTIALS"` - `const AS112TimeseriesGroupIPVersionResponseMetaConfidenceInfoAnnotationsDataSourceNet AS112TimeseriesGroupIPVersionResponseMetaConfidenceInfoAnnotationsDataSource = "NET"` - `const AS112TimeseriesGroupIPVersionResponseMetaConfidenceInfoAnnotationsDataSourceRobotsTXT AS112TimeseriesGroupIPVersionResponseMetaConfidenceInfoAnnotationsDataSource = "ROBOTS_TXT"` - `const AS112TimeseriesGroupIPVersionResponseMetaConfidenceInfoAnnotationsDataSourceSpeed AS112TimeseriesGroupIPVersionResponseMetaConfidenceInfoAnnotationsDataSource = "SPEED"` - `const AS112TimeseriesGroupIPVersionResponseMetaConfidenceInfoAnnotationsDataSourceWorkersAI AS112TimeseriesGroupIPVersionResponseMetaConfidenceInfoAnnotationsDataSource = "WORKERS_AI"` - `Description string` - `EndDate Time` - `EventType AS112TimeseriesGroupIPVersionResponseMetaConfidenceInfoAnnotationsEventType` Event type for annotations. - `const AS112TimeseriesGroupIPVersionResponseMetaConfidenceInfoAnnotationsEventTypeEvent AS112TimeseriesGroupIPVersionResponseMetaConfidenceInfoAnnotationsEventType = "EVENT"` - `const AS112TimeseriesGroupIPVersionResponseMetaConfidenceInfoAnnotationsEventTypeGeneral AS112TimeseriesGroupIPVersionResponseMetaConfidenceInfoAnnotationsEventType = "GENERAL"` - `const AS112TimeseriesGroupIPVersionResponseMetaConfidenceInfoAnnotationsEventTypeOutage AS112TimeseriesGroupIPVersionResponseMetaConfidenceInfoAnnotationsEventType = "OUTAGE"` - `const AS112TimeseriesGroupIPVersionResponseMetaConfidenceInfoAnnotationsEventTypePartialProjection AS112TimeseriesGroupIPVersionResponseMetaConfidenceInfoAnnotationsEventType = "PARTIAL_PROJECTION"` - `const AS112TimeseriesGroupIPVersionResponseMetaConfidenceInfoAnnotationsEventTypePipeline AS112TimeseriesGroupIPVersionResponseMetaConfidenceInfoAnnotationsEventType = "PIPELINE"` - `const AS112TimeseriesGroupIPVersionResponseMetaConfidenceInfoAnnotationsEventTypeTrafficAnomaly AS112TimeseriesGroupIPVersionResponseMetaConfidenceInfoAnnotationsEventType = "TRAFFIC_ANOMALY"` - `IsInstantaneous bool` Whether event is a single point in time or a time range. - `LinkedURL string` - `StartDate Time` - `Tags []string` - `Level int64` Provides an indication of how much confidence Cloudflare has in the data. - `DateRange []AS112TimeseriesGroupIPVersionResponseMetaDateRange` - `EndTime Time` Adjusted end of date range. - `StartTime Time` Adjusted start of date range. - `LastUpdated Time` Timestamp of the last dataset update. - `Normalization AS112TimeseriesGroupIPVersionResponseMetaNormalization` Normalization method applied to the results. Refer to [Normalization methods](https://edgetunnel-b2h.pages.dev/radar/concepts/normalization/). - `const AS112TimeseriesGroupIPVersionResponseMetaNormalizationPercentage AS112TimeseriesGroupIPVersionResponseMetaNormalization = "PERCENTAGE"` - `const AS112TimeseriesGroupIPVersionResponseMetaNormalizationMin0Max AS112TimeseriesGroupIPVersionResponseMetaNormalization = "MIN0_MAX"` - `const AS112TimeseriesGroupIPVersionResponseMetaNormalizationMinMax AS112TimeseriesGroupIPVersionResponseMetaNormalization = "MIN_MAX"` - `const AS112TimeseriesGroupIPVersionResponseMetaNormalizationRawValues AS112TimeseriesGroupIPVersionResponseMetaNormalization = "RAW_VALUES"` - `const AS112TimeseriesGroupIPVersionResponseMetaNormalizationPercentageChange AS112TimeseriesGroupIPVersionResponseMetaNormalization = "PERCENTAGE_CHANGE"` - `const AS112TimeseriesGroupIPVersionResponseMetaNormalizationRollingAverage AS112TimeseriesGroupIPVersionResponseMetaNormalization = "ROLLING_AVERAGE"` - `const AS112TimeseriesGroupIPVersionResponseMetaNormalizationOverlappedPercentage AS112TimeseriesGroupIPVersionResponseMetaNormalization = "OVERLAPPED_PERCENTAGE"` - `const AS112TimeseriesGroupIPVersionResponseMetaNormalizationRatio AS112TimeseriesGroupIPVersionResponseMetaNormalization = "RATIO"` - `Units []AS112TimeseriesGroupIPVersionResponseMetaUnit` Measurement units for the results. - `Name string` - `Value string` - `Serie0 AS112TimeseriesGroupIPVersionResponseSerie0` - `IPv4 []string` - `IPv6 []string` ### Example ```go 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.TimeseriesGroups.IPVersion(context.TODO(), radar.AS112TimeseriesGroupIPVersionParams{ }) if err != nil { panic(err.Error()) } fmt.Printf("%+v\n", response.Meta) } ``` #### Response ```json { "result": { "meta": { "aggInterval": "FIFTEEN_MINUTES", "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" } ] }, "serie_0": { "IPv4": [ "10" ], "IPv6": [ "10" ] } }, "success": true } ``` # Top ## Get top locations by AS112 DNS queries `client.Radar.AS112.Top.Locations(ctx, query) (*AS112TopLocationsResponse, error)` **get** `/radar/as112/top/locations` Retrieves the top locations by AS112 DNS queries. ### Parameters - `query AS112TopLocationsParams` - `Continent param.Field[[]string]` 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]` End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected. - `DateRange param.Field[[]string]` Filters results by relative date range ending at the current time, with each value producing a separate series. Use `d` for days (up to `364d`) or `w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters). - `DateStart param.Field[[]Time]` Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected. - `Format param.Field[AS112TopLocationsParamsFormat]` Format in which results will be returned. - `const AS112TopLocationsParamsFormatJson AS112TopLocationsParamsFormat = "JSON"` - `const AS112TopLocationsParamsFormatCsv AS112TopLocationsParamsFormat = "CSV"` - `Limit param.Field[int64]` Limits the number of objects returned in the response. - `Location param.Field[[]string]` 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]` Array of names used to label the series in the response. ### Returns - `type AS112TopLocationsResponse struct{…}` - `Meta AS112TopLocationsResponseMeta` Metadata for the results. - `ConfidenceInfo AS112TopLocationsResponseMetaConfidenceInfo` - `Annotations []AS112TopLocationsResponseMetaConfidenceInfoAnnotation` - `DataSource AS112TopLocationsResponseMetaConfidenceInfoAnnotationsDataSource` Data source for annotations. - `const AS112TopLocationsResponseMetaConfidenceInfoAnnotationsDataSourceAll AS112TopLocationsResponseMetaConfidenceInfoAnnotationsDataSource = "ALL"` - `const AS112TopLocationsResponseMetaConfidenceInfoAnnotationsDataSourceAIBots AS112TopLocationsResponseMetaConfidenceInfoAnnotationsDataSource = "AI_BOTS"` - `const AS112TopLocationsResponseMetaConfidenceInfoAnnotationsDataSourceAIGateway AS112TopLocationsResponseMetaConfidenceInfoAnnotationsDataSource = "AI_GATEWAY"` - `const AS112TopLocationsResponseMetaConfidenceInfoAnnotationsDataSourceBGP AS112TopLocationsResponseMetaConfidenceInfoAnnotationsDataSource = "BGP"` - `const AS112TopLocationsResponseMetaConfidenceInfoAnnotationsDataSourceBots AS112TopLocationsResponseMetaConfidenceInfoAnnotationsDataSource = "BOTS"` - `const AS112TopLocationsResponseMetaConfidenceInfoAnnotationsDataSourceConnectionAnomaly AS112TopLocationsResponseMetaConfidenceInfoAnnotationsDataSource = "CONNECTION_ANOMALY"` - `const AS112TopLocationsResponseMetaConfidenceInfoAnnotationsDataSourceCT AS112TopLocationsResponseMetaConfidenceInfoAnnotationsDataSource = "CT"` - `const AS112TopLocationsResponseMetaConfidenceInfoAnnotationsDataSourceDNS AS112TopLocationsResponseMetaConfidenceInfoAnnotationsDataSource = "DNS"` - `const AS112TopLocationsResponseMetaConfidenceInfoAnnotationsDataSourceDNSMagnitude AS112TopLocationsResponseMetaConfidenceInfoAnnotationsDataSource = "DNS_MAGNITUDE"` - `const AS112TopLocationsResponseMetaConfidenceInfoAnnotationsDataSourceDNSAS112 AS112TopLocationsResponseMetaConfidenceInfoAnnotationsDataSource = "DNS_AS112"` - `const AS112TopLocationsResponseMetaConfidenceInfoAnnotationsDataSourceDos AS112TopLocationsResponseMetaConfidenceInfoAnnotationsDataSource = "DOS"` - `const AS112TopLocationsResponseMetaConfidenceInfoAnnotationsDataSourceEmailRouting AS112TopLocationsResponseMetaConfidenceInfoAnnotationsDataSource = "EMAIL_ROUTING"` - `const AS112TopLocationsResponseMetaConfidenceInfoAnnotationsDataSourceEmailSecurity AS112TopLocationsResponseMetaConfidenceInfoAnnotationsDataSource = "EMAIL_SECURITY"` - `const AS112TopLocationsResponseMetaConfidenceInfoAnnotationsDataSourceFw AS112TopLocationsResponseMetaConfidenceInfoAnnotationsDataSource = "FW"` - `const AS112TopLocationsResponseMetaConfidenceInfoAnnotationsDataSourceFwPg AS112TopLocationsResponseMetaConfidenceInfoAnnotationsDataSource = "FW_PG"` - `const AS112TopLocationsResponseMetaConfidenceInfoAnnotationsDataSourceHTTP AS112TopLocationsResponseMetaConfidenceInfoAnnotationsDataSource = "HTTP"` - `const AS112TopLocationsResponseMetaConfidenceInfoAnnotationsDataSourceHTTPControl AS112TopLocationsResponseMetaConfidenceInfoAnnotationsDataSource = "HTTP_CONTROL"` - `const AS112TopLocationsResponseMetaConfidenceInfoAnnotationsDataSourceHTTPCrawlerReferer AS112TopLocationsResponseMetaConfidenceInfoAnnotationsDataSource = "HTTP_CRAWLER_REFERER"` - `const AS112TopLocationsResponseMetaConfidenceInfoAnnotationsDataSourceHTTPOrigins AS112TopLocationsResponseMetaConfidenceInfoAnnotationsDataSource = "HTTP_ORIGINS"` - `const AS112TopLocationsResponseMetaConfidenceInfoAnnotationsDataSourceIQI AS112TopLocationsResponseMetaConfidenceInfoAnnotationsDataSource = "IQI"` - `const AS112TopLocationsResponseMetaConfidenceInfoAnnotationsDataSourceLeakedCredentials AS112TopLocationsResponseMetaConfidenceInfoAnnotationsDataSource = "LEAKED_CREDENTIALS"` - `const AS112TopLocationsResponseMetaConfidenceInfoAnnotationsDataSourceNet AS112TopLocationsResponseMetaConfidenceInfoAnnotationsDataSource = "NET"` - `const AS112TopLocationsResponseMetaConfidenceInfoAnnotationsDataSourceRobotsTXT AS112TopLocationsResponseMetaConfidenceInfoAnnotationsDataSource = "ROBOTS_TXT"` - `const AS112TopLocationsResponseMetaConfidenceInfoAnnotationsDataSourceSpeed AS112TopLocationsResponseMetaConfidenceInfoAnnotationsDataSource = "SPEED"` - `const AS112TopLocationsResponseMetaConfidenceInfoAnnotationsDataSourceWorkersAI AS112TopLocationsResponseMetaConfidenceInfoAnnotationsDataSource = "WORKERS_AI"` - `Description string` - `EndDate Time` - `EventType AS112TopLocationsResponseMetaConfidenceInfoAnnotationsEventType` Event type for annotations. - `const AS112TopLocationsResponseMetaConfidenceInfoAnnotationsEventTypeEvent AS112TopLocationsResponseMetaConfidenceInfoAnnotationsEventType = "EVENT"` - `const AS112TopLocationsResponseMetaConfidenceInfoAnnotationsEventTypeGeneral AS112TopLocationsResponseMetaConfidenceInfoAnnotationsEventType = "GENERAL"` - `const AS112TopLocationsResponseMetaConfidenceInfoAnnotationsEventTypeOutage AS112TopLocationsResponseMetaConfidenceInfoAnnotationsEventType = "OUTAGE"` - `const AS112TopLocationsResponseMetaConfidenceInfoAnnotationsEventTypePartialProjection AS112TopLocationsResponseMetaConfidenceInfoAnnotationsEventType = "PARTIAL_PROJECTION"` - `const AS112TopLocationsResponseMetaConfidenceInfoAnnotationsEventTypePipeline AS112TopLocationsResponseMetaConfidenceInfoAnnotationsEventType = "PIPELINE"` - `const AS112TopLocationsResponseMetaConfidenceInfoAnnotationsEventTypeTrafficAnomaly AS112TopLocationsResponseMetaConfidenceInfoAnnotationsEventType = "TRAFFIC_ANOMALY"` - `IsInstantaneous bool` Whether event is a single point in time or a time range. - `LinkedURL string` - `StartDate Time` - `Tags []string` - `Level int64` Provides an indication of how much confidence Cloudflare has in the data. - `DateRange []AS112TopLocationsResponseMetaDateRange` - `EndTime Time` Adjusted end of date range. - `StartTime Time` Adjusted start of date range. - `LastUpdated Time` Timestamp of the last dataset update. - `Normalization AS112TopLocationsResponseMetaNormalization` Normalization method applied to the results. Refer to [Normalization methods](https://edgetunnel-b2h.pages.dev/radar/concepts/normalization/). - `const AS112TopLocationsResponseMetaNormalizationPercentage AS112TopLocationsResponseMetaNormalization = "PERCENTAGE"` - `const AS112TopLocationsResponseMetaNormalizationMin0Max AS112TopLocationsResponseMetaNormalization = "MIN0_MAX"` - `const AS112TopLocationsResponseMetaNormalizationMinMax AS112TopLocationsResponseMetaNormalization = "MIN_MAX"` - `const AS112TopLocationsResponseMetaNormalizationRawValues AS112TopLocationsResponseMetaNormalization = "RAW_VALUES"` - `const AS112TopLocationsResponseMetaNormalizationPercentageChange AS112TopLocationsResponseMetaNormalization = "PERCENTAGE_CHANGE"` - `const AS112TopLocationsResponseMetaNormalizationRollingAverage AS112TopLocationsResponseMetaNormalization = "ROLLING_AVERAGE"` - `const AS112TopLocationsResponseMetaNormalizationOverlappedPercentage AS112TopLocationsResponseMetaNormalization = "OVERLAPPED_PERCENTAGE"` - `const AS112TopLocationsResponseMetaNormalizationRatio AS112TopLocationsResponseMetaNormalization = "RATIO"` - `Units []AS112TopLocationsResponseMetaUnit` Measurement units for the results. - `Name string` - `Value string` - `Top0 []AS112TopLocationsResponseTop0` - `ClientCountryAlpha2 string` - `ClientCountryName string` - `Value string` A numeric string. ### Example ```go 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.Top.Locations(context.TODO(), radar.AS112TopLocationsParams{ }) if err != nil { panic(err.Error()) } fmt.Printf("%+v\n", response.Meta) } ``` #### Response ```json { "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" } ] }, "top_0": [ { "clientCountryAlpha2": "PT", "clientCountryName": "Portugal", "value": "10" } ] }, "success": true } ``` ## Get top locations by AS112 DNS queries with DNSSEC support `client.Radar.AS112.Top.DNSSEC(ctx, dnssec, query) (*AS112TopDNSSECResponse, error)` **get** `/radar/as112/top/locations/dnssec/{dnssec}` Retrieves the top locations of DNS queries to AS112 with DNSSEC (DNS Security Extensions) support. ### Parameters - `dnssec AS112TopDNSSECParamsDNSSEC` DNSSEC (DNS Security Extensions) status. - `const AS112TopDNSSECParamsDNSSECSupported AS112TopDNSSECParamsDNSSEC = "SUPPORTED"` - `const AS112TopDNSSECParamsDNSSECNotSupported AS112TopDNSSECParamsDNSSEC = "NOT_SUPPORTED"` - `query AS112TopDNSSECParams` - `Continent param.Field[[]string]` 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]` End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected. - `DateRange param.Field[[]string]` Filters results by relative date range ending at the current time, with each value producing a separate series. Use `d` for days (up to `364d`) or `w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters). - `DateStart param.Field[[]Time]` Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected. - `Format param.Field[AS112TopDNSSECParamsFormat]` Format in which results will be returned. - `const AS112TopDNSSECParamsFormatJson AS112TopDNSSECParamsFormat = "JSON"` - `const AS112TopDNSSECParamsFormatCsv AS112TopDNSSECParamsFormat = "CSV"` - `Limit param.Field[int64]` Limits the number of objects returned in the response. - `Location param.Field[[]string]` 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]` Array of names used to label the series in the response. ### Returns - `type AS112TopDNSSECResponse struct{…}` - `Meta AS112TopDNSSECResponseMeta` Metadata for the results. - `ConfidenceInfo AS112TopDNSSECResponseMetaConfidenceInfo` - `Annotations []AS112TopDNSSECResponseMetaConfidenceInfoAnnotation` - `DataSource AS112TopDNSSECResponseMetaConfidenceInfoAnnotationsDataSource` Data source for annotations. - `const AS112TopDNSSECResponseMetaConfidenceInfoAnnotationsDataSourceAll AS112TopDNSSECResponseMetaConfidenceInfoAnnotationsDataSource = "ALL"` - `const AS112TopDNSSECResponseMetaConfidenceInfoAnnotationsDataSourceAIBots AS112TopDNSSECResponseMetaConfidenceInfoAnnotationsDataSource = "AI_BOTS"` - `const AS112TopDNSSECResponseMetaConfidenceInfoAnnotationsDataSourceAIGateway AS112TopDNSSECResponseMetaConfidenceInfoAnnotationsDataSource = "AI_GATEWAY"` - `const AS112TopDNSSECResponseMetaConfidenceInfoAnnotationsDataSourceBGP AS112TopDNSSECResponseMetaConfidenceInfoAnnotationsDataSource = "BGP"` - `const AS112TopDNSSECResponseMetaConfidenceInfoAnnotationsDataSourceBots AS112TopDNSSECResponseMetaConfidenceInfoAnnotationsDataSource = "BOTS"` - `const AS112TopDNSSECResponseMetaConfidenceInfoAnnotationsDataSourceConnectionAnomaly AS112TopDNSSECResponseMetaConfidenceInfoAnnotationsDataSource = "CONNECTION_ANOMALY"` - `const AS112TopDNSSECResponseMetaConfidenceInfoAnnotationsDataSourceCT AS112TopDNSSECResponseMetaConfidenceInfoAnnotationsDataSource = "CT"` - `const AS112TopDNSSECResponseMetaConfidenceInfoAnnotationsDataSourceDNS AS112TopDNSSECResponseMetaConfidenceInfoAnnotationsDataSource = "DNS"` - `const AS112TopDNSSECResponseMetaConfidenceInfoAnnotationsDataSourceDNSMagnitude AS112TopDNSSECResponseMetaConfidenceInfoAnnotationsDataSource = "DNS_MAGNITUDE"` - `const AS112TopDNSSECResponseMetaConfidenceInfoAnnotationsDataSourceDNSAS112 AS112TopDNSSECResponseMetaConfidenceInfoAnnotationsDataSource = "DNS_AS112"` - `const AS112TopDNSSECResponseMetaConfidenceInfoAnnotationsDataSourceDos AS112TopDNSSECResponseMetaConfidenceInfoAnnotationsDataSource = "DOS"` - `const AS112TopDNSSECResponseMetaConfidenceInfoAnnotationsDataSourceEmailRouting AS112TopDNSSECResponseMetaConfidenceInfoAnnotationsDataSource = "EMAIL_ROUTING"` - `const AS112TopDNSSECResponseMetaConfidenceInfoAnnotationsDataSourceEmailSecurity AS112TopDNSSECResponseMetaConfidenceInfoAnnotationsDataSource = "EMAIL_SECURITY"` - `const AS112TopDNSSECResponseMetaConfidenceInfoAnnotationsDataSourceFw AS112TopDNSSECResponseMetaConfidenceInfoAnnotationsDataSource = "FW"` - `const AS112TopDNSSECResponseMetaConfidenceInfoAnnotationsDataSourceFwPg AS112TopDNSSECResponseMetaConfidenceInfoAnnotationsDataSource = "FW_PG"` - `const AS112TopDNSSECResponseMetaConfidenceInfoAnnotationsDataSourceHTTP AS112TopDNSSECResponseMetaConfidenceInfoAnnotationsDataSource = "HTTP"` - `const AS112TopDNSSECResponseMetaConfidenceInfoAnnotationsDataSourceHTTPControl AS112TopDNSSECResponseMetaConfidenceInfoAnnotationsDataSource = "HTTP_CONTROL"` - `const AS112TopDNSSECResponseMetaConfidenceInfoAnnotationsDataSourceHTTPCrawlerReferer AS112TopDNSSECResponseMetaConfidenceInfoAnnotationsDataSource = "HTTP_CRAWLER_REFERER"` - `const AS112TopDNSSECResponseMetaConfidenceInfoAnnotationsDataSourceHTTPOrigins AS112TopDNSSECResponseMetaConfidenceInfoAnnotationsDataSource = "HTTP_ORIGINS"` - `const AS112TopDNSSECResponseMetaConfidenceInfoAnnotationsDataSourceIQI AS112TopDNSSECResponseMetaConfidenceInfoAnnotationsDataSource = "IQI"` - `const AS112TopDNSSECResponseMetaConfidenceInfoAnnotationsDataSourceLeakedCredentials AS112TopDNSSECResponseMetaConfidenceInfoAnnotationsDataSource = "LEAKED_CREDENTIALS"` - `const AS112TopDNSSECResponseMetaConfidenceInfoAnnotationsDataSourceNet AS112TopDNSSECResponseMetaConfidenceInfoAnnotationsDataSource = "NET"` - `const AS112TopDNSSECResponseMetaConfidenceInfoAnnotationsDataSourceRobotsTXT AS112TopDNSSECResponseMetaConfidenceInfoAnnotationsDataSource = "ROBOTS_TXT"` - `const AS112TopDNSSECResponseMetaConfidenceInfoAnnotationsDataSourceSpeed AS112TopDNSSECResponseMetaConfidenceInfoAnnotationsDataSource = "SPEED"` - `const AS112TopDNSSECResponseMetaConfidenceInfoAnnotationsDataSourceWorkersAI AS112TopDNSSECResponseMetaConfidenceInfoAnnotationsDataSource = "WORKERS_AI"` - `Description string` - `EndDate Time` - `EventType AS112TopDNSSECResponseMetaConfidenceInfoAnnotationsEventType` Event type for annotations. - `const AS112TopDNSSECResponseMetaConfidenceInfoAnnotationsEventTypeEvent AS112TopDNSSECResponseMetaConfidenceInfoAnnotationsEventType = "EVENT"` - `const AS112TopDNSSECResponseMetaConfidenceInfoAnnotationsEventTypeGeneral AS112TopDNSSECResponseMetaConfidenceInfoAnnotationsEventType = "GENERAL"` - `const AS112TopDNSSECResponseMetaConfidenceInfoAnnotationsEventTypeOutage AS112TopDNSSECResponseMetaConfidenceInfoAnnotationsEventType = "OUTAGE"` - `const AS112TopDNSSECResponseMetaConfidenceInfoAnnotationsEventTypePartialProjection AS112TopDNSSECResponseMetaConfidenceInfoAnnotationsEventType = "PARTIAL_PROJECTION"` - `const AS112TopDNSSECResponseMetaConfidenceInfoAnnotationsEventTypePipeline AS112TopDNSSECResponseMetaConfidenceInfoAnnotationsEventType = "PIPELINE"` - `const AS112TopDNSSECResponseMetaConfidenceInfoAnnotationsEventTypeTrafficAnomaly AS112TopDNSSECResponseMetaConfidenceInfoAnnotationsEventType = "TRAFFIC_ANOMALY"` - `IsInstantaneous bool` Whether event is a single point in time or a time range. - `LinkedURL string` - `StartDate Time` - `Tags []string` - `Level int64` Provides an indication of how much confidence Cloudflare has in the data. - `DateRange []AS112TopDNSSECResponseMetaDateRange` - `EndTime Time` Adjusted end of date range. - `StartTime Time` Adjusted start of date range. - `LastUpdated Time` Timestamp of the last dataset update. - `Normalization AS112TopDNSSECResponseMetaNormalization` Normalization method applied to the results. Refer to [Normalization methods](https://edgetunnel-b2h.pages.dev/radar/concepts/normalization/). - `const AS112TopDNSSECResponseMetaNormalizationPercentage AS112TopDNSSECResponseMetaNormalization = "PERCENTAGE"` - `const AS112TopDNSSECResponseMetaNormalizationMin0Max AS112TopDNSSECResponseMetaNormalization = "MIN0_MAX"` - `const AS112TopDNSSECResponseMetaNormalizationMinMax AS112TopDNSSECResponseMetaNormalization = "MIN_MAX"` - `const AS112TopDNSSECResponseMetaNormalizationRawValues AS112TopDNSSECResponseMetaNormalization = "RAW_VALUES"` - `const AS112TopDNSSECResponseMetaNormalizationPercentageChange AS112TopDNSSECResponseMetaNormalization = "PERCENTAGE_CHANGE"` - `const AS112TopDNSSECResponseMetaNormalizationRollingAverage AS112TopDNSSECResponseMetaNormalization = "ROLLING_AVERAGE"` - `const AS112TopDNSSECResponseMetaNormalizationOverlappedPercentage AS112TopDNSSECResponseMetaNormalization = "OVERLAPPED_PERCENTAGE"` - `const AS112TopDNSSECResponseMetaNormalizationRatio AS112TopDNSSECResponseMetaNormalization = "RATIO"` - `Units []AS112TopDNSSECResponseMetaUnit` Measurement units for the results. - `Name string` - `Value string` - `Top0 []AS112TopDNSSECResponseTop0` - `ClientCountryAlpha2 string` - `ClientCountryName string` - `Value string` A numeric string. ### Example ```go 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.Top.DNSSEC( context.TODO(), radar.AS112TopDNSSECParamsDNSSECSupported, radar.AS112TopDNSSECParams{ }, ) if err != nil { panic(err.Error()) } fmt.Printf("%+v\n", response.Meta) } ``` #### Response ```json { "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" } ] }, "top_0": [ { "clientCountryAlpha2": "PT", "clientCountryName": "Portugal", "value": "10" } ] }, "success": true } ``` ## Get top locations by AS112 DNS queries with EDNS support `client.Radar.AS112.Top.Edns(ctx, edns, query) (*AS112TopEdnsResponse, error)` **get** `/radar/as112/top/locations/edns/{edns}` Retrieves the top locations of DNS queries to AS112 with EDNS (Extension Mechanisms for DNS) support. ### Parameters - `edns AS112TopEdnsParamsEdns` EDNS (Extension Mechanisms for DNS) status. - `const AS112TopEdnsParamsEdnsSupported AS112TopEdnsParamsEdns = "SUPPORTED"` - `const AS112TopEdnsParamsEdnsNotSupported AS112TopEdnsParamsEdns = "NOT_SUPPORTED"` - `query AS112TopEdnsParams` - `Continent param.Field[[]string]` 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]` End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected. - `DateRange param.Field[[]string]` Filters results by relative date range ending at the current time, with each value producing a separate series. Use `d` for days (up to `364d`) or `w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters). - `DateStart param.Field[[]Time]` Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected. - `Format param.Field[AS112TopEdnsParamsFormat]` Format in which results will be returned. - `const AS112TopEdnsParamsFormatJson AS112TopEdnsParamsFormat = "JSON"` - `const AS112TopEdnsParamsFormatCsv AS112TopEdnsParamsFormat = "CSV"` - `Limit param.Field[int64]` Limits the number of objects returned in the response. - `Location param.Field[[]string]` 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]` Array of names used to label the series in the response. ### Returns - `type AS112TopEdnsResponse struct{…}` - `Meta AS112TopEdnsResponseMeta` Metadata for the results. - `ConfidenceInfo AS112TopEdnsResponseMetaConfidenceInfo` - `Annotations []AS112TopEdnsResponseMetaConfidenceInfoAnnotation` - `DataSource AS112TopEdnsResponseMetaConfidenceInfoAnnotationsDataSource` Data source for annotations. - `const AS112TopEdnsResponseMetaConfidenceInfoAnnotationsDataSourceAll AS112TopEdnsResponseMetaConfidenceInfoAnnotationsDataSource = "ALL"` - `const AS112TopEdnsResponseMetaConfidenceInfoAnnotationsDataSourceAIBots AS112TopEdnsResponseMetaConfidenceInfoAnnotationsDataSource = "AI_BOTS"` - `const AS112TopEdnsResponseMetaConfidenceInfoAnnotationsDataSourceAIGateway AS112TopEdnsResponseMetaConfidenceInfoAnnotationsDataSource = "AI_GATEWAY"` - `const AS112TopEdnsResponseMetaConfidenceInfoAnnotationsDataSourceBGP AS112TopEdnsResponseMetaConfidenceInfoAnnotationsDataSource = "BGP"` - `const AS112TopEdnsResponseMetaConfidenceInfoAnnotationsDataSourceBots AS112TopEdnsResponseMetaConfidenceInfoAnnotationsDataSource = "BOTS"` - `const AS112TopEdnsResponseMetaConfidenceInfoAnnotationsDataSourceConnectionAnomaly AS112TopEdnsResponseMetaConfidenceInfoAnnotationsDataSource = "CONNECTION_ANOMALY"` - `const AS112TopEdnsResponseMetaConfidenceInfoAnnotationsDataSourceCT AS112TopEdnsResponseMetaConfidenceInfoAnnotationsDataSource = "CT"` - `const AS112TopEdnsResponseMetaConfidenceInfoAnnotationsDataSourceDNS AS112TopEdnsResponseMetaConfidenceInfoAnnotationsDataSource = "DNS"` - `const AS112TopEdnsResponseMetaConfidenceInfoAnnotationsDataSourceDNSMagnitude AS112TopEdnsResponseMetaConfidenceInfoAnnotationsDataSource = "DNS_MAGNITUDE"` - `const AS112TopEdnsResponseMetaConfidenceInfoAnnotationsDataSourceDNSAS112 AS112TopEdnsResponseMetaConfidenceInfoAnnotationsDataSource = "DNS_AS112"` - `const AS112TopEdnsResponseMetaConfidenceInfoAnnotationsDataSourceDos AS112TopEdnsResponseMetaConfidenceInfoAnnotationsDataSource = "DOS"` - `const AS112TopEdnsResponseMetaConfidenceInfoAnnotationsDataSourceEmailRouting AS112TopEdnsResponseMetaConfidenceInfoAnnotationsDataSource = "EMAIL_ROUTING"` - `const AS112TopEdnsResponseMetaConfidenceInfoAnnotationsDataSourceEmailSecurity AS112TopEdnsResponseMetaConfidenceInfoAnnotationsDataSource = "EMAIL_SECURITY"` - `const AS112TopEdnsResponseMetaConfidenceInfoAnnotationsDataSourceFw AS112TopEdnsResponseMetaConfidenceInfoAnnotationsDataSource = "FW"` - `const AS112TopEdnsResponseMetaConfidenceInfoAnnotationsDataSourceFwPg AS112TopEdnsResponseMetaConfidenceInfoAnnotationsDataSource = "FW_PG"` - `const AS112TopEdnsResponseMetaConfidenceInfoAnnotationsDataSourceHTTP AS112TopEdnsResponseMetaConfidenceInfoAnnotationsDataSource = "HTTP"` - `const AS112TopEdnsResponseMetaConfidenceInfoAnnotationsDataSourceHTTPControl AS112TopEdnsResponseMetaConfidenceInfoAnnotationsDataSource = "HTTP_CONTROL"` - `const AS112TopEdnsResponseMetaConfidenceInfoAnnotationsDataSourceHTTPCrawlerReferer AS112TopEdnsResponseMetaConfidenceInfoAnnotationsDataSource = "HTTP_CRAWLER_REFERER"` - `const AS112TopEdnsResponseMetaConfidenceInfoAnnotationsDataSourceHTTPOrigins AS112TopEdnsResponseMetaConfidenceInfoAnnotationsDataSource = "HTTP_ORIGINS"` - `const AS112TopEdnsResponseMetaConfidenceInfoAnnotationsDataSourceIQI AS112TopEdnsResponseMetaConfidenceInfoAnnotationsDataSource = "IQI"` - `const AS112TopEdnsResponseMetaConfidenceInfoAnnotationsDataSourceLeakedCredentials AS112TopEdnsResponseMetaConfidenceInfoAnnotationsDataSource = "LEAKED_CREDENTIALS"` - `const AS112TopEdnsResponseMetaConfidenceInfoAnnotationsDataSourceNet AS112TopEdnsResponseMetaConfidenceInfoAnnotationsDataSource = "NET"` - `const AS112TopEdnsResponseMetaConfidenceInfoAnnotationsDataSourceRobotsTXT AS112TopEdnsResponseMetaConfidenceInfoAnnotationsDataSource = "ROBOTS_TXT"` - `const AS112TopEdnsResponseMetaConfidenceInfoAnnotationsDataSourceSpeed AS112TopEdnsResponseMetaConfidenceInfoAnnotationsDataSource = "SPEED"` - `const AS112TopEdnsResponseMetaConfidenceInfoAnnotationsDataSourceWorkersAI AS112TopEdnsResponseMetaConfidenceInfoAnnotationsDataSource = "WORKERS_AI"` - `Description string` - `EndDate Time` - `EventType AS112TopEdnsResponseMetaConfidenceInfoAnnotationsEventType` Event type for annotations. - `const AS112TopEdnsResponseMetaConfidenceInfoAnnotationsEventTypeEvent AS112TopEdnsResponseMetaConfidenceInfoAnnotationsEventType = "EVENT"` - `const AS112TopEdnsResponseMetaConfidenceInfoAnnotationsEventTypeGeneral AS112TopEdnsResponseMetaConfidenceInfoAnnotationsEventType = "GENERAL"` - `const AS112TopEdnsResponseMetaConfidenceInfoAnnotationsEventTypeOutage AS112TopEdnsResponseMetaConfidenceInfoAnnotationsEventType = "OUTAGE"` - `const AS112TopEdnsResponseMetaConfidenceInfoAnnotationsEventTypePartialProjection AS112TopEdnsResponseMetaConfidenceInfoAnnotationsEventType = "PARTIAL_PROJECTION"` - `const AS112TopEdnsResponseMetaConfidenceInfoAnnotationsEventTypePipeline AS112TopEdnsResponseMetaConfidenceInfoAnnotationsEventType = "PIPELINE"` - `const AS112TopEdnsResponseMetaConfidenceInfoAnnotationsEventTypeTrafficAnomaly AS112TopEdnsResponseMetaConfidenceInfoAnnotationsEventType = "TRAFFIC_ANOMALY"` - `IsInstantaneous bool` Whether event is a single point in time or a time range. - `LinkedURL string` - `StartDate Time` - `Tags []string` - `Level int64` Provides an indication of how much confidence Cloudflare has in the data. - `DateRange []AS112TopEdnsResponseMetaDateRange` - `EndTime Time` Adjusted end of date range. - `StartTime Time` Adjusted start of date range. - `LastUpdated Time` Timestamp of the last dataset update. - `Normalization AS112TopEdnsResponseMetaNormalization` Normalization method applied to the results. Refer to [Normalization methods](https://edgetunnel-b2h.pages.dev/radar/concepts/normalization/). - `const AS112TopEdnsResponseMetaNormalizationPercentage AS112TopEdnsResponseMetaNormalization = "PERCENTAGE"` - `const AS112TopEdnsResponseMetaNormalizationMin0Max AS112TopEdnsResponseMetaNormalization = "MIN0_MAX"` - `const AS112TopEdnsResponseMetaNormalizationMinMax AS112TopEdnsResponseMetaNormalization = "MIN_MAX"` - `const AS112TopEdnsResponseMetaNormalizationRawValues AS112TopEdnsResponseMetaNormalization = "RAW_VALUES"` - `const AS112TopEdnsResponseMetaNormalizationPercentageChange AS112TopEdnsResponseMetaNormalization = "PERCENTAGE_CHANGE"` - `const AS112TopEdnsResponseMetaNormalizationRollingAverage AS112TopEdnsResponseMetaNormalization = "ROLLING_AVERAGE"` - `const AS112TopEdnsResponseMetaNormalizationOverlappedPercentage AS112TopEdnsResponseMetaNormalization = "OVERLAPPED_PERCENTAGE"` - `const AS112TopEdnsResponseMetaNormalizationRatio AS112TopEdnsResponseMetaNormalization = "RATIO"` - `Units []AS112TopEdnsResponseMetaUnit` Measurement units for the results. - `Name string` - `Value string` - `Top0 []AS112TopEdnsResponseTop0` - `ClientCountryAlpha2 string` - `ClientCountryName string` - `Value string` A numeric string. ### Example ```go 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.Top.Edns( context.TODO(), radar.AS112TopEdnsParamsEdnsSupported, radar.AS112TopEdnsParams{ }, ) if err != nil { panic(err.Error()) } fmt.Printf("%+v\n", response.Meta) } ``` #### Response ```json { "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" } ] }, "top_0": [ { "clientCountryAlpha2": "PT", "clientCountryName": "Portugal", "value": "10" } ] }, "success": true } ``` ## Get top locations by AS112 DNS queries for an IP version `client.Radar.AS112.Top.IPVersion(ctx, ipVersion, query) (*AS112TopIPVersionResponse, error)` **get** `/radar/as112/top/locations/ip_version/{ip_version}` Retrieves the top locations of DNS queries to AS112 for an IP version. ### Parameters - `ipVersion AS112TopIPVersionParamsIPVersion` IP version. - `const AS112TopIPVersionParamsIPVersionIPv4 AS112TopIPVersionParamsIPVersion = "IPv4"` - `const AS112TopIPVersionParamsIPVersionIPv6 AS112TopIPVersionParamsIPVersion = "IPv6"` - `query AS112TopIPVersionParams` - `Continent param.Field[[]string]` 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]` End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected. - `DateRange param.Field[[]string]` Filters results by relative date range ending at the current time, with each value producing a separate series. Use `d` for days (up to `364d`) or `w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters). - `DateStart param.Field[[]Time]` Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected. - `Format param.Field[AS112TopIPVersionParamsFormat]` Format in which results will be returned. - `const AS112TopIPVersionParamsFormatJson AS112TopIPVersionParamsFormat = "JSON"` - `const AS112TopIPVersionParamsFormatCsv AS112TopIPVersionParamsFormat = "CSV"` - `Limit param.Field[int64]` Limits the number of objects returned in the response. - `Location param.Field[[]string]` 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]` Array of names used to label the series in the response. ### Returns - `type AS112TopIPVersionResponse struct{…}` - `Meta AS112TopIPVersionResponseMeta` Metadata for the results. - `ConfidenceInfo AS112TopIPVersionResponseMetaConfidenceInfo` - `Annotations []AS112TopIPVersionResponseMetaConfidenceInfoAnnotation` - `DataSource AS112TopIPVersionResponseMetaConfidenceInfoAnnotationsDataSource` Data source for annotations. - `const AS112TopIPVersionResponseMetaConfidenceInfoAnnotationsDataSourceAll AS112TopIPVersionResponseMetaConfidenceInfoAnnotationsDataSource = "ALL"` - `const AS112TopIPVersionResponseMetaConfidenceInfoAnnotationsDataSourceAIBots AS112TopIPVersionResponseMetaConfidenceInfoAnnotationsDataSource = "AI_BOTS"` - `const AS112TopIPVersionResponseMetaConfidenceInfoAnnotationsDataSourceAIGateway AS112TopIPVersionResponseMetaConfidenceInfoAnnotationsDataSource = "AI_GATEWAY"` - `const AS112TopIPVersionResponseMetaConfidenceInfoAnnotationsDataSourceBGP AS112TopIPVersionResponseMetaConfidenceInfoAnnotationsDataSource = "BGP"` - `const AS112TopIPVersionResponseMetaConfidenceInfoAnnotationsDataSourceBots AS112TopIPVersionResponseMetaConfidenceInfoAnnotationsDataSource = "BOTS"` - `const AS112TopIPVersionResponseMetaConfidenceInfoAnnotationsDataSourceConnectionAnomaly AS112TopIPVersionResponseMetaConfidenceInfoAnnotationsDataSource = "CONNECTION_ANOMALY"` - `const AS112TopIPVersionResponseMetaConfidenceInfoAnnotationsDataSourceCT AS112TopIPVersionResponseMetaConfidenceInfoAnnotationsDataSource = "CT"` - `const AS112TopIPVersionResponseMetaConfidenceInfoAnnotationsDataSourceDNS AS112TopIPVersionResponseMetaConfidenceInfoAnnotationsDataSource = "DNS"` - `const AS112TopIPVersionResponseMetaConfidenceInfoAnnotationsDataSourceDNSMagnitude AS112TopIPVersionResponseMetaConfidenceInfoAnnotationsDataSource = "DNS_MAGNITUDE"` - `const AS112TopIPVersionResponseMetaConfidenceInfoAnnotationsDataSourceDNSAS112 AS112TopIPVersionResponseMetaConfidenceInfoAnnotationsDataSource = "DNS_AS112"` - `const AS112TopIPVersionResponseMetaConfidenceInfoAnnotationsDataSourceDos AS112TopIPVersionResponseMetaConfidenceInfoAnnotationsDataSource = "DOS"` - `const AS112TopIPVersionResponseMetaConfidenceInfoAnnotationsDataSourceEmailRouting AS112TopIPVersionResponseMetaConfidenceInfoAnnotationsDataSource = "EMAIL_ROUTING"` - `const AS112TopIPVersionResponseMetaConfidenceInfoAnnotationsDataSourceEmailSecurity AS112TopIPVersionResponseMetaConfidenceInfoAnnotationsDataSource = "EMAIL_SECURITY"` - `const AS112TopIPVersionResponseMetaConfidenceInfoAnnotationsDataSourceFw AS112TopIPVersionResponseMetaConfidenceInfoAnnotationsDataSource = "FW"` - `const AS112TopIPVersionResponseMetaConfidenceInfoAnnotationsDataSourceFwPg AS112TopIPVersionResponseMetaConfidenceInfoAnnotationsDataSource = "FW_PG"` - `const AS112TopIPVersionResponseMetaConfidenceInfoAnnotationsDataSourceHTTP AS112TopIPVersionResponseMetaConfidenceInfoAnnotationsDataSource = "HTTP"` - `const AS112TopIPVersionResponseMetaConfidenceInfoAnnotationsDataSourceHTTPControl AS112TopIPVersionResponseMetaConfidenceInfoAnnotationsDataSource = "HTTP_CONTROL"` - `const AS112TopIPVersionResponseMetaConfidenceInfoAnnotationsDataSourceHTTPCrawlerReferer AS112TopIPVersionResponseMetaConfidenceInfoAnnotationsDataSource = "HTTP_CRAWLER_REFERER"` - `const AS112TopIPVersionResponseMetaConfidenceInfoAnnotationsDataSourceHTTPOrigins AS112TopIPVersionResponseMetaConfidenceInfoAnnotationsDataSource = "HTTP_ORIGINS"` - `const AS112TopIPVersionResponseMetaConfidenceInfoAnnotationsDataSourceIQI AS112TopIPVersionResponseMetaConfidenceInfoAnnotationsDataSource = "IQI"` - `const AS112TopIPVersionResponseMetaConfidenceInfoAnnotationsDataSourceLeakedCredentials AS112TopIPVersionResponseMetaConfidenceInfoAnnotationsDataSource = "LEAKED_CREDENTIALS"` - `const AS112TopIPVersionResponseMetaConfidenceInfoAnnotationsDataSourceNet AS112TopIPVersionResponseMetaConfidenceInfoAnnotationsDataSource = "NET"` - `const AS112TopIPVersionResponseMetaConfidenceInfoAnnotationsDataSourceRobotsTXT AS112TopIPVersionResponseMetaConfidenceInfoAnnotationsDataSource = "ROBOTS_TXT"` - `const AS112TopIPVersionResponseMetaConfidenceInfoAnnotationsDataSourceSpeed AS112TopIPVersionResponseMetaConfidenceInfoAnnotationsDataSource = "SPEED"` - `const AS112TopIPVersionResponseMetaConfidenceInfoAnnotationsDataSourceWorkersAI AS112TopIPVersionResponseMetaConfidenceInfoAnnotationsDataSource = "WORKERS_AI"` - `Description string` - `EndDate Time` - `EventType AS112TopIPVersionResponseMetaConfidenceInfoAnnotationsEventType` Event type for annotations. - `const AS112TopIPVersionResponseMetaConfidenceInfoAnnotationsEventTypeEvent AS112TopIPVersionResponseMetaConfidenceInfoAnnotationsEventType = "EVENT"` - `const AS112TopIPVersionResponseMetaConfidenceInfoAnnotationsEventTypeGeneral AS112TopIPVersionResponseMetaConfidenceInfoAnnotationsEventType = "GENERAL"` - `const AS112TopIPVersionResponseMetaConfidenceInfoAnnotationsEventTypeOutage AS112TopIPVersionResponseMetaConfidenceInfoAnnotationsEventType = "OUTAGE"` - `const AS112TopIPVersionResponseMetaConfidenceInfoAnnotationsEventTypePartialProjection AS112TopIPVersionResponseMetaConfidenceInfoAnnotationsEventType = "PARTIAL_PROJECTION"` - `const AS112TopIPVersionResponseMetaConfidenceInfoAnnotationsEventTypePipeline AS112TopIPVersionResponseMetaConfidenceInfoAnnotationsEventType = "PIPELINE"` - `const AS112TopIPVersionResponseMetaConfidenceInfoAnnotationsEventTypeTrafficAnomaly AS112TopIPVersionResponseMetaConfidenceInfoAnnotationsEventType = "TRAFFIC_ANOMALY"` - `IsInstantaneous bool` Whether event is a single point in time or a time range. - `LinkedURL string` - `StartDate Time` - `Tags []string` - `Level int64` Provides an indication of how much confidence Cloudflare has in the data. - `DateRange []AS112TopIPVersionResponseMetaDateRange` - `EndTime Time` Adjusted end of date range. - `StartTime Time` Adjusted start of date range. - `LastUpdated Time` Timestamp of the last dataset update. - `Normalization AS112TopIPVersionResponseMetaNormalization` Normalization method applied to the results. Refer to [Normalization methods](https://edgetunnel-b2h.pages.dev/radar/concepts/normalization/). - `const AS112TopIPVersionResponseMetaNormalizationPercentage AS112TopIPVersionResponseMetaNormalization = "PERCENTAGE"` - `const AS112TopIPVersionResponseMetaNormalizationMin0Max AS112TopIPVersionResponseMetaNormalization = "MIN0_MAX"` - `const AS112TopIPVersionResponseMetaNormalizationMinMax AS112TopIPVersionResponseMetaNormalization = "MIN_MAX"` - `const AS112TopIPVersionResponseMetaNormalizationRawValues AS112TopIPVersionResponseMetaNormalization = "RAW_VALUES"` - `const AS112TopIPVersionResponseMetaNormalizationPercentageChange AS112TopIPVersionResponseMetaNormalization = "PERCENTAGE_CHANGE"` - `const AS112TopIPVersionResponseMetaNormalizationRollingAverage AS112TopIPVersionResponseMetaNormalization = "ROLLING_AVERAGE"` - `const AS112TopIPVersionResponseMetaNormalizationOverlappedPercentage AS112TopIPVersionResponseMetaNormalization = "OVERLAPPED_PERCENTAGE"` - `const AS112TopIPVersionResponseMetaNormalizationRatio AS112TopIPVersionResponseMetaNormalization = "RATIO"` - `Units []AS112TopIPVersionResponseMetaUnit` Measurement units for the results. - `Name string` - `Value string` - `Top0 []AS112TopIPVersionResponseTop0` - `ClientCountryAlpha2 string` - `ClientCountryName string` - `Value string` A numeric string. ### Example ```go 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.Top.IPVersion( context.TODO(), radar.AS112TopIPVersionParamsIPVersionIPv4, radar.AS112TopIPVersionParams{ }, ) if err != nil { panic(err.Error()) } fmt.Printf("%+v\n", response.Meta) } ``` #### Response ```json { "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" } ] }, "top_0": [ { "clientCountryAlpha2": "PT", "clientCountryName": "Portugal", "value": "10" } ] }, "success": true } ```