models

package
v1.19.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 20, 2020 License: Apache-2.0 Imports: 0 Imported by: 11 modules, 10 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AttackLog added in v1.8.0

type AttackLog struct {

	/* 公网 IP 地址 (Optional) */
	Ip string `json:"ip"`

	/* 公网 IP 类型或绑定资源类型:
	 0: 未知类型,
	 1: 弹性公网 IP(IP 为弹性公网 IP, 绑定资源类型未知),
	 10: 弹性公网 IP(IP 为弹性公网 IP, 但未绑定资源),
	 11: 云主机,
	 12: 负载均衡,
	 13: 原生容器实例,
	 14: 原生容器 Pod,
	 2: 云物理服务器,
	(Optional) */
	ResourceType int `json:"resourceType"`

	/* 攻击记录 ID (Optional) */
	AttackLogId string `json:"attackLogId"`

	/* 攻击开始时间, UTC 时间, 格式: yyyy-MM-dd'T'HH:mm:ssZ (Optional) */
	StartTime string `json:"startTime"`

	/* 攻击结束时间, UTC 时间, 格式: yyyy-MM-dd'T'HH:mm:ssZ (Optional) */
	EndTime string `json:"endTime"`

	/* 触发原因:
	0: 未知,
	1: 四层,
	2: 七层,
	3: 四层和七层
	 (Optional) */
	Cause int `json:"cause"`

	/* 状态, 0: 清洗完成, 1: 清洗中, 2: 黑洞中 (Optional) */
	Status int `json:"status"`

	/* 是否黑洞 (Optional) */
	BlackHole bool `json:"blackHole"`

	/* 攻击流量峰值 (Optional) */
	Peak int `json:"peak"`

	/* 攻击流量峰值单位 (Optional) */
	Unit string `json:"unit"`

	/* 攻击类型 (Optional) */
	AttackType []string `json:"attackType"`
}

type AttackTypeCount added in v1.8.0

type AttackTypeCount struct {

	/* 攻击类型 (Optional) */
	Type string `json:"type"`

	/* 攻击次数 (Optional) */
	Count int `json:"count"`
}

type CleanThresholdSpec

type CleanThresholdSpec struct {

	/* 触发清洗的流量速率, 单位 bps. 取值范围由 <a href="http://docs.jdcloud.com/anti-ddos-basic/api/describeipcleanthresholdrange">describeIpCleanThresholdRange</a> 接口查询可知
	 */
	CleanThresholdBps int64 `json:"cleanThresholdBps"`

	/* 触发清洗的报文流量速率, 单位 bps. 取值范围由 <a href="http://docs.jdcloud.com/anti-ddos-basic/api/describeipcleanthresholdrange">describeIpCleanThresholdRange</a> 接口查询可知
	 */
	CleanThresholdPps int64 `json:"cleanThresholdPps"`
}

type IpCleanThresholdRange added in v1.8.0

type IpCleanThresholdRange struct {

	/* 清洗流量可设置最大值 (Optional) */
	IpCleanThresholdBpsMax int64 `json:"ipCleanThresholdBpsMax"`

	/* 清洗流量可设置最小值 (Optional) */
	IpCleanThresholdBpsMin int64 `json:"ipCleanThresholdBpsMin"`

	/* 清洗报文流量可设置最大值 (Optional) */
	IpCleanThresholdPpsMax int64 `json:"ipCleanThresholdPpsMax"`

	/* 清洗报文流量可设置最小值 (Optional) */
	IpCleanThresholdPpsMin int64 `json:"ipCleanThresholdPpsMin"`
}

type IpCleanThresholdSpec added in v1.8.0

type IpCleanThresholdSpec struct {

	/* 基础防护已防护公网 IP, 支持 ipv4 和 ipv6.
	- 使用 <a href="http://docs.jdcloud.com/anti-ddos-basic/api/describeelasticipresources">describeElasticIpResources</a> 接口查询基础防护已防护的私有网络弹性公网 IP
	- 使用 <a href="http://docs.jdcloud.com/anti-ddos-basic/api/describecpsipresources">describeCpsIpResources</a> 接口查询基础防护已防护的云物理服务器公网IP 和 弹性公网 IP
	*/
	Ip string `json:"ip"`

	/* 触发清洗的流量速率, 单位 bps. 取值范围由 <a href="http://docs.jdcloud.com/anti-ddos-basic/api/describeipcleanthresholdrange">describeIpCleanThresholdRange</a> 接口查询可知
	 */
	CleanThresholdBps int64 `json:"cleanThresholdBps"`

	/* 触发清洗的报文流量速率, 单位 pps. 取值范围由 <a href="http://docs.jdcloud.com/anti-ddos-basic/api/describeipcleanthresholdrange">describeIpCleanThresholdRange</a> 接口查询可知
	 */
	CleanThresholdPps int64 `json:"cleanThresholdPps"`
}

type IpResource

type IpResource struct {

	/* 公网 IP 所在区域编码 (Optional) */
	Region string `json:"region"`

	/* 公网 IP 类型或绑定资源类型:
	 0: 未知类型,
	 1: 弹性公网 IP(IP 为弹性公网 IP, 绑定资源类型未知),
	 10: 弹性公网 IP(IP 为弹性公网 IP, 但未绑定资源),
	 11: 云主机,
	 12: 负载均衡,
	 13: 原生容器实例,
	 14: 原生容器 Pod,
	 2: 云物理服务器,
	(Optional) */
	ResourceType int `json:"resourceType"`

	/* 公网 IP 地址 (Optional) */
	Ip string `json:"ip"`

	/* 带宽上限, 单位 Mbps (Optional) */
	Bandwidth int64 `json:"bandwidth"`

	/* 每秒请求流量 (Optional) */
	CleanThresholdBps int64 `json:"cleanThresholdBps"`

	/* 每秒报文请求数 (Optional) */
	CleanThresholdPps int64 `json:"cleanThresholdPps"`

	/* 黑洞阈值 (Optional) */
	BlackHoleThreshold int64 `json:"blackHoleThreshold"`

	/* 绑定防护包 ID, 为空字符串时表示未绑定防护包 (Optional) */
	InstanceId string `json:"instanceId"`

	/* 绑定防护包名称, 为空字符串时表示未绑定防护包 (Optional) */
	InstanceName string `json:"instanceName"`

	/* 套餐类型, 1: 独享 IP, 2: 共享 IP, 为 0 时未绑定防护包 (Optional) */
	InstanceType int `json:"instanceType"`

	/* 安全状态, 0: 安全, 1: 清洗, 2: 黑洞 (Optional) */
	SafeStatus int `json:"safeStatus"`
}

type IpResourceFlow

type IpResourceFlow struct {

	/* UTC 时间, 格式: yyyy-MM-dd'T'HH:mm:ssZ (Optional) */
	Time []string `json:"time"`

	/* 防护后流量 (Optional) */
	PostProtect []float64 `json:"postProtect"`

	/* 防护前流量 (Optional) */
	PreProtect []float64 `json:"preProtect"`

	/* 流量单位 (Optional) */
	Unit string `json:"unit"`
}

type IpResourceInfo

type IpResourceInfo struct {

	/* 公网 IP 地址 (Optional) */
	Ip string `json:"ip"`

	/* 安全状态, 0: 安全, 1: 清洗, 2: 黑洞 (Optional) */
	SafeStatus int `json:"safeStatus"`

	/* 公网 IP 所属地域编码 (Optional) */
	Region string `json:"region"`

	/* 黑洞阈值,单位 bps (Optional) */
	BlackHoleThreshold int64 `json:"blackHoleThreshold"`

	/* 触发清洗的流量速率,单位 bps (Optional) */
	CleanThresholdBps int64 `json:"cleanThresholdBps"`

	/* 触发清洗的包速率,单位 pps (Optional) */
	CleanThresholdPps int64 `json:"cleanThresholdPps"`
}

type IpResourceProtectInfo

type IpResourceProtectInfo struct {

	/* 攻击开始时间 (Optional) */
	StartTime string `json:"startTime"`

	/* 攻击结束时间 (Optional) */
	EndTime string `json:"endTime"`

	/* 安全状态, 0: 安全, 1: 清洗, 2: 黑洞 (Optional) */
	Status int `json:"status"`

	/* 触发原因,0->未知 1->四层 2->七层 3->四和7层 (Optional) */
	Cause int `json:"cause"`
}

type IpSafetyInfo added in v1.8.0

type IpSafetyInfo struct {

	/* 公网 IP 地址 (Optional) */
	Ip string `json:"ip"`

	/* 安全状态, 0->安全, 1->清洗, 2->黑洞 (Optional) */
	SafetyStatus int `json:"safetyStatus"`

	/* 地域编码 (Optional) */
	Region string `json:"region"`

	/* 黑洞阈值, 单位 bps (Optional) */
	BlackHoleThreshold int64 `json:"blackHoleThreshold"`

	/* 触发清洗的流量速率, 单位 bps (Optional) */
	CleanThresholdBps int64 `json:"cleanThresholdBps"`

	/* 触发清洗的包速率, 单位 pps (Optional) */
	CleanThresholdPps int64 `json:"cleanThresholdPps"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL