models

package
v1.52.0 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2021 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {

	/* 应用id (Optional) */
	AppId int64 `json:"appId"`

	/* 应用名称  */
	AppName string `json:"appName"`

	/* 应用类型,可选值 app  */
	AppType string `json:"appType"`

	/* 应用系统,支持多选多选以逗号分隔, 选择appType是app时可选android,ios 其余为空  */
	AppOs string `json:"appOs"`

	/* android应用的package name(应用是android的时候androidPkgName必须) (Optional) */
	AndroidPkgName string `json:"androidPkgName"`

	/* ios应用的bundle id(应用是ios的时候iosBundleId必须) (Optional) */
	IosBundleId string `json:"iosBundleId"`

	/* 应用描述 (Optional) */
	Description string `json:"description"`

	/* app下关联场景数 (Optional) */
	SceneCount int `json:"sceneCount"`

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

	/* 应用更新时间 (Optional) */
	UpdateTime string `json:"updateTime"`
}

type ApplicationInfo

type ApplicationInfo struct {

	/* 是否可用, 0-不可用 1-可用 (Optional) */
	Valid int `json:"valid"`
}

type Captcha

type Captcha struct {

	/* 验证码名称 (Optional) */
	Name string `json:"name"`

	/* tp值 (Optional) */
	Tp int `json:"tp"`
}

type CountData

type CountData struct {

	/* 时间, yyyy-mm-dd hh:mm:ss格式 (Optional) */
	Time string `json:"time"`

	/* 占比 (Optional) */
	Rate int `json:"rate"`
}

type DataOverview

type DataOverview struct {

	/* 应用数 (Optional) */
	AppCount int `json:"appCount"`

	/* 场景数 (Optional) */
	SceneCount int `json:"sceneCount"`

	/* 请求量 (Optional) */
	RequestCount int `json:"requestCount"`

	/* 之前请求量,用于计算环比 (Optional) */
	RequestCountPre int `json:"requestCountPre"`

	/* 通过量 (Optional) */
	PassCount int `json:"passCount"`

	/* 之前通过量,用于计算环比 (Optional) */
	PassCountPre int `json:"passCountPre"`

	/* 防御量 (Optional) */
	BlockCount int `json:"blockCount"`

	/* 之前的防御量,用于计算环比 (Optional) */
	BlockCountPre int `json:"blockCountPre"`
}

type DataStatement

type DataStatement struct {

	/* 时间, yyyy-mm-dd hh:mm:ss格式 (Optional) */
	TimeStr string `json:"timeStr"`

	/* 总体请求量 (Optional) */
	RequestCount int `json:"requestCount"`

	/* 静默验证请求量 (Optional) */
	SilentCount int `json:"silentCount"`

	/* 静默验证通过量 (Optional) */
	SilentPassCount int `json:"silentPassCount"`

	/* 静默验证防御量 (Optional) */
	SilentBlockCount int `json:"silentBlockCount"`

	/* 验证码请求量 (Optional) */
	CaptchaCount int `json:"captchaCount"`

	/* 验证码通过量 (Optional) */
	CaptchaPassCount int `json:"captchaPassCount"`

	/* 验证码防御量 (Optional) */
	CaptchaBlockCount int `json:"captchaBlockCount"`

	/* 总通过率 (Optional) */
	PassRate int `json:"passRate"`

	/* 静默通过率 (Optional) */
	SilentPassRate int `json:"silentPassRate"`

	/* 验证码通过率 (Optional) */
	CaptchaPassRate int `json:"captchaPassRate"`
}

type GetDataOverviewReq

type GetDataOverviewReq struct {

	/* 开始时间戳,单位秒,时间间隔要求大于5分钟,小于30天  */
	Start int `json:"start"`

	/* 结束时间戳,单位秒,时间间隔要求大于5分钟,小于30天  */
	End int `json:"end"`

	/* 应用id (Optional) */
	AppIds []int64 `json:"appIds"`

	/* 场景id (Optional) */
	SceneIds []int64 `json:"sceneIds"`
}

type GetDataStatementReq

type GetDataStatementReq struct {

	/* 开始时间戳,单位毫秒,时间间隔要求大于5分钟,小于30天  */
	Start int `json:"start"`

	/* 结束时间戳,单位毫秒,时间间隔要求大于5分钟,小于30天  */
	End int `json:"end"`

	/* 查询QPS的类型,默认total, 可选: all(总体请求量趋势), silent(静默验证请求量趋势), captcha(验证码请求量趋势) (Optional) */
	RequestType string `json:"requestType"`

	/* 应用id (Optional) */
	AppIds []int64 `json:"appIds"`

	/* 场景id (Optional) */
	SceneIds []int64 `json:"sceneIds"`

	/* 每页显示的个数,默认是10 (Optional) */
	PageSize int `json:"pageSize"`

	/* 页数,默认是1 (Optional) */
	PageIndex int `json:"pageIndex"`

	/* 默认:升序;(升序:asc; 降序:desc) (Optional) */
	OrderBy string `json:"orderBy"`
}

type GetPassRateDataTrendReq

type GetPassRateDataTrendReq struct {

	/* 开始时间戳,单位秒,时间间隔要求大于5分钟,小于30天  */
	Start int `json:"start"`

	/* 结束时间戳,单位秒,时间间隔要求大于5分钟,小于30天  */
	End int `json:"end"`

	/* 应用id (Optional) */
	AppIds []int64 `json:"appIds"`

	/* 场景id (Optional) */
	SceneIds []int64 `json:"sceneIds"`
}

type GetRequestDataTrendReq

type GetRequestDataTrendReq struct {

	/* 开始时间戳,单位毫秒,时间间隔要求大于5分钟,小于30天  */
	Start int `json:"start"`

	/* 结束时间戳,单位毫秒,时间间隔要求大于5分钟,小于30天  */
	End int `json:"end"`

	/* 查询QPS的类型,默认all, 可选: all(总体请求量趋势), silent(静默验证请求量趋势), captcha(验证码请求量趋势) (Optional) */
	RequestType string `json:"requestType"`

	/* 应用id (Optional) */
	AppIds []int64 `json:"appIds"`

	/* 场景id (Optional) */
	SceneIds []int64 `json:"sceneIds"`
}

type Label

type Label struct {

	/* 标签值,下发策略时需要传递的数据 (Optional) */
	Value string `json:"value"`

	/* 标签名称 (Optional) */
	Name string `json:"name"`

	/* dtc_id (Optional) */
	DtcId int `json:"dtcId"`

	/* 维度 (Optional) */
	Dimension string `json:"dimension"`

	/* 字段名 (Optional) */
	FieldName string `json:"fieldName"`
}

type OrderInfo

type OrderInfo struct {

	/* 用户名 (Optional) */
	Pin string `json:"pin"`

	/* 资源包类型 (Optional) */
	PackageType string `json:"packageType"`

	/* 时长 (Optional) */
	Validity string `json:"validity"`

	/* 规格 (Optional) */
	Specs string `json:"specs"`

	/* 资源包数量 (Optional) */
	Quantity int `json:"quantity"`

	/* 价格 (Optional) */
	TotalFee string `json:"totalFee"`

	/* 支付时间 (Optional) */
	PayTime string `json:"payTime"`
}

type PackInfo

type PackInfo struct {

	/* 资源包类型 (Optional) */
	PackageType string `json:"packageType"`

	/* 来源,1-免费,2-付费 (Optional) */
	From int `json:"from"`

	/* 总用量 (Optional) */
	TotalAmount string `json:"totalAmount"`

	/* 剩余用量 (Optional) */
	BalanceAmount string `json:"balanceAmount"`

	/* 生效时间 (Optional) */
	StartTime string `json:"startTime"`

	/* 失效时间 (Optional) */
	EndTime string `json:"endTime"`

	/* 资源包id (Optional) */
	PackId string `json:"packId"`
}

type RiskConfig

type RiskConfig struct {

	/* 风险标签 (Optional) */
	Risk_labels []string `json:"risk_labels"`

	/* 验证码类型 (Optional) */
	Captcha_type int `json:"captcha_type"`
}

type Scene

type Scene struct {

	/* 场景id,更新时必填 (Optional) */
	SceneId int64 `json:"sceneId"`

	/* 场景密钥 (Optional) */
	SceneSecret string `json:"sceneSecret"`

	/* 所属应用id  */
	AppId int64 `json:"appId"`

	/* 所属应用名称 (Optional) */
	AppName string `json:"appName"`

	/* 场景名称  */
	SceneName string `json:"sceneName"`

	/* 场景类型:account:账号场景(登录、注册等)activity:活动场景(秒杀、领券等)content:内容场景(发帖评论、签到投票等)other:其它  */
	SceneType string `json:"sceneType"`

	/* 平均qps  */
	SceneAvgQps int `json:"sceneAvgQps"`

	/* 高峰期qps  */
	SceneMaxQps int `json:"sceneMaxQps"`

	/* 场景描述 (Optional) */
	Description string `json:"description"`

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

type SessionData

type SessionData struct {

	/* 应用id  */
	AppId int64 `json:"appId"`

	/* 场景id  */
	SceneId int64 `json:"sceneId"`

	/* 密钥,从界面获取 (Optional) */
	Secret string `json:"secret"`

	/* uuid,ios客户端传openudid, android客户端传androidid (Optional) */
	Uuid string `json:"uuid"`

	/* 客户端ip  */
	Ip string `json:"ip"`

	/* 客户端userAgent  */
	UserAgent string `json:"userAgent"`

	/* 指纹,客户端sdk获取 (Optional) */
	FingerPrint string `json:"fingerPrint"`

	/* 客户端类型, android, ios, pc, m  */
	ClientType string `json:"clientType"`

	/* 客户端版本,用户端app版本,可选 (Optional) */
	ClientVersion string `json:"clientVersion"`
}

type SessionDataResp

type SessionDataResp struct {

	/* 代号, 0000:通过,0001:拒绝,0002:内部错误,0003:补充验证 (Optional) */
	Code string `json:"code"`

	/* 会话id,0003补充验证时返回 (Optional) */
	SessionId string `json:"sessionId"`
}

type Tactics

type Tactics struct {

	/* 场景id  */
	SceneId int64 `json:"sceneId"`

	/* 所属应用id  */
	AppId int64 `json:"appId"`

	/* 策略类型:1 智能组合,2过载保护,3自有策略 (Optional) */
	TacticsType int `json:"tacticsType"`

	/* 可疑请求配置 (Optional) */
	SuspiciousRiskConfig RiskConfig `json:"suspiciousRiskConfig"`

	/* 问题请求配置 (Optional) */
	AbandonRiskConfig RiskConfig `json:"abandonRiskConfig"`
}

type VerifyData

type VerifyData struct {

	/* 提交后台校验的token,客户端sdk获取  */
	VerifyToken string `json:"verifyToken"`

	/* 验证码回话id,getsessionid返回  */
	SessionId string `json:"sessionId"`

	/* 应用id  */
	AppId int `json:"appId"`

	/* 场景id (Optional) */
	SceneId int `json:"sceneId"`

	/* 密钥,从界面获取 (Optional) */
	Secret string `json:"secret"`

	/* 客户端ip  */
	Ip string `json:"ip"`

	/* 客户端userAgent  */
	UserAgent string `json:"userAgent"`

	/* 客户端类型, android, ios, pc, m (Optional) */
	ClientType string `json:"clientType"`

	/* 客户端版本,用户端app版本,可选 (Optional) */
	ClientVersion string `json:"clientVersion"`
}

type VerifyDataResp

type VerifyDataResp struct {

	/* 代号,0000:验证成功,0001:验证失败,0002:内部错误 (Optional) */
	Code string `json:"code"`

	/* 会话id,验证失败后返回 (Optional) */
	SessionId string `json:"sessionId"`
}

Jump to

Keyboard shortcuts

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