Skip to content
Start here

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.

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 AS112TimeseriesGroupResponseCodesParams

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

const AS112TimeseriesGroupResponseCodesParamsAggInterval15m AS112TimeseriesGroupResponseCodesParamsAggInterval = "15m"
const AS112TimeseriesGroupResponseCodesParamsAggInterval1h AS112TimeseriesGroupResponseCodesParamsAggInterval = "1h"
const AS112TimeseriesGroupResponseCodesParamsAggInterval1d AS112TimeseriesGroupResponseCodesParamsAggInterval = "1d"
const AS112TimeseriesGroupResponseCodesParamsAggInterval1w AS112TimeseriesGroupResponseCodesParamsAggInterval = "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 in which results will be returned.

const AS112TimeseriesGroupResponseCodesParamsFormatJson AS112TimeseriesGroupResponseCodesParamsFormat = "JSON"
const AS112TimeseriesGroupResponseCodesParamsFormatCsv AS112TimeseriesGroupResponseCodesParamsFormat = "CSV"
LimitPerGroup param.Field[int64]Optional

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

Location param.Field[[]string]Optional

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

Name param.Field[[]string]Optional

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

Protocol param.Field[[]AS112TimeseriesGroupResponseCodesParamsProtocol]Optional

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

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

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

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

Event type for annotations.

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

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

DateRange []AS112TimeseriesGroupResponseCodesResponseMetaDateRange
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 AS112TimeseriesGroupResponseCodesResponseMetaNormalization

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

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

Get AS112 DNS queries by response code time series

package main

import (
  "context"
  "fmt"

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

func main() {
  client := cloudflare.NewClient(
    option.WithAPIToken("Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY"),
  )
  response, err := client.Radar.AS112.TimeseriesGroups.ResponseCodes(context.TODO(), radar.AS112TimeseriesGroupResponseCodesParams{

  })
  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",
            "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
}
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",
            "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
}