Documentation
¶
Index ¶
- type AmountStatistics
- type App
- type ApplicationInfo
- type Captcha
- type CountData
- type DataOverview
- type DataStatement
- type GetDataOverviewReq
- type GetDataStatementReq
- type GetPassRateDataTrendReq
- type GetRequestDataTrendReq
- type Label
- type ModifyReq
- type OrderDetail
- type OrderInfo
- type PackInfo
- type RiskConfig
- type Scene
- type Sdk
- type SessionData
- type SessionDataResp
- type Tactics
- type TacticsItem
- type Trial
- type UserDetail
- type UserPkgDetail
- type VerifyData
- type VerifyDataResp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AmountStatistics ¶ added in v1.56.0
type App ¶
type App struct {
/* 应用id (Optional) */
AppId int64 `json:"appId"`
/* 应用名称 */
AppName string `json:"appName"`
/* 应用类型,可选值 app, pc, wxapp, m */
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 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 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 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 ModifyReq ¶ added in v1.56.0
type ModifyReq struct {
/* 跟踪描述 (Optional) */
Tracking string `json:"tracking"`
}
type OrderDetail ¶ added in v1.56.0
type OrderDetail struct {
/* 用户名称 (Optional) */
Pin string `json:"pin"`
/* 产品名称 (Optional) */
Pkgname string `json:"pkgname"`
/* 规格 (Optional) */
BalanceAmount string `json:"balanceAmount"`
/* 付费类型 (Optional) */
OrderType string `json:"orderType"`
/* 下单时间,yyyy-mm-dd hh:mm:ss格式 (Optional) */
StartTime string `json:"startTime"`
/* 订单状态 (Optional) */
OrderState string `json:"orderState"`
/* 订单金额 (Optional) */
OrderAmount int `json:"orderAmount"`
/* 代金券 (Optional) */
Voucher int `json:"voucher"`
/* 余额 (Optional) */
Yue int `json:"yue"`
/* 实付款总额 (Optional) */
PaymentAmount int `json:"paymentAmount"`
}
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 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"`
/* 密钥,从界面获取 */
Secret string `json:"secret"`
/* uuid,ios客户端传openudid, android客户端传androidid, pc和wxapp客户端可不传 (Optional) */
Uuid string `json:"uuid"`
/* 客户端ip */
Ip string `json:"ip"`
/* 客户端userAgent */
UserAgent string `json:"userAgent"`
/* 指纹,客户端sdk获取 (Optional) */
FingerPrint string `json:"fingerPrint"`
/* 客户端类型, android, ios, pc, wxapp, m */
ClientType string `json:"clientType"`
/* 客户端版本,用户端app版本,可选 (Optional) */
ClientVersion string `json:"clientVersion"`
}
type SessionDataResp ¶
type Tactics ¶
type Tactics struct {
/* 场景id */
SceneId int64 `json:"sceneId"`
/* 所属应用id */
AppId int64 `json:"appId"`
/* 策略类型:1 智能组合,2过载保护,3自有策略,4验证码策略 (Optional) */
TacticsType int `json:"tacticsType"`
/* 可疑请求配置 (Optional) */
SuspiciousRiskConfig RiskConfig `json:"suspiciousRiskConfig"`
/* 问题请求配置 (Optional) */
AbandonRiskConfig RiskConfig `json:"abandonRiskConfig"`
}
type TacticsItem ¶ added in v1.56.0
type TacticsItem struct {
/* 策略类型:1 智能组合,2过载保护,3自有策略,4验证码策略 (Optional) */
TacticsType int `json:"tacticsType"`
/* 可疑请求配置 (Optional) */
SuspiciousRiskConfig RiskConfig `json:"suspiciousRiskConfig"`
/* 问题请求配置 (Optional) */
AbandonRiskConfig RiskConfig `json:"abandonRiskConfig"`
}
type Trial ¶ added in v1.56.0
type Trial struct {
/* 应用id (Optional) */
AppId int64 `json:"appId"`
/* 场景id (Optional) */
SceneId int64 `json:"sceneId"`
/* 场景secret,前端调用时需要先解密再调用,解密请联系相关研发 (Optional) */
Secret string `json:"secret"`
/* 支持的APP类型,有的验证码类型不支持pc端体验,需要切换到移动端体验, eg["pc","m"] (Optional) */
Supports []string `json:"supports"`
/* 验证码类型 (Optional) */
CaptchaType int `json:"captchaType"`
/* 验证码名称 (Optional) */
CaptchaName string `json:"captchaName"`
}
type UserDetail ¶ added in v1.56.0
type UserDetail struct {
/* 用户名称 (Optional) */
Pin string `json:"pin"`
/* 更新时间, yyyy-mm-dd hh:mm:ss格式 (Optional) */
UpdateTime string `json:"updateTime"`
/* 创建时间, yyyy-mm-dd hh:mm:ss格式 (Optional) */
CreateTime string `json:"createTime"`
/* 用户类型,0-全部类型,1-付费用户,2-体验用户,3-无效用户 (Optional) */
UserType string `json:"userType"`
/* 剩余调用量 (Optional) */
SurplusAmount int `json:"surplusAmount"`
/* 累计调用量 (Optional) */
UsedAmount int `json:"usedAmount"`
/* 总购买量 (Optional) */
PackagesAmount int `json:"packagesAmount"`
/* 资源包数量 (Optional) */
PackagesNum int `json:"packagesNum"`
/* 跟踪描述 (Optional) */
Tracking string `json:"tracking"`
}
type UserPkgDetail ¶ added in v1.56.0
type VerifyData ¶
type VerifyData struct {
/* 提交后台校验的token,客户端sdk获取 */
VerifyToken string `json:"verifyToken"`
/* 验证码回话id,getsessionid返回 */
SessionId string `json:"sessionId"`
/* 应用id */
AppId int `json:"appId"`
/* 场景id */
SceneId int `json:"sceneId"`
/* 密钥,从界面获取 (Optional) */
Secret string `json:"secret"`
/* 客户端ip */
Ip string `json:"ip"`
/* 客户端userAgent */
UserAgent string `json:"userAgent"`
/* 客户端类型, android, ios, pc, wxapp (Optional) */
ClientType string `json:"clientType"`
/* 客户端版本,用户端app版本,可选 (Optional) */
ClientVersion string `json:"clientVersion"`
}
type VerifyDataResp ¶
Source Files
¶
- AmountStatistics.go
- App.go
- ApplicationInfo.go
- Captcha.go
- CountData.go
- DataOverview.go
- DataStatement.go
- GetDataOverviewReq.go
- GetDataStatementReq.go
- GetPassRateDataTrendReq.go
- GetRequestDataTrendReq.go
- Label.go
- ModifyReq.go
- OrderDetail.go
- OrderInfo.go
- PackInfo.go
- RiskConfig.go
- Scene.go
- Sdk.go
- SessionData.go
- SessionDataResp.go
- Tactics.go
- TacticsItem.go
- Trial.go
- UserDetail.go
- UserPkgDetail.go
- VerifyData.go
- VerifyDataResp.go
Click to show internal directories.
Click to hide internal directories.