Skip to content
Start here

Get layer 7 attacks time series grouped by dimension

client.Radar.Attacks.Layer7.TimeseriesGroupsV2(ctx, dimension, query) (*AttackLayer7TimeseriesGroupsV2Response, error)
GET/radar/attacks/layer7/timeseries_groups/{dimension}

Retrieves the distribution of layer 7 attacks grouped by dimension 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

Specifies the attribute by which to group the results.

One of the following:
const AttackLayer7TimeseriesGroupsV2ParamsDimensionHTTPMethod AttackLayer7TimeseriesGroupsV2ParamsDimension = "HTTP_METHOD"
const AttackLayer7TimeseriesGroupsV2ParamsDimensionHTTPVersion AttackLayer7TimeseriesGroupsV2ParamsDimension = "HTTP_VERSION"
const AttackLayer7TimeseriesGroupsV2ParamsDimensionIPVersion AttackLayer7TimeseriesGroupsV2ParamsDimension = "IP_VERSION"
const AttackLayer7TimeseriesGroupsV2ParamsDimensionManagedRules AttackLayer7TimeseriesGroupsV2ParamsDimension = "MANAGED_RULES"
const AttackLayer7TimeseriesGroupsV2ParamsDimensionMitigationProduct AttackLayer7TimeseriesGroupsV2ParamsDimension = "MITIGATION_PRODUCT"
const AttackLayer7TimeseriesGroupsV2ParamsDimensionVertical AttackLayer7TimeseriesGroupsV2ParamsDimension = "VERTICAL"
const AttackLayer7TimeseriesGroupsV2ParamsDimensionIndustry AttackLayer7TimeseriesGroupsV2ParamsDimension = "INDUSTRY"
query AttackLayer7TimeseriesGroupsV2Params
AggInterval param.Field[AttackLayer7TimeseriesGroupsV2ParamsAggInterval]Optional

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

const AttackLayer7TimeseriesGroupsV2ParamsAggInterval15m AttackLayer7TimeseriesGroupsV2ParamsAggInterval = "15m"
const AttackLayer7TimeseriesGroupsV2ParamsAggInterval1h AttackLayer7TimeseriesGroupsV2ParamsAggInterval = "1h"
const AttackLayer7TimeseriesGroupsV2ParamsAggInterval1d AttackLayer7TimeseriesGroupsV2ParamsAggInterval = "1d"
const AttackLayer7TimeseriesGroupsV2ParamsAggInterval1w AttackLayer7TimeseriesGroupsV2ParamsAggInterval = "1w"
ASN param.Field[[]string]Optional

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

Continent param.Field[[]string]Optional

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

DateEnd param.Field[[]Time]Optional

End of the date range (inclusive).

DateRange param.Field[[]string]Optional

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

DateStart param.Field[[]Time]Optional

Start of the date range.

Format param.Field[AttackLayer7TimeseriesGroupsV2ParamsFormat]Optional

Format in which results will be returned.

const AttackLayer7TimeseriesGroupsV2ParamsFormatJson AttackLayer7TimeseriesGroupsV2ParamsFormat = "JSON"
const AttackLayer7TimeseriesGroupsV2ParamsFormatCsv AttackLayer7TimeseriesGroupsV2ParamsFormat = "CSV"
HTTPMethod param.Field[[]AttackLayer7TimeseriesGroupsV2ParamsHTTPMethod]Optional

Filters results by HTTP method.

const AttackLayer7TimeseriesGroupsV2ParamsHTTPMethodGet AttackLayer7TimeseriesGroupsV2ParamsHTTPMethod = "GET"
const AttackLayer7TimeseriesGroupsV2ParamsHTTPMethodPost AttackLayer7TimeseriesGroupsV2ParamsHTTPMethod = "POST"
const AttackLayer7TimeseriesGroupsV2ParamsHTTPMethodDelete AttackLayer7TimeseriesGroupsV2ParamsHTTPMethod = "DELETE"
const AttackLayer7TimeseriesGroupsV2ParamsHTTPMethodPut AttackLayer7TimeseriesGroupsV2ParamsHTTPMethod = "PUT"
const AttackLayer7TimeseriesGroupsV2ParamsHTTPMethodHead AttackLayer7TimeseriesGroupsV2ParamsHTTPMethod = "HEAD"
const AttackLayer7TimeseriesGroupsV2ParamsHTTPMethodPurge AttackLayer7TimeseriesGroupsV2ParamsHTTPMethod = "PURGE"
const AttackLayer7TimeseriesGroupsV2ParamsHTTPMethodOptions AttackLayer7TimeseriesGroupsV2ParamsHTTPMethod = "OPTIONS"
const AttackLayer7TimeseriesGroupsV2ParamsHTTPMethodPropfind AttackLayer7TimeseriesGroupsV2ParamsHTTPMethod = "PROPFIND"
const AttackLayer7TimeseriesGroupsV2ParamsHTTPMethodMkcol AttackLayer7TimeseriesGroupsV2ParamsHTTPMethod = "MKCOL"
const AttackLayer7TimeseriesGroupsV2ParamsHTTPMethodPatch AttackLayer7TimeseriesGroupsV2ParamsHTTPMethod = "PATCH"
const AttackLayer7TimeseriesGroupsV2ParamsHTTPMethodACL AttackLayer7TimeseriesGroupsV2ParamsHTTPMethod = "ACL"
const AttackLayer7TimeseriesGroupsV2ParamsHTTPMethodBcopy AttackLayer7TimeseriesGroupsV2ParamsHTTPMethod = "BCOPY"
const AttackLayer7TimeseriesGroupsV2ParamsHTTPMethodBdelete AttackLayer7TimeseriesGroupsV2ParamsHTTPMethod = "BDELETE"
const AttackLayer7TimeseriesGroupsV2ParamsHTTPMethodBmove AttackLayer7TimeseriesGroupsV2ParamsHTTPMethod = "BMOVE"
const AttackLayer7TimeseriesGroupsV2ParamsHTTPMethodBpropfind AttackLayer7TimeseriesGroupsV2ParamsHTTPMethod = "BPROPFIND"
const AttackLayer7TimeseriesGroupsV2ParamsHTTPMethodBproppatch AttackLayer7TimeseriesGroupsV2ParamsHTTPMethod = "BPROPPATCH"
const AttackLayer7TimeseriesGroupsV2ParamsHTTPMethodCheckin AttackLayer7TimeseriesGroupsV2ParamsHTTPMethod = "CHECKIN"
const AttackLayer7TimeseriesGroupsV2ParamsHTTPMethodCheckout AttackLayer7TimeseriesGroupsV2ParamsHTTPMethod = "CHECKOUT"
const AttackLayer7TimeseriesGroupsV2ParamsHTTPMethodConnect AttackLayer7TimeseriesGroupsV2ParamsHTTPMethod = "CONNECT"
const AttackLayer7TimeseriesGroupsV2ParamsHTTPMethodCopy AttackLayer7TimeseriesGroupsV2ParamsHTTPMethod = "COPY"
const AttackLayer7TimeseriesGroupsV2ParamsHTTPMethodLabel AttackLayer7TimeseriesGroupsV2ParamsHTTPMethod = "LABEL"
const AttackLayer7TimeseriesGroupsV2ParamsHTTPMethodLock AttackLayer7TimeseriesGroupsV2ParamsHTTPMethod = "LOCK"
const AttackLayer7TimeseriesGroupsV2ParamsHTTPMethodMerge AttackLayer7TimeseriesGroupsV2ParamsHTTPMethod = "MERGE"
const AttackLayer7TimeseriesGroupsV2ParamsHTTPMethodMkactivity AttackLayer7TimeseriesGroupsV2ParamsHTTPMethod = "MKACTIVITY"
const AttackLayer7TimeseriesGroupsV2ParamsHTTPMethodMkworkspace AttackLayer7TimeseriesGroupsV2ParamsHTTPMethod = "MKWORKSPACE"
const AttackLayer7TimeseriesGroupsV2ParamsHTTPMethodMove AttackLayer7TimeseriesGroupsV2ParamsHTTPMethod = "MOVE"
const AttackLayer7TimeseriesGroupsV2ParamsHTTPMethodNotify AttackLayer7TimeseriesGroupsV2ParamsHTTPMethod = "NOTIFY"
const AttackLayer7TimeseriesGroupsV2ParamsHTTPMethodOrderpatch AttackLayer7TimeseriesGroupsV2ParamsHTTPMethod = "ORDERPATCH"
const AttackLayer7TimeseriesGroupsV2ParamsHTTPMethodPoll AttackLayer7TimeseriesGroupsV2ParamsHTTPMethod = "POLL"
const AttackLayer7TimeseriesGroupsV2ParamsHTTPMethodProppatch AttackLayer7TimeseriesGroupsV2ParamsHTTPMethod = "PROPPATCH"
const AttackLayer7TimeseriesGroupsV2ParamsHTTPMethodReport AttackLayer7TimeseriesGroupsV2ParamsHTTPMethod = "REPORT"
const AttackLayer7TimeseriesGroupsV2ParamsHTTPMethodSearch AttackLayer7TimeseriesGroupsV2ParamsHTTPMethod = "SEARCH"
const AttackLayer7TimeseriesGroupsV2ParamsHTTPMethodSubscribe AttackLayer7TimeseriesGroupsV2ParamsHTTPMethod = "SUBSCRIBE"
const AttackLayer7TimeseriesGroupsV2ParamsHTTPMethodTrace AttackLayer7TimeseriesGroupsV2ParamsHTTPMethod = "TRACE"
const AttackLayer7TimeseriesGroupsV2ParamsHTTPMethodUncheckout AttackLayer7TimeseriesGroupsV2ParamsHTTPMethod = "UNCHECKOUT"
const AttackLayer7TimeseriesGroupsV2ParamsHTTPMethodUnlock AttackLayer7TimeseriesGroupsV2ParamsHTTPMethod = "UNLOCK"
const AttackLayer7TimeseriesGroupsV2ParamsHTTPMethodUnsubscribe AttackLayer7TimeseriesGroupsV2ParamsHTTPMethod = "UNSUBSCRIBE"
const AttackLayer7TimeseriesGroupsV2ParamsHTTPMethodUpdate AttackLayer7TimeseriesGroupsV2ParamsHTTPMethod = "UPDATE"
const AttackLayer7TimeseriesGroupsV2ParamsHTTPMethodVersioncontrol AttackLayer7TimeseriesGroupsV2ParamsHTTPMethod = "VERSIONCONTROL"
const AttackLayer7TimeseriesGroupsV2ParamsHTTPMethodBaselinecontrol AttackLayer7TimeseriesGroupsV2ParamsHTTPMethod = "BASELINECONTROL"
const AttackLayer7TimeseriesGroupsV2ParamsHTTPMethodXmsenumatts AttackLayer7TimeseriesGroupsV2ParamsHTTPMethod = "XMSENUMATTS"
const AttackLayer7TimeseriesGroupsV2ParamsHTTPMethodRpcOutData AttackLayer7TimeseriesGroupsV2ParamsHTTPMethod = "RPC_OUT_DATA"
const AttackLayer7TimeseriesGroupsV2ParamsHTTPMethodRpcInData AttackLayer7TimeseriesGroupsV2ParamsHTTPMethod = "RPC_IN_DATA"
const AttackLayer7TimeseriesGroupsV2ParamsHTTPMethodJson AttackLayer7TimeseriesGroupsV2ParamsHTTPMethod = "JSON"
const AttackLayer7TimeseriesGroupsV2ParamsHTTPMethodCook AttackLayer7TimeseriesGroupsV2ParamsHTTPMethod = "COOK"
const AttackLayer7TimeseriesGroupsV2ParamsHTTPMethodTrack AttackLayer7TimeseriesGroupsV2ParamsHTTPMethod = "TRACK"
HTTPVersion param.Field[[]AttackLayer7TimeseriesGroupsV2ParamsHTTPVersion]Optional

Filters results by HTTP version.

const AttackLayer7TimeseriesGroupsV2ParamsHTTPVersionHttPv1 AttackLayer7TimeseriesGroupsV2ParamsHTTPVersion = "HTTPv1"
const AttackLayer7TimeseriesGroupsV2ParamsHTTPVersionHttPv2 AttackLayer7TimeseriesGroupsV2ParamsHTTPVersion = "HTTPv2"
const AttackLayer7TimeseriesGroupsV2ParamsHTTPVersionHttPv3 AttackLayer7TimeseriesGroupsV2ParamsHTTPVersion = "HTTPv3"
IPVersion param.Field[[]AttackLayer7TimeseriesGroupsV2ParamsIPVersion]Optional

Filters results by IP version (Ipv4 vs. IPv6).

const AttackLayer7TimeseriesGroupsV2ParamsIPVersionIPv4 AttackLayer7TimeseriesGroupsV2ParamsIPVersion = "IPv4"
const AttackLayer7TimeseriesGroupsV2ParamsIPVersionIPv6 AttackLayer7TimeseriesGroupsV2ParamsIPVersion = "IPv6"
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.

MitigationProduct param.Field[[]AttackLayer7TimeseriesGroupsV2ParamsMitigationProduct]Optional

Filters the results by layer 7 mitigation product.

const AttackLayer7TimeseriesGroupsV2ParamsMitigationProductDDoS AttackLayer7TimeseriesGroupsV2ParamsMitigationProduct = "DDOS"
const AttackLayer7TimeseriesGroupsV2ParamsMitigationProductWAF AttackLayer7TimeseriesGroupsV2ParamsMitigationProduct = "WAF"
const AttackLayer7TimeseriesGroupsV2ParamsMitigationProductBotManagement AttackLayer7TimeseriesGroupsV2ParamsMitigationProduct = "BOT_MANAGEMENT"
const AttackLayer7TimeseriesGroupsV2ParamsMitigationProductAccessRules AttackLayer7TimeseriesGroupsV2ParamsMitigationProduct = "ACCESS_RULES"
const AttackLayer7TimeseriesGroupsV2ParamsMitigationProductIPReputation AttackLayer7TimeseriesGroupsV2ParamsMitigationProduct = "IP_REPUTATION"
const AttackLayer7TimeseriesGroupsV2ParamsMitigationProductAPIShield AttackLayer7TimeseriesGroupsV2ParamsMitigationProduct = "API_SHIELD"
const AttackLayer7TimeseriesGroupsV2ParamsMitigationProductDataLossPrevention AttackLayer7TimeseriesGroupsV2ParamsMitigationProduct = "DATA_LOSS_PREVENTION"
Name param.Field[[]string]Optional

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

Normalization param.Field[AttackLayer7TimeseriesGroupsV2ParamsNormalization]Optional

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

const AttackLayer7TimeseriesGroupsV2ParamsNormalizationPercentage AttackLayer7TimeseriesGroupsV2ParamsNormalization = "PERCENTAGE"
const AttackLayer7TimeseriesGroupsV2ParamsNormalizationMin0Max AttackLayer7TimeseriesGroupsV2ParamsNormalization = "MIN0_MAX"
ReturnsExpand Collapse
type AttackLayer7TimeseriesGroupsV2Response struct{…}
Meta AttackLayer7TimeseriesGroupsV2ResponseMeta

Metadata for the results.

AggInterval AttackLayer7TimeseriesGroupsV2ResponseMetaAggInterval

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

One of the following:
const AttackLayer7TimeseriesGroupsV2ResponseMetaAggIntervalFifteenMinutes AttackLayer7TimeseriesGroupsV2ResponseMetaAggInterval = "FIFTEEN_MINUTES"
const AttackLayer7TimeseriesGroupsV2ResponseMetaAggIntervalOneHour AttackLayer7TimeseriesGroupsV2ResponseMetaAggInterval = "ONE_HOUR"
const AttackLayer7TimeseriesGroupsV2ResponseMetaAggIntervalOneDay AttackLayer7TimeseriesGroupsV2ResponseMetaAggInterval = "ONE_DAY"
const AttackLayer7TimeseriesGroupsV2ResponseMetaAggIntervalOneWeek AttackLayer7TimeseriesGroupsV2ResponseMetaAggInterval = "ONE_WEEK"
const AttackLayer7TimeseriesGroupsV2ResponseMetaAggIntervalOneMonth AttackLayer7TimeseriesGroupsV2ResponseMetaAggInterval = "ONE_MONTH"
ConfidenceInfo AttackLayer7TimeseriesGroupsV2ResponseMetaConfidenceInfo
Annotations []AttackLayer7TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotation
DataSource AttackLayer7TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotationsDataSource

Data source for annotations.

One of the following:
const AttackLayer7TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotationsDataSourceAll AttackLayer7TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotationsDataSource = "ALL"
const AttackLayer7TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotationsDataSourceAIBots AttackLayer7TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotationsDataSource = "AI_BOTS"
const AttackLayer7TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotationsDataSourceAIGateway AttackLayer7TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotationsDataSource = "AI_GATEWAY"
const AttackLayer7TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotationsDataSourceBGP AttackLayer7TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotationsDataSource = "BGP"
const AttackLayer7TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotationsDataSourceBots AttackLayer7TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotationsDataSource = "BOTS"
const AttackLayer7TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotationsDataSourceConnectionAnomaly AttackLayer7TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotationsDataSource = "CONNECTION_ANOMALY"
const AttackLayer7TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotationsDataSourceCT AttackLayer7TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotationsDataSource = "CT"
const AttackLayer7TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotationsDataSourceDNS AttackLayer7TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotationsDataSource = "DNS"
const AttackLayer7TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotationsDataSourceDNSMagnitude AttackLayer7TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotationsDataSource = "DNS_MAGNITUDE"
const AttackLayer7TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotationsDataSourceDNSAS112 AttackLayer7TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotationsDataSource = "DNS_AS112"
const AttackLayer7TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotationsDataSourceDos AttackLayer7TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotationsDataSource = "DOS"
const AttackLayer7TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotationsDataSourceEmailRouting AttackLayer7TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotationsDataSource = "EMAIL_ROUTING"
const AttackLayer7TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotationsDataSourceEmailSecurity AttackLayer7TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotationsDataSource = "EMAIL_SECURITY"
const AttackLayer7TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotationsDataSourceFw AttackLayer7TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotationsDataSource = "FW"
const AttackLayer7TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotationsDataSourceFwPg AttackLayer7TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotationsDataSource = "FW_PG"
const AttackLayer7TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotationsDataSourceHTTP AttackLayer7TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotationsDataSource = "HTTP"
const AttackLayer7TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotationsDataSourceHTTPControl AttackLayer7TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotationsDataSource = "HTTP_CONTROL"
const AttackLayer7TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotationsDataSourceHTTPCrawlerReferer AttackLayer7TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotationsDataSource = "HTTP_CRAWLER_REFERER"
const AttackLayer7TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotationsDataSourceHTTPOrigins AttackLayer7TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotationsDataSource = "HTTP_ORIGINS"
const AttackLayer7TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotationsDataSourceIQI AttackLayer7TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotationsDataSource = "IQI"
const AttackLayer7TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotationsDataSourceLeakedCredentials AttackLayer7TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotationsDataSource = "LEAKED_CREDENTIALS"
const AttackLayer7TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotationsDataSourceNet AttackLayer7TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotationsDataSource = "NET"
const AttackLayer7TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotationsDataSourceRobotsTXT AttackLayer7TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotationsDataSource = "ROBOTS_TXT"
const AttackLayer7TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotationsDataSourceSpeed AttackLayer7TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotationsDataSource = "SPEED"
const AttackLayer7TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotationsDataSourceWorkersAI AttackLayer7TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotationsDataSource = "WORKERS_AI"
Description string
EndDate Time
formatdate-time
EventType AttackLayer7TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotationsEventType

Event type for annotations.

One of the following:
const AttackLayer7TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotationsEventTypeEvent AttackLayer7TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotationsEventType = "EVENT"
const AttackLayer7TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotationsEventTypeGeneral AttackLayer7TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotationsEventType = "GENERAL"
const AttackLayer7TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotationsEventTypeOutage AttackLayer7TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotationsEventType = "OUTAGE"
const AttackLayer7TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotationsEventTypePartialProjection AttackLayer7TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotationsEventType = "PARTIAL_PROJECTION"
const AttackLayer7TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotationsEventTypePipeline AttackLayer7TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotationsEventType = "PIPELINE"
const AttackLayer7TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotationsEventTypeTrafficAnomaly AttackLayer7TimeseriesGroupsV2ResponseMetaConfidenceInfoAnnotationsEventType = "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 []AttackLayer7TimeseriesGroupsV2ResponseMetaDateRange
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 AttackLayer7TimeseriesGroupsV2ResponseMetaNormalization

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

One of the following:
const AttackLayer7TimeseriesGroupsV2ResponseMetaNormalizationPercentage AttackLayer7TimeseriesGroupsV2ResponseMetaNormalization = "PERCENTAGE"
const AttackLayer7TimeseriesGroupsV2ResponseMetaNormalizationMin0Max AttackLayer7TimeseriesGroupsV2ResponseMetaNormalization = "MIN0_MAX"
const AttackLayer7TimeseriesGroupsV2ResponseMetaNormalizationMinMax AttackLayer7TimeseriesGroupsV2ResponseMetaNormalization = "MIN_MAX"
const AttackLayer7TimeseriesGroupsV2ResponseMetaNormalizationRawValues AttackLayer7TimeseriesGroupsV2ResponseMetaNormalization = "RAW_VALUES"
const AttackLayer7TimeseriesGroupsV2ResponseMetaNormalizationPercentageChange AttackLayer7TimeseriesGroupsV2ResponseMetaNormalization = "PERCENTAGE_CHANGE"
const AttackLayer7TimeseriesGroupsV2ResponseMetaNormalizationRollingAverage AttackLayer7TimeseriesGroupsV2ResponseMetaNormalization = "ROLLING_AVERAGE"
const AttackLayer7TimeseriesGroupsV2ResponseMetaNormalizationOverlappedPercentage AttackLayer7TimeseriesGroupsV2ResponseMetaNormalization = "OVERLAPPED_PERCENTAGE"
const AttackLayer7TimeseriesGroupsV2ResponseMetaNormalizationRatio AttackLayer7TimeseriesGroupsV2ResponseMetaNormalization = "RATIO"
Units []AttackLayer7TimeseriesGroupsV2ResponseMetaUnit

Measurement units for the results.

Name string
Value string
Serie0 AttackLayer7TimeseriesGroupsV2ResponseSerie0
Timestamps []Time

Get layer 7 attacks time series grouped by dimension

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.Attacks.Layer7.TimeseriesGroupsV2(
    context.TODO(),
    radar.AttackLayer7TimeseriesGroupsV2ParamsDimensionHTTPMethod,
    radar.AttackLayer7TimeseriesGroupsV2Params{

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