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 类型或绑定资源类型.<br>- 0: 未知类型,<br>- 1: 弹性公网 IP(IP 为弹性公网 IP, 绑定资源类型未知),<br>- 10: 弹性公网 IP(IP 为弹性公网 IP, 但未绑定资源),<br>- 11: 云主机,<br>- 12: 负载均衡,<br>- 13: 原生容器实例,<br>- 14: 原生容器 Pod,<br>- 2: 云物理服务器,<br>- 4: 托管区公网 IP (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"` /* 触发原因.<br>- 0: 未知,<br>- 1: 四层,<br>- 2: 七层,<br>- 3: 四层和七层 (Optional) */ Cause int `json:"cause"` /* 状态. <br>- 0: 清洗完成<br>- 1: 清洗中<br>- 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 ¶ added in v1.8.0
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 DeleteIpBaseInfoSpec ¶ added in v1.22.0
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. <br>- 使用 <a href='http://docs.jdcloud.com/anti-ddos-basic/api/describeelasticipresources'>describeElasticIpResources</a> 接口查询基础防护已防护的私有网络弹性公网 IP<br>- 使用 <a href='http://docs.jdcloud.com/anti-ddos-basic/api/describecpsipresources'>describeCpsIpResources</a> 接口查询基础防护已防护的云物理服务器公网IP 和 弹性公网 IP<br>- 使用 <a href='http://docs.jdcloud.com/anti-ddos-basic/api/describeccsipresources'>describeCcsIpResources</a> 接口查询基础防护已防护的托管区公网 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 类型或绑定资源类型. <br>- 0: 未知类型,<br>- 1: 弹性公网 IP(IP 为弹性公网 IP, 绑定资源类型未知),<br>- 10: 弹性公网 IP(IP 为弹性公网 IP, 但未绑定资源),<br>- 11: 云主机,<br>- 12: 负载均衡,<br>- 13: 原生容器实例,<br>- 14: 原生容器 Pod,<br>- 2: 云物理服务器公网 IP,<br>- 4: 托管区公网 IP (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"` /* 套餐类型, 为 0 时未绑定防护包. <br>- 1: 独享 IP<br>- 2: 共享 IP (Optional) */ InstanceType int `json:"instanceType"` /* 安全状态. <br>- 0: 安全<br>- 1: 清洗<br>- 2: 黑洞 (Optional) */ SafeStatus int `json:"safeStatus"` }
type IpResourceFlow ¶
type IpResourceInfo ¶
type IpResourceInfo struct { /* 公网 IP 地址 (Optional) */ Ip string `json:"ip"` /* 安全状态. <br>- 0: 安全<br>- 1: 清洗<br>- 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"` /* 安全状态. <br>- 0: 安全<br>- 1: 清洗<br>- 2: 黑洞 (Optional) */ Status int `json:"status"` /* 触发原因. <br>- 0: 未知<br>- 1: 四层<br>- 2: 七层<br>- 3: 四和7层 (Optional) */ Cause int `json:"cause"` }
type IpSafetyInfo ¶ added in v1.8.0
type IpSafetyInfo struct { /* 公网 IP 地址 (Optional) */ Ip string `json:"ip"` /* 安全状态. <br>- 0: 安全<br>- 1: 清洗<br>- 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"` }
type IpStatus ¶ added in v1.22.0
type IpStatus struct { /* IP (Optional) */ Ip string `json:"ip"` /* normal: 正常, unregister: 未备案, illegalmail: 非法邮件, clean: 超阈值, blackhole: 黑洞 (Optional) */ AttackStatus []string `json:"attackStatus"` /* normal: 正常, unregister: 未备案, illegalmail: 非法邮件, clean: 超阈值, blackhole: 黑洞, ispblock: 运营商黑洞 (Optional) */ ProtectStatus []string `json:"protectStatus"` }
type ModifyIpBaseInfoSpec ¶ added in v1.22.0
type ModifyIpBaseInfoSpec struct { /* 公网 IP 地址, 仅支持 IPv4 */ Ip string `json:"ip"` /* 公网 IP 类型或绑定资源类型. <br>- 2: 云物理服务器公网 IP<br>- 5: 京舰公网 IP */ ResourceType int `json:"resourceType"` /* 带宽上限, 单位 Mbps */ Bandwidth int64 `json:"bandwidth"` /* 每秒请求流量清洗阈值, 单位 bps. 用户有特殊需求时传该字段, 否则不传 (Optional) */ CleanThresholdBps int64 `json:"cleanThresholdBps"` /* 每秒报文请求数清洗阈值, 单位 pps. 用户有特殊需求时传该字段, 否则不传 (Optional) */ CleanThresholdPps int64 `json:"cleanThresholdPps"` /* 黑洞阈值, 单位 bps. 用户有特殊需求时传该字段, 否则不传 (Optional) */ BlackHoleThresholdBps int64 `json:"blackHoleThresholdBps"` }
Click to show internal directories.
Click to hide internal directories.