Skip to content
Start here

Get top industries targeted by layer 3 attacks

client.Radar.Attacks.Layer3.Top.Industry(ctx, query) (*AttackLayer3TopIndustryResponse, error)
GET/radar/attacks/layer3/top/industry

This endpoint is deprecated. To continue getting this data, switch to the summary by industry endpoint.

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 AttackLayer3TopIndustryParams
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[AttackLayer3TopIndustryParamsFormat]Optional

Format in which results will be returned.

const AttackLayer3TopIndustryParamsFormatJson AttackLayer3TopIndustryParamsFormat = "JSON"
const AttackLayer3TopIndustryParamsFormatCsv AttackLayer3TopIndustryParamsFormat = "CSV"
IPVersion param.Field[[]AttackLayer3TopIndustryParamsIPVersion]Optional

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

const AttackLayer3TopIndustryParamsIPVersionIPv4 AttackLayer3TopIndustryParamsIPVersion = "IPv4"
const AttackLayer3TopIndustryParamsIPVersionIPv6 AttackLayer3TopIndustryParamsIPVersion = "IPv6"
Limit param.Field[int64]Optional

Limits the number of objects returned in the response.

exclusiveMinimum
minimum0
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[[]AttackLayer3TopIndustryParamsProtocol]Optional

Filters the results by layer 3/4 protocol.

const AttackLayer3TopIndustryParamsProtocolUdp AttackLayer3TopIndustryParamsProtocol = "UDP"
const AttackLayer3TopIndustryParamsProtocolTCP AttackLayer3TopIndustryParamsProtocol = "TCP"
const AttackLayer3TopIndustryParamsProtocolIcmp AttackLayer3TopIndustryParamsProtocol = "ICMP"
const AttackLayer3TopIndustryParamsProtocolGRE AttackLayer3TopIndustryParamsProtocol = "GRE"
ReturnsExpand Collapse
type AttackLayer3TopIndustryResponse struct{…}
Meta AttackLayer3TopIndustryResponseMeta

Metadata for the results.

ConfidenceInfo AttackLayer3TopIndustryResponseMetaConfidenceInfo
Annotations []AttackLayer3TopIndustryResponseMetaConfidenceInfoAnnotation
DataSource AttackLayer3TopIndustryResponseMetaConfidenceInfoAnnotationsDataSource

Data source for annotations.

One of the following:
const AttackLayer3TopIndustryResponseMetaConfidenceInfoAnnotationsDataSourceAll AttackLayer3TopIndustryResponseMetaConfidenceInfoAnnotationsDataSource = "ALL"
const AttackLayer3TopIndustryResponseMetaConfidenceInfoAnnotationsDataSourceAIBots AttackLayer3TopIndustryResponseMetaConfidenceInfoAnnotationsDataSource = "AI_BOTS"
const AttackLayer3TopIndustryResponseMetaConfidenceInfoAnnotationsDataSourceAIGateway AttackLayer3TopIndustryResponseMetaConfidenceInfoAnnotationsDataSource = "AI_GATEWAY"
const AttackLayer3TopIndustryResponseMetaConfidenceInfoAnnotationsDataSourceBGP AttackLayer3TopIndustryResponseMetaConfidenceInfoAnnotationsDataSource = "BGP"
const AttackLayer3TopIndustryResponseMetaConfidenceInfoAnnotationsDataSourceBots AttackLayer3TopIndustryResponseMetaConfidenceInfoAnnotationsDataSource = "BOTS"
const AttackLayer3TopIndustryResponseMetaConfidenceInfoAnnotationsDataSourceConnectionAnomaly AttackLayer3TopIndustryResponseMetaConfidenceInfoAnnotationsDataSource = "CONNECTION_ANOMALY"
const AttackLayer3TopIndustryResponseMetaConfidenceInfoAnnotationsDataSourceCT AttackLayer3TopIndustryResponseMetaConfidenceInfoAnnotationsDataSource = "CT"
const AttackLayer3TopIndustryResponseMetaConfidenceInfoAnnotationsDataSourceDNS AttackLayer3TopIndustryResponseMetaConfidenceInfoAnnotationsDataSource = "DNS"
const AttackLayer3TopIndustryResponseMetaConfidenceInfoAnnotationsDataSourceDNSMagnitude AttackLayer3TopIndustryResponseMetaConfidenceInfoAnnotationsDataSource = "DNS_MAGNITUDE"
const AttackLayer3TopIndustryResponseMetaConfidenceInfoAnnotationsDataSourceDNSAS112 AttackLayer3TopIndustryResponseMetaConfidenceInfoAnnotationsDataSource = "DNS_AS112"
const AttackLayer3TopIndustryResponseMetaConfidenceInfoAnnotationsDataSourceDos AttackLayer3TopIndustryResponseMetaConfidenceInfoAnnotationsDataSource = "DOS"
const AttackLayer3TopIndustryResponseMetaConfidenceInfoAnnotationsDataSourceEmailRouting AttackLayer3TopIndustryResponseMetaConfidenceInfoAnnotationsDataSource = "EMAIL_ROUTING"
const AttackLayer3TopIndustryResponseMetaConfidenceInfoAnnotationsDataSourceEmailSecurity AttackLayer3TopIndustryResponseMetaConfidenceInfoAnnotationsDataSource = "EMAIL_SECURITY"
const AttackLayer3TopIndustryResponseMetaConfidenceInfoAnnotationsDataSourceFw AttackLayer3TopIndustryResponseMetaConfidenceInfoAnnotationsDataSource = "FW"
const AttackLayer3TopIndustryResponseMetaConfidenceInfoAnnotationsDataSourceFwPg AttackLayer3TopIndustryResponseMetaConfidenceInfoAnnotationsDataSource = "FW_PG"
const AttackLayer3TopIndustryResponseMetaConfidenceInfoAnnotationsDataSourceHTTP AttackLayer3TopIndustryResponseMetaConfidenceInfoAnnotationsDataSource = "HTTP"
const AttackLayer3TopIndustryResponseMetaConfidenceInfoAnnotationsDataSourceHTTPControl AttackLayer3TopIndustryResponseMetaConfidenceInfoAnnotationsDataSource = "HTTP_CONTROL"
const AttackLayer3TopIndustryResponseMetaConfidenceInfoAnnotationsDataSourceHTTPCrawlerReferer AttackLayer3TopIndustryResponseMetaConfidenceInfoAnnotationsDataSource = "HTTP_CRAWLER_REFERER"
const AttackLayer3TopIndustryResponseMetaConfidenceInfoAnnotationsDataSourceHTTPOrigins AttackLayer3TopIndustryResponseMetaConfidenceInfoAnnotationsDataSource = "HTTP_ORIGINS"
const AttackLayer3TopIndustryResponseMetaConfidenceInfoAnnotationsDataSourceIQI AttackLayer3TopIndustryResponseMetaConfidenceInfoAnnotationsDataSource = "IQI"
const AttackLayer3TopIndustryResponseMetaConfidenceInfoAnnotationsDataSourceLeakedCredentials AttackLayer3TopIndustryResponseMetaConfidenceInfoAnnotationsDataSource = "LEAKED_CREDENTIALS"
const AttackLayer3TopIndustryResponseMetaConfidenceInfoAnnotationsDataSourceNet AttackLayer3TopIndustryResponseMetaConfidenceInfoAnnotationsDataSource = "NET"
const AttackLayer3TopIndustryResponseMetaConfidenceInfoAnnotationsDataSourceRobotsTXT AttackLayer3TopIndustryResponseMetaConfidenceInfoAnnotationsDataSource = "ROBOTS_TXT"
const AttackLayer3TopIndustryResponseMetaConfidenceInfoAnnotationsDataSourceSpeed AttackLayer3TopIndustryResponseMetaConfidenceInfoAnnotationsDataSource = "SPEED"
const AttackLayer3TopIndustryResponseMetaConfidenceInfoAnnotationsDataSourceWorkersAI AttackLayer3TopIndustryResponseMetaConfidenceInfoAnnotationsDataSource = "WORKERS_AI"
Description string
EndDate Time
formatdate-time
EventType AttackLayer3TopIndustryResponseMetaConfidenceInfoAnnotationsEventType

Event type for annotations.

One of the following:
const AttackLayer3TopIndustryResponseMetaConfidenceInfoAnnotationsEventTypeEvent AttackLayer3TopIndustryResponseMetaConfidenceInfoAnnotationsEventType = "EVENT"
const AttackLayer3TopIndustryResponseMetaConfidenceInfoAnnotationsEventTypeGeneral AttackLayer3TopIndustryResponseMetaConfidenceInfoAnnotationsEventType = "GENERAL"
const AttackLayer3TopIndustryResponseMetaConfidenceInfoAnnotationsEventTypeOutage AttackLayer3TopIndustryResponseMetaConfidenceInfoAnnotationsEventType = "OUTAGE"
const AttackLayer3TopIndustryResponseMetaConfidenceInfoAnnotationsEventTypePartialProjection AttackLayer3TopIndustryResponseMetaConfidenceInfoAnnotationsEventType = "PARTIAL_PROJECTION"
const AttackLayer3TopIndustryResponseMetaConfidenceInfoAnnotationsEventTypePipeline AttackLayer3TopIndustryResponseMetaConfidenceInfoAnnotationsEventType = "PIPELINE"
const AttackLayer3TopIndustryResponseMetaConfidenceInfoAnnotationsEventTypeTrafficAnomaly AttackLayer3TopIndustryResponseMetaConfidenceInfoAnnotationsEventType = "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 []AttackLayer3TopIndustryResponseMetaDateRange
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 AttackLayer3TopIndustryResponseMetaNormalization

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

One of the following:
const AttackLayer3TopIndustryResponseMetaNormalizationPercentage AttackLayer3TopIndustryResponseMetaNormalization = "PERCENTAGE"
const AttackLayer3TopIndustryResponseMetaNormalizationMin0Max AttackLayer3TopIndustryResponseMetaNormalization = "MIN0_MAX"
const AttackLayer3TopIndustryResponseMetaNormalizationMinMax AttackLayer3TopIndustryResponseMetaNormalization = "MIN_MAX"
const AttackLayer3TopIndustryResponseMetaNormalizationRawValues AttackLayer3TopIndustryResponseMetaNormalization = "RAW_VALUES"
const AttackLayer3TopIndustryResponseMetaNormalizationPercentageChange AttackLayer3TopIndustryResponseMetaNormalization = "PERCENTAGE_CHANGE"
const AttackLayer3TopIndustryResponseMetaNormalizationRollingAverage AttackLayer3TopIndustryResponseMetaNormalization = "ROLLING_AVERAGE"
const AttackLayer3TopIndustryResponseMetaNormalizationOverlappedPercentage AttackLayer3TopIndustryResponseMetaNormalization = "OVERLAPPED_PERCENTAGE"
const AttackLayer3TopIndustryResponseMetaNormalizationRatio AttackLayer3TopIndustryResponseMetaNormalization = "RATIO"
Units []AttackLayer3TopIndustryResponseMetaUnit

Measurement units for the results.

Name string
Value string
Top0 []AttackLayer3TopIndustryResponseTop0
Name string
Value string

Get top industries targeted by layer 3 attacks

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.Layer3.Top.Industry(context.TODO(), radar.AttackLayer3TopIndustryParams{

  })
  if err != nil {
    panic(err.Error())
  }
  fmt.Printf("%+v\n", response.Meta)
}
{
  "result": {
    "meta": {
      "confidenceInfo": {
        "annotations": [
          {
            "dataSource": "ALL",
            "description": "Cable cut in Tonga",
            "endDate": "2019-12-27T18:11:19.117Z",
            "eventType": "EVENT",
            "isInstantaneous": true,
            "linkedUrl": "https://example.com",
            "startDate": "2019-12-27T18:11:19.117Z",
            "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": [
      {
        "name": "Computer Software",
        "value": "65"
      }
    ]
  },
  "success": true
}
Returns Examples
{
  "result": {
    "meta": {
      "confidenceInfo": {
        "annotations": [
          {
            "dataSource": "ALL",
            "description": "Cable cut in Tonga",
            "endDate": "2019-12-27T18:11:19.117Z",
            "eventType": "EVENT",
            "isInstantaneous": true,
            "linkedUrl": "https://example.com",
            "startDate": "2019-12-27T18:11:19.117Z",
            "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": [
      {
        "name": "Computer Software",
        "value": "65"
      }
    ]
  },
  "success": true
}