Skip to content
Start here

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.

Security
API Token

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

Example:Authorization: Bearer Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY
API Email + API Key

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

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

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

Example:X-Auth-Key: 144c9defac04969c7bfad8efaa8ea194
Accepted Permissions (at least one required)
User Details WriteUser Details Read
ParametersExpand Collapse
query AS112TimeseriesParams
AggInterval param.Field[AS112TimeseriesParamsAggInterval]optional

Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). Refer to Aggregation intervals.

const AS112TimeseriesParamsAggInterval15m AS112TimeseriesParamsAggInterval = "15m"
const AS112TimeseriesParamsAggInterval1h AS112TimeseriesParamsAggInterval = "1h"
const AS112TimeseriesParamsAggInterval1d AS112TimeseriesParamsAggInterval = "1d"
const AS112TimeseriesParamsAggInterval1w AS112TimeseriesParamsAggInterval = "1w"
Continent param.Field[[]string]optional

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

DateEnd param.Field[[]Time]optional

End of the date range (inclusive).

DateRange param.Field[[]string]optional

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

DateStart param.Field[[]Time]optional

Start of the date range.

Format param.Field[AS112TimeseriesParamsFormat]optional

Format in which results will be returned.

const AS112TimeseriesParamsFormatJson AS112TimeseriesParamsFormat = "JSON"
const AS112TimeseriesParamsFormatCsv AS112TimeseriesParamsFormat = "CSV"
Location param.Field[[]string]optional

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

Name param.Field[[]string]optional

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

Protocol param.Field[[]AS112TimeseriesParamsProtocol]optional

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]optional

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]optional

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"
ReturnsExpand Collapse
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.

One of the following:
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.

One of the following:
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
formatdate-time
EventType AS112TimeseriesResponseMetaConfidenceInfoAnnotationsEventType

Event type for annotations.

One of the following:
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
formaturi
StartDate Time
formatdate-time
Level int64

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

DateRange []AS112TimeseriesResponseMetaDateRange
EndTime Time

Adjusted end of date range.

formatdate-time
StartTime Time

Adjusted start of date range.

formatdate-time
LastUpdated Time

Timestamp of the last dataset update.

formatdate-time
Normalization AS112TimeseriesResponseMetaNormalization

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

One of the following:
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

Get AS112 DNS queries time series

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)
}
{
  "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"
          }
        ],
        "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
}
Returns Examples
{
  "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"
          }
        ],
        "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
}