models

package
v1.22.0 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2020 License: Apache-2.0 Imports: 0 Imported by: ? modules, 0 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

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"`

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

	/* 攻击结束时间 (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 float64 `json:"peak"`

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

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

type AttackTypeCount

type AttackTypeCount struct {

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

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

type Country

type Country struct {

	/* 国家或地区名称 (Optional) */
	Label string `json:"label"`

	/* 国家或地区编码 (Optional) */
	Value string `json:"value"`

	/*  (Optional) */
	Children []Country `json:"children"`
}

type CreateInstanceSpec

type CreateInstanceSpec struct {

	/* 防护包实例名称, 新购防护包时必传
	长度限制为 1-80 个字符, 只允许包含中文, 字母, 数字, -, ., /, _
	*/
	Name string `json:"name"`

	/* 可防护 IP 数量, 1, 5, 10, 50, 100, 1000(不限)  */
	IpNum int `json:"ipNum"`

	/* 保底带宽: 10, 20, 30, 50, 单位: Gbps  */
	BpGbps int `json:"bpGbps"`

	/* 弹性带宽: 0, 10, 20, 单位: Gbps  */
	EpGbps int `json:"epGbps"`

	/* 购买防护包时长, 新购防护包时必传
	- timeUnit 为 3 时, 可取值 1-9
	- timeUnit 为 4 时, 可取值 1-3
	*/
	TimeSpan int `json:"timeSpan"`

	/* 购买时长类型, 新购防护包时必传
	- 3: 月
	- 4: 年  */
	TimeUnit int `json:"timeUnit"`
}

type ExtraOperationSpec

type ExtraOperationSpec struct {

	/* 操作类型 1: 购买成功后自动导入 ip, 需要传 ip  */
	OperationType int `json:"operationType"`

	/* 支持弹性公网 ip 和云物理机公网 ip (Optional) */
	Ip string `json:"ip"`
}

type GeoBlack

type GeoBlack struct {

	/* geo 拦截地域 (Optional) */
	Label string `json:"label"`

	/* geo 拦截地域编码 (Optional) */
	Value string `json:"value"`
}

type Instance

type Instance struct {

	/* 防护包实例 Id (Optional) */
	Id string `json:"id"`

	/* 防护包实例名称 (Optional) */
	Name string `json:"name"`

	/* 防护包实例地域 (Optional) */
	Region string `json:"region"`

	/* 套餐类型, 1: 独享 IP, 2: 共享 IP (Optional) */
	Type int `json:"type"`

	/* 可防护 IP 个数 (Optional) */
	IpCount int `json:"ipCount"`

	/* 保底带宽, 单位 Gbps (Optional) */
	BasicBandwidth int `json:"basicBandwidth"`

	/* 弹性带宽, 单位 Gbps (Optional) */
	ElasticBandwidth int `json:"elasticBandwidth"`

	/* 实例过期时间 (Optional) */
	ExpireTime string `json:"expireTime"`

	/* 实例创建时间 (Optional) */
	CreateTime string `json:"createTime"`

	/* 防护对象 (Optional) */
	ProtectedObjects []ProtectedObject `json:"protectedObjects"`

	/* 是否为试用防护包 (Optional) */
	OnTrial bool `json:"onTrial"`

	/* 资源 Id (Optional) */
	ResourceId string `json:"resourceId"`
}

type IpResource

type IpResource struct {

	/* 公网 IP 所在区域, cn-north-1: 华北-北京, cn-east-1: 华东-宿迁, cn-east-2: 华东-上海, cn-south-1: 华南-广州 (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 int `json:"bandwidth"`

	/* 请求流量清洗触发值, 单位 bps/s (Optional) */
	CleanThresholdBps int64 `json:"cleanThresholdBps"`

	/* 报文请求清洗触发值, 单位 pps/s (Optional) */
	CleanThresholdPps int64 `json:"cleanThresholdPps"`

	/* 黑洞阈值 (Optional) */
	BalckHoleThreshold int64 `json:"balckHoleThreshold"`

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

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

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

type IpResourceFlow

type IpResourceFlow struct {

	/* 时间, 格式: 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"`

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

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

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

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

type ModifyInstanceNameSpec

type ModifyInstanceNameSpec struct {

	/* 新的实例名称, 长度限制为 1-80 个字符, 只允许包含中文, 字母, 数字, -, ., /, _  */
	Name string `json:"name"`
}

type ModifyInstanceSpec

type ModifyInstanceSpec struct {

	/* 可防护 IP 数量, 1, 5, 10, 50, 100, 1000(不限), 可升级, 不可降级  */
	IpNum int `json:"ipNum"`

	/* 保底带宽: 10, 20, 30, 50, 单位: Gbps, 可升级, 不可降级  */
	BpGbps int `json:"bpGbps"`

	/* 弹性带宽: 0, 10, 20, 单位: Gbps, 可升级, 可降级  */
	EpGbps int `json:"epGbps"`
}

type OperationRecord

type OperationRecord struct {

	/* 操作时间 (Optional) */
	Time string `json:"time"`

	/* 防护包名称 (Optional) */
	Name string `json:"name"`

	/* 操作类型:  1:套餐变更, 2:防护规则变更, 3:防护对象变更, 4:IP 地址变更, 5:防护包名称变更 (Optional) */
	Action int `json:"action"`

	/* 操作详情 (Optional) */
	Info string `json:"info"`

	/* 操作人 (Optional) */
	Operator string `json:"operator"`
}

type OrderSpec

type OrderSpec struct {

	/* 操作类型 1: 新购防护包, 3: 升级防护包  */
	BuyType int `json:"buyType"`

	/* 防护包实例 Id, 升级防护包实例时必传 (Optional) */
	Id string `json:"id"`

	/* 防护包实例名称, 新购防护包时必传
	长度限制为 1-80 个字符, 只允许包含中文, 字母, 数字, -, ., /, _
	 (Optional) */
	Name string `json:"name"`

	/* 套餐类型, 1: 独享 IP, 2: 共享 IP  */
	PkgType int `json:"pkgType"`

	/* 可防护 IP 数量, 5, 10, 50, 100 1000(不限)  */
	IpNum int `json:"ipNum"`

	/* 保底带宽: 10, 20, 30, 50, 单位: Gbps  */
	Bp int `json:"bp"`

	/* 弹性带宽: 0, 10, 20, 单位: Gbps  */
	Ep int `json:"ep"`

	/* 购买防护包时长, 新购防护包时必传
	- timeUnit 为 3 时, 可取值 1-9
	- timeUnit 为 4 时, 可取值 1-3
	 (Optional) */
	TimeSpan int `json:"timeSpan"`

	/* 购买时长类型, 新购防护包时必传
	- 3: 月
	- 4: 年
	 (Optional) */
	TimeUnit int `json:"timeUnit"`

	/* 回调 url  */
	ReturnUrl string `json:"returnUrl"`
}

type PriceSpec

type PriceSpec struct {

	/* 操作类型 1: 新购防护包, 3: 升级防护包  */
	BuyType int `json:"buyType"`

	/* 防护包实例 Id, 升级防护包查询价格时必传 (Optional) */
	Id int64 `json:"id"`

	/* 计费类型 1: 按配置 2: 按用量 3: 包年包月  */
	BillingType int `json:"billingType"`

	/* 套餐类型, 1: 独享 IP, 2: 共享 IP  */
	PkgType int `json:"pkgType"`

	/* 可防护 IP 数量, 5, 10, 50, 100, 1000(不限)  */
	IpNum int `json:"ipNum"`

	/* 保底带宽: 0, 10, 20, 30, 50, 单位: Gbps  */
	Bp int `json:"bp"`

	/* 弹性带宽: 0, 10, 20, 单位: Gbps  */
	Ep int `json:"ep"`

	/* 购买防护包时长, 新购防护包时必传
	- timeUnit 为 3 时, 可取值 1-9
	- timeUnit 为 4 时, 可取值 1-3
	 (Optional) */
	TimeSpan int `json:"timeSpan"`

	/* 购买时长类型, 新购防护包时必传
	- 3: 月
	- 4: 年 (Optional) */
	TimeUnit int `json:"timeUnit"`
}

type ProtectedIp

type ProtectedIp struct {

	/* 被防护 IP (Optional) */
	Ip string `json:"ip"`

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

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

	/* 防护规则类型, 0: 默认(防护包的防护规则), 1: IP 自定义规则 (Optional) */
	ProtectionRuleType int `json:"protectionRuleType"`
}

type ProtectedIpSpec

type ProtectedIpSpec struct {

	/* 被防护 IP 列表  */
	Ip []string `json:"ip"`
}

type ProtectedObject

type ProtectedObject struct {

	/* 防护对象类型: eip: 弹性公网 IP, cps: 云物理服务器 (Optional) */
	Type string `json:"type"`

	/* 已防护 IP 个数 (Optional) */
	Count int `json:"count"`

	/* 防护 IP 列表 (Optional) */
	IpList []ProtectedIp `json:"ipList"`
}

type ProtectedObjectsSpec

type ProtectedObjectsSpec struct {

	/* 是否防护弹性公网 IP  */
	Eip bool `json:"eip"`

	/* 是否防护云物理服务器  */
	Cps bool `json:"cps"`
}

type ProtectionOutline

type ProtectionOutline struct {

	/* 已防护天数 (Optional) */
	ProtectedDay int64 `json:"protectedDay"`

	/* 已防护 IP 数量 (Optional) */
	ProtectedIpCount int64 `json:"protectedIpCount"`

	/* 7 日攻击次数 (Optional) */
	WeekAttackCount int64 `json:"weekAttackCount"`

	/* 7 日攻击流量峰值 (Optional) */
	WeekAttackPeak float64 `json:"weekAttackPeak"`

	/* 7 日攻击流量单位 (Optional) */
	WeekAttackUnit string `json:"weekAttackUnit"`

	/* 30 日攻击次数 (Optional) */
	MonthAttackCount int64 `json:"monthAttackCount"`

	/* 30 日攻击流量峰值 (Optional) */
	MonthAttackPeak float64 `json:"monthAttackPeak"`

	/* 30 日攻击流量单位 (Optional) */
	MonthAttackUnit string `json:"monthAttackUnit"`

	/* 当前攻击数量 (Optional) */
	CurrentAttackCount int64 `json:"currentAttackCount"`
}

type ProtectionRule

type ProtectionRule struct {

	/* 防护规则类型: 0: 默认防护包规则, 1: IP 自定义规则 (Optional) */
	Type int `json:"type"`

	/* 清洗触发值 bps (Optional) */
	CleanThresholdBps int64 `json:"cleanThresholdBps"`

	/* 清洗触发值 pps (Optional) */
	CleanThresholdPps int64 `json:"cleanThresholdPps"`

	/* 虚假源开启 (Optional) */
	SpoofIpEnable int `json:"spoofIpEnable"`

	/* 源新建连接限速开启 (Optional) */
	SrcNewConnLimitEnable int `json:"srcNewConnLimitEnable"`

	/* 源新建连接速率 (Optional) */
	SrcNewConnLimitValue int64 `json:"srcNewConnLimitValue"`

	/* 目的新建连接开启 (Optional) */
	DstNewConnLimitEnable int `json:"dstNewConnLimitEnable"`

	/* 目的新建连接速率 (Optional) */
	DstNewConnLimitValue int64 `json:"dstNewConnLimitValue"`

	/* 报文最小长度 (Optional) */
	DatagramRangeMin int64 `json:"datagramRangeMin"`

	/* 报文最大长度 (Optional) */
	DatagramRangeMax int64 `json:"datagramRangeMax"`

	/* geo 拦截地域列表 (Optional) */
	GeoBlackList []GeoBlack `json:"geoBlackList"`

	/* IP 黑名单列表 (Optional) */
	IpBlackList []string `json:"ipBlackList"`

	/* IP 白名单列表 (Optional) */
	IpWhiteList []string `json:"ipWhiteList"`
}

type ProtectionRuleSpec

type ProtectionRuleSpec struct {

	/* 被防护 IP, 缺省时修改防护包实例防护规则 (Optional) */
	Ip *string `json:"ip"`

	/* 防护规则类型, 修改 ip 防护规则时必传, 0: 设置 ip 使用防护包规则, 1: 设置 IP 使用自定义规则 (Optional) */
	Type *int `json:"type"`

	/* 清洗触发值 bps, 修改实例防护规则或自定义 IP 防护规则时必传 (Optional) */
	CleanThresholdBps *int64 `json:"cleanThresholdBps"`

	/* 清洗触发值 pps, 修改实例防护规则或自定义 IP 防护规则时必传 (Optional) */
	CleanThresholdPps *int64 `json:"cleanThresholdPps"`

	/* 虚假源, 0: 关闭, 1: 开启, 修改实例防护规则或自定义 IP 防护规则时必传 (Optional) */
	SpoofIpEnable *int `json:"spoofIpEnable"`

	/* 源新建连接限速, 0: 关闭, 1: 开启, 修改实例防护规则或自定义 IP 防护规则时必传 (Optional) */
	SrcNewConnLimitEnable *int `json:"srcNewConnLimitEnable"`

	/* 源新建连接速率, 修改实例防护规则或自定义 IP 防护规则时必传 (Optional) */
	SrcNewConnLimitValue *int64 `json:"srcNewConnLimitValue"`

	/* 目的新建连接, 0: 关闭, 1: 开启, 修改实例防护规则或自定义 IP 防护规则时必传 (Optional) */
	DstNewConnLimitEnable *int `json:"dstNewConnLimitEnable"`

	/* 目的新建连接速率, 修改实例防护规则或自定义 IP 防护规则时必传 (Optional) */
	DstNewConnLimitValue *int64 `json:"dstNewConnLimitValue"`

	/* 报文最小长度, 取值范围 [1, datagramRangeMax) (Optional) */
	DatagramRangeMin *int64 `json:"datagramRangeMin"`

	/* 报文最大长度, 取值范围 (datagramRangeMin, 1518] (Optional) */
	DatagramRangeMax *int64 `json:"datagramRangeMax"`

	/* geo 拦截地域编码列表. 查询 <a href="http://docs.jdcloud.com/anti-ddos-protection-package/api/describegeoareas">describeGeoAreas</a> 接口获取可设置的地域编码列表
	(Optional) */
	GeoBlackList []string `json:"geoBlackList"`

	/* IP 黑名单列表 (Optional) */
	IpBlackList []string `json:"ipBlackList"`

	/* IP 白名单列表 (Optional) */
	IpWhiteList []string `json:"ipWhiteList"`
}

Jump to

Keyboard shortcuts

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