model

package
v0.0.104 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2022 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlertConfigRespWarnConfig

type AlertConfigRespWarnConfig struct {

	// DDoS攻击
	AntiDDoS bool `json:"antiDDoS"`

	// 网页后门
	BackDoors *bool `json:"back_doors,omitempty"`

	// 暴力破解(系统登录,FTP,DB)
	BruceForce *bool `json:"bruce_force,omitempty"`

	// 数据库进程权限过高
	HighPrivilege *bool `json:"high_privilege,omitempty"`

	// 异地登录提醒
	RemoteLogin *bool `json:"remote_login,omitempty"`

	// 取值范围: - 0:表示每天一次 - 1:表示半小时一次  对于HID必选。
	SendFrequency *int32 `json:"send_frequency,omitempty"`

	// 保留字段
	Waf *bool `json:"waf,omitempty"`

	// 弱口令(系统,数据库)
	WeakPassword *bool `json:"weak_password,omitempty"`
}

告警配置信息

func (AlertConfigRespWarnConfig) String

func (o AlertConfigRespWarnConfig) String() string

type CleanLimitDict

type CleanLimitDict struct {

	// 清洗时访问限制分段ID
	CleaningAccessPosId int64 `json:"cleaning_access_pos_id"`

	// 单一源IP新建连接个数
	NewConnectionLimited int64 `json:"new_connection_limited"`

	// 单一源IP连接数总个数
	TotalConnectionLimited int64 `json:"total_connection_limited"`
}

连接数限制列表

func (CleanLimitDict) String

func (o CleanLimitDict) String() string

type CreateDefaultConfigRequest

type CreateDefaultConfigRequest struct {
	Body *DdosConfig `json:"body,omitempty"`
}

Request Object

func (CreateDefaultConfigRequest) String

type CreateDefaultConfigResponse

type CreateDefaultConfigResponse struct {

	// 内部错误码
	ErrorCode *string `json:"error_code,omitempty"`

	// 内部错误描述
	ErrorMsg       *string `json:"error_msg,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (CreateDefaultConfigResponse) String

type DDosStatus

type DDosStatus struct {

	// EIP的ID
	FloatingIpId string `json:"floating_ip_id"`

	// 浮动IP地址
	FloatingIpAddress string `json:"floating_ip_address"`

	// EIP所属类型,可选范围: - EIP:未绑定到ECS的EIP或绑定到ECS的EIP - ELB:绑定到ELB的EIP
	NetworkType string `json:"network_type"`

	// 防护状态,可选范围: - normal:表示正常 - configging:表示设置中 - notConfig:表示未设置 - packetcleaning:表示清洗 - packetdropping:表示黑洞
	Status string `json:"status"`

	// 黑洞结束时间
	BlackholeEndtime int64 `json:"blackhole_endtime"`

	// 防护类型
	ProtectType string `json:"protect_type"`

	// 流量阈值
	TrafficThreshold int64 `json:"traffic_threshold"`

	// http流量阈值
	HttpThreshold int64 `json:"http_threshold"`
}

ddos状态响应体

func (DDosStatus) String

func (o DDosStatus) String() string

type DailyData

type DailyData struct {

	// 开始时间
	PeriodStart int64 `json:"period_start"`

	// 入流量(bit/s)
	BpsIn int32 `json:"bps_in"`

	// 攻击流量(bit/s)
	BpsAttack int64 `json:"bps_attack"`

	// 总流量
	TotalBps int64 `json:"total_bps"`

	// 入报文速率(个/s)
	PpsIn int64 `json:"pps_in"`

	// 攻击文速率(个/s)
	PpsAttack int64 `json:"pps_attack"`

	// 总报文速率
	TotalPps int64 `json:"total_pps"`
}

EIP防护流量响应体

func (DailyData) String

func (o DailyData) String() string

type DailyLog

type DailyLog struct {

	// 开始时间
	StartTime int64 `json:"start_time"`

	// 结束时间
	EndTime int64 `json:"end_time"`

	// 防护状态,可选范围: - 1:表示清洗 - 2:表示黑洞
	Status int32 `json:"status"`

	// 触发时流量
	TriggerBps int32 `json:"trigger_bps"`

	// 触发时报文速率
	TriggerPps int32 `json:"trigger_pps"`

	// 触发时HTTP请求速率
	TriggerHttpPps int32 `json:"trigger_http_pps"`
}

EIP异常事件响应体

func (DailyLog) String

func (o DailyLog) String() string

type DdosConfig

type DdosConfig struct {

	// 是否开启L7层防护
	EnableL7 bool `json:"enable_L7"`

	// 流量分段ID,取值范围:1~9
	TrafficPosId int64 `json:"traffic_pos_id"`

	// HTTP请求数分段ID,取值范围:1~15
	HttpRequestPosId int64 `json:"http_request_pos_id"`

	// 清洗时访问限制分段ID,取值范围:1~8
	CleaningAccessPosId int64 `json:"cleaning_access_pos_id"`

	// 应用类型ID,可选取值: - 0 - 1
	AppTypeId int64 `json:"app_type_id"`
}

WeeklyReport

func (DdosConfig) String

func (o DdosConfig) String() string

type DeleteDefaultConfigRequest

type DeleteDefaultConfigRequest struct {
}

Request Object

func (DeleteDefaultConfigRequest) String

type DeleteDefaultConfigResponse

type DeleteDefaultConfigResponse struct {

	// 内部错误码
	ErrorCode *string `json:"error_code,omitempty"`

	// 内部错误描述
	ErrorMsg       *string `json:"error_msg,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (DeleteDefaultConfigResponse) String

type ExtendDDoSSet

type ExtendDDoSSet struct {

	// 配置分段ID
	SetID int64 `json:"SetID"`

	// 单一源IP新建连接个数
	NewConnectionLimited int64 `json:"new_connection_limited"`

	// 单一源IP连接数总个数
	TotalConnectionLimited int64 `json:"total_connection_limited"`

	// 每秒HTTP请求数(个/s)阈值
	HttpPacketPerSecond int64 `json:"http_packet_per_second"`

	// 每秒流量(Mbit/s)阈值
	TrafficPerSecond int64 `json:"traffic_per_second"`

	// 每秒报文数(个/s)阈值
	PacketPerSecond int64 `json:"packet_per_second"`
}

扩展配置列表

func (ExtendDDoSSet) String

func (o ExtendDDoSSet) String() string

type ListDDosStatusRequest

type ListDDosStatusRequest struct {

	// 可选范围: - normal:表示正常 - configging:表示设置中 - notConfig:表示未设置 - packetcleaning:表示清洗 - packetdropping:表示黑洞  不带此参数默认所有列表,以neutron查询到的顺序为准。
	Status *string `json:"status,omitempty"`

	// 返回结果个数限制,取值范围:1~100
	Limit *string `json:"limit,omitempty"`

	// 偏移量,取值范围:0~2147483647
	Offset *string `json:"offset,omitempty"`

	// IP地址,支持IPv4格式和IPv6格式输入,支持部分查询。例如“?ip=192.168”,会返回192.168.111.1和10.192.168.8所对应的EIP防护状态。
	Ip *string `json:"ip,omitempty"`
}

Request Object

func (ListDDosStatusRequest) String

func (o ListDDosStatusRequest) String() string

type ListDDosStatusResponse

type ListDDosStatusResponse struct {

	// 弹性IP总数
	Total *int32 `json:"total,omitempty"`

	// 防护状态列表
	DdosStatus     *[]DDosStatus `json:"ddosStatus,omitempty"`
	HttpStatusCode int           `json:"-"`
}

Response Object

func (ListDDosStatusResponse) String

func (o ListDDosStatusResponse) String() string

type ListDailyLogRequest

type ListDailyLogRequest struct {

	// 用户EIP对应的ID
	FloatingIpId string `json:"floating_ip_id"`

	// 可选范围: - desc:表示时间降序 - asc:表示时间升序 默认值为“desc”。
	SortDir *string `json:"sort_dir,omitempty"`

	// 返回结果个数限制,此次查询返回数量最大值,取值范围:1~100,与offset配合使用。 若“limit”与“offset”均不携带则返回所有主机列表。
	Limit *string `json:"limit,omitempty"`

	// 偏移量,“limit”携带时此字段有效。
	Offset *string `json:"offset,omitempty"`

	// 用户EIP
	Ip *string `json:"ip,omitempty"`
}

Request Object

func (ListDailyLogRequest) String

func (o ListDailyLogRequest) String() string

type ListDailyLogResponse

type ListDailyLogResponse struct {

	// 弹性IP总数
	Total *int64 `json:"total,omitempty"`

	// 异常事件列表
	Logs           *[]DailyLog `json:"logs,omitempty"`
	HttpStatusCode int         `json:"-"`
}

Response Object

func (ListDailyLogResponse) String

func (o ListDailyLogResponse) String() string

type ListDailyReportRequest

type ListDailyReportRequest struct {

	// 用户EIP对应的ID
	FloatingIpId string `json:"floating_ip_id"`

	// 用户EIP
	Ip *string `json:"ip,omitempty"`
}

Request Object

func (ListDailyReportRequest) String

func (o ListDailyReportRequest) String() string

type ListDailyReportResponse

type ListDailyReportResponse struct {

	// 24小时内的流量数据
	Data           *[]DailyData `json:"data,omitempty"`
	HttpStatusCode int          `json:"-"`
}

Response Object

func (ListDailyReportResponse) String

func (o ListDailyReportResponse) String() string

type ListNewConfigsRequest

type ListNewConfigsRequest struct {
}

Request Object

func (ListNewConfigsRequest) String

func (o ListNewConfigsRequest) String() string

type ListNewConfigsResponse

type ListNewConfigsResponse struct {

	// 流量限制列表
	TrafficLimitedList *[]TriggerBpsDict `json:"traffic_limited_list,omitempty"`

	// HTTP限制列表
	HttpLimitedList *[]TriggerQpsDict `json:"http_limited_list,omitempty"`

	// 连接数限制列表
	ConnectionLimitedList *[]CleanLimitDict `json:"connection_limited_list,omitempty"`

	// 扩展配置列表
	ExtendDdosConfig *[]ExtendDDoSSet `json:"extend_ddos_config,omitempty"`
	HttpStatusCode   int              `json:"-"`
}

Response Object

func (ListNewConfigsResponse) String

func (o ListNewConfigsResponse) String() string

type ListWeeklyReportsRequest

type ListWeeklyReportsRequest struct {

	// 每周的起始时间
	PeriodStartDate *string `json:"period_start_date,omitempty"`
}

Request Object

func (ListWeeklyReportsRequest) String

func (o ListWeeklyReportsRequest) String() string

type ListWeeklyReportsResponse

type ListWeeklyReportsResponse struct {

	// 一周内DDoS拦截次数
	DdosInterceptTimes *int32 `json:"ddos_intercept_times,omitempty"`

	// 一周的攻击次数统计数据
	Weekdata *[]WeeklyCount `json:"weekdata,omitempty"`

	// 被攻击次数排名前10的IP地址
	Top10          *[]WeeklyTop10 `json:"top10,omitempty"`
	HttpStatusCode int            `json:"-"`
}

Response Object

func (ListWeeklyReportsResponse) String

func (o ListWeeklyReportsResponse) String() string

type ShowAlertConfigRequest

type ShowAlertConfigRequest struct {
}

Request Object

func (ShowAlertConfigRequest) String

func (o ShowAlertConfigRequest) String() string

type ShowAlertConfigResponse

type ShowAlertConfigResponse struct {

	// 告警群组的唯一标识
	TopicUrn *string `json:"topic_urn,omitempty"`

	// 告警群组描述
	DisplayName *string `json:"display_name,omitempty"`

	WarnConfig     *AlertConfigRespWarnConfig `json:"warn_config,omitempty"`
	HttpStatusCode int                        `json:"-"`
}

Response Object

func (ShowAlertConfigResponse) String

func (o ShowAlertConfigResponse) String() string

type ShowDDosRequest

type ShowDDosRequest struct {

	// 用户EIP对应的ID
	FloatingIpId string `json:"floating_ip_id"`

	// 用户EIP
	Ip *string `json:"ip,omitempty"`
}

Request Object

func (ShowDDosRequest) String

func (o ShowDDosRequest) String() string

type ShowDDosResponse

type ShowDDosResponse struct {

	// 是否开启L7层防护
	EnableL7 *bool `json:"enable_L7,omitempty"`

	// 流量分段ID,取值范围:1~9
	TrafficPosId *int64 `json:"traffic_pos_id,omitempty"`

	// HTTP请求数分段ID,取值范围:1~15
	HttpRequestPosId *int64 `json:"http_request_pos_id,omitempty"`

	// 清洗时访问限制分段ID,取值范围:1~8
	CleaningAccessPosId *int64 `json:"cleaning_access_pos_id,omitempty"`

	// 应用类型ID,可选取值: - 0 - 1
	AppTypeId      *int64 `json:"app_type_id,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (ShowDDosResponse) String

func (o ShowDDosResponse) String() string

type ShowDDosStatusRequest

type ShowDDosStatusRequest struct {

	// 用户EIP对应的ID
	FloatingIpId string `json:"floating_ip_id"`

	// 用户EIP
	Ip *string `json:"ip,omitempty"`
}

Request Object

func (ShowDDosStatusRequest) String

func (o ShowDDosStatusRequest) String() string

type ShowDDosStatusResponse

type ShowDDosStatusResponse struct {

	// 防护状态,可选范围:   - normal:表示正常   - configging:表示设置中   - notConfig:表示未设置   - packetcleaning:表示清洗   - packetdropping:表示黑洞
	Status         *string `json:"status,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ShowDDosStatusResponse) String

func (o ShowDDosStatusResponse) String() string

type ShowDefaultConfigRequest

type ShowDefaultConfigRequest struct {
}

Request Object

func (ShowDefaultConfigRequest) String

func (o ShowDefaultConfigRequest) String() string

type ShowDefaultConfigResponse

type ShowDefaultConfigResponse struct {

	// 是否开启L7层防护
	EnableL7 *bool `json:"enable_L7,omitempty"`

	// 流量分段ID,取值范围:1~9
	TrafficPosId *int64 `json:"traffic_pos_id,omitempty"`

	// HTTP请求数分段ID,取值范围:1~15
	HttpRequestPosId *int64 `json:"http_request_pos_id,omitempty"`

	// 清洗时访问限制分段ID,取值范围:1~8
	CleaningAccessPosId *int64 `json:"cleaning_access_pos_id,omitempty"`

	// 应用类型ID,可选取值: - 0 - 1
	AppTypeId      *int64 `json:"app_type_id,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (ShowDefaultConfigResponse) String

func (o ShowDefaultConfigResponse) String() string

type ShowNewTaskStatusRequest

type ShowNewTaskStatusRequest struct {

	// 任务ID(非负整数)的字符串
	TaskId *string `json:"task_id,omitempty"`
}

Request Object

func (ShowNewTaskStatusRequest) String

func (o ShowNewTaskStatusRequest) String() string

type ShowNewTaskStatusResponse

type ShowNewTaskStatusResponse struct {

	// 任务状态,有以下几种: - success - failed - waiting - running - preprocess - ready
	TaskStatus *string `json:"task_status,omitempty"`

	// 任务的附加信息
	TaskMsg        *string `json:"task_msg,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ShowNewTaskStatusResponse) String

func (o ShowNewTaskStatusResponse) String() string

type TriggerBpsDict

type TriggerBpsDict struct {

	// 流量分段ID
	TrafficPosId int64 `json:"traffic_pos_id"`

	// 每秒流量(Mbit/s)阈值
	TrafficPerSecond int64 `json:"traffic_per_second"`

	// 每秒报文数(个/s)阈值
	PacketPerSecond int64 `json:"packet_per_second"`
}

流量限制列表

func (TriggerBpsDict) String

func (o TriggerBpsDict) String() string

type TriggerQpsDict

type TriggerQpsDict struct {

	// HTTP请求数分段ID
	HttpRequestPosId int64 `json:"http_request_pos_id"`

	// 每秒HTTP请求数(个/s)阈值
	HttpPacketPerSecond int64 `json:"http_packet_per_second"`
}

HTTP限制列表

func (TriggerQpsDict) String

func (o TriggerQpsDict) String() string

type UpdateAlertConfigRequest

type UpdateAlertConfigRequest struct {
	Body *UpdateAlertConfigRequestBody `json:"body,omitempty"`
}

Request Object

func (UpdateAlertConfigRequest) String

func (o UpdateAlertConfigRequest) String() string

type UpdateAlertConfigRequestBody

type UpdateAlertConfigRequestBody struct {

	// 告警群组描述。
	DisplayName string `json:"display_name"`

	// 告警群组的唯一标识。
	TopicUrn string `json:"topic_urn"`

	WarnConfig *UpdateAlertConfigRequestBodyWarnConfig `json:"warn_config"`
}

func (UpdateAlertConfigRequestBody) String

type UpdateAlertConfigRequestBodyWarnConfig

type UpdateAlertConfigRequestBodyWarnConfig struct {

	// DDoS攻击
	AntiDDoS bool `json:"antiDDoS"`

	// 网页后门
	BackDoors *bool `json:"back_doors,omitempty"`

	// 暴力破解(系统登录,FTP,DB)
	BruceForce *bool `json:"bruce_force,omitempty"`

	// 数据库进程权限过高
	HighPrivilege *bool `json:"high_privilege,omitempty"`

	// 异地登录提醒
	RemoteLogin *bool `json:"remote_login,omitempty"`

	// 取值范围: - 0:表示每天一次 - 1:表示半小时一次  对于HID必选。
	SendFrequency *int32 `json:"send_frequency,omitempty"`

	// 保留字段
	Waf *bool `json:"waf,omitempty"`

	// 弱口令(系统,数据库)
	WeakPassword *bool `json:"weak_password,omitempty"`
}

告警配置信息。

func (UpdateAlertConfigRequestBodyWarnConfig) String

type UpdateAlertConfigResponse

type UpdateAlertConfigResponse struct {

	// 内部错误码
	ErrorCode *string `json:"error_code,omitempty"`

	// 内部错误描述
	ErrorMsg       *string `json:"error_msg,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (UpdateAlertConfigResponse) String

func (o UpdateAlertConfigResponse) String() string

type UpdateAntiDDosServiceRequestBody

type UpdateAntiDDosServiceRequestBody struct {

	// 应用类型ID,可选取值: - 0 - 1
	AppTypeId int32 `json:"app_type_id"`

	// 清洗时访问限制分段ID,取值范围:1~8
	CleaningAccessPosId int32 `json:"cleaning_access_pos_id"`

	// 是否开启L7层防护
	EnableL7 bool `json:"enable_L7"`

	// HTTP请求数分段ID,取值范围:1~15
	HttpRequestPosId int32 `json:"http_request_pos_id"`

	// 流量分段ID,取值范围:1~9
	TrafficPosId int32 `json:"traffic_pos_id"`
}

func (UpdateAntiDDosServiceRequestBody) String

type UpdateDDosRequest

type UpdateDDosRequest struct {

	// 用户EIP对应的ID
	FloatingIpId string `json:"floating_ip_id"`

	// ip
	Ip *string `json:"ip,omitempty"`

	Body *UpdateAntiDDosServiceRequestBody `json:"body,omitempty"`
}

Request Object

func (UpdateDDosRequest) String

func (o UpdateDDosRequest) String() string

type UpdateDDosResponse

type UpdateDDosResponse struct {

	// 内部错误码
	ErrorCode *string `json:"error_code,omitempty"`

	// 内部错误描述
	ErrorMsg *string `json:"error_msg,omitempty"`

	// 任务ID,后续可根据该ID查询本任务状态。 本字段为后续的任务审计扩展,暂时不需要,先保留。
	TaskId         *string `json:"task_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (UpdateDDosResponse) String

func (o UpdateDDosResponse) String() string

type WeeklyCount

type WeeklyCount struct {

	// DDoS拦截次数
	DdosInterceptTimes int32 `json:"ddos_intercept_times"`

	// DDoS黑洞次数
	DdosBlackholeTimes int32 `json:"ddos_blackhole_times"`

	// 最大攻击流量
	MaxAttackBps int32 `json:"max_attack_bps"`

	// 最大攻击连接数
	MaxAttackConns int32 `json:"max_attack_conns"`

	// 开始时间
	PeriodStartDate int64 `json:"period_start_date"`
}

WeeklyCount

func (WeeklyCount) String

func (o WeeklyCount) String() string

type WeeklyTop10

type WeeklyTop10 struct {

	// 弹性IP地址
	FloatingIpAddress string `json:"floating_ip_address"`

	// DDoS拦截次数,包括清洗和黑洞
	Times int32 `json:"times"`
}

WeeklyTop10

func (WeeklyTop10) String

func (o WeeklyTop10) String() string

Jump to

Keyboard shortcuts

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