# frozen_string_literal: true # Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. module TencentCloud module Captcha module V20190722 # DescribeCaptchaOperData方法 拦截情况type = 2 返回的数据结构 class CaptchaOperDataInterceptUnit < TencentCloud::Common::AbstractModel # @param DateKey: 时间 # @type DateKey: String # @param AllStopCnt: 停止验证数量 # @type AllStopCnt: Float # @param PicStopCnt: 图片停止加载数量 # @type PicStopCnt: Float # @param StrategyStopCnt: 策略拦截数量 # @type StrategyStopCnt: Float attr_accessor :DateKey, :AllStopCnt, :PicStopCnt, :StrategyStopCnt def initialize(datekey=nil, allstopcnt=nil, picstopcnt=nil, strategystopcnt=nil) @DateKey = datekey @AllStopCnt = allstopcnt @PicStopCnt = picstopcnt @StrategyStopCnt = strategystopcnt end def deserialize(params) @DateKey = params['DateKey'] @AllStopCnt = params['AllStopCnt'] @PicStopCnt = params['PicStopCnt'] @StrategyStopCnt = params['StrategyStopCnt'] end end # 操作数据查询方法DescribeCaptchaOperData 的返回结果,安全验证码加载耗时type = 1 class CaptchaOperDataLoadTimeUnit < TencentCloud::Common::AbstractModel # @param DateKey: 时间 # @type DateKey: String # @param MarketLoadTime: Market加载时间 # @type MarketLoadTime: Float # @param AppIdLoadTime: AppId加载时间 # @type AppIdLoadTime: Float attr_accessor :DateKey, :MarketLoadTime, :AppIdLoadTime def initialize(datekey=nil, marketloadtime=nil, appidloadtime=nil) @DateKey = datekey @MarketLoadTime = marketloadtime @AppIdLoadTime = appidloadtime end def deserialize(params) @DateKey = params['DateKey'] @MarketLoadTime = params['MarketLoadTime'] @AppIdLoadTime = params['AppIdLoadTime'] end end # DescribeCaptchaOperData 接口 返回数据类型集合 class CaptchaOperDataRes < TencentCloud::Common::AbstractModel # @param OperDataLoadTimeUnitArray: 验证码加载耗时数据返回 # 注意:此字段可能返回 null,表示取不到有效值。 # @type OperDataLoadTimeUnitArray: Array # @param OperDataInterceptUnitArray: 验证码拦截情况数据返回 # 注意:此字段可能返回 null,表示取不到有效值。 # @type OperDataInterceptUnitArray: Array # @param OperDataTryTimesUnitArray: 验证码尝试次数数据返回 # 注意:此字段可能返回 null,表示取不到有效值。 # @type OperDataTryTimesUnitArray: Array # @param OperDataTryTimesDistributeUnitArray: 验证码尝试次数分布数据返回 # 注意:此字段可能返回 null,表示取不到有效值。 # @type OperDataTryTimesDistributeUnitArray: Array attr_accessor :OperDataLoadTimeUnitArray, :OperDataInterceptUnitArray, :OperDataTryTimesUnitArray, :OperDataTryTimesDistributeUnitArray def initialize(operdataloadtimeunitarray=nil, operdatainterceptunitarray=nil, operdatatrytimesunitarray=nil, operdatatrytimesdistributeunitarray=nil) @OperDataLoadTimeUnitArray = operdataloadtimeunitarray @OperDataInterceptUnitArray = operdatainterceptunitarray @OperDataTryTimesUnitArray = operdatatrytimesunitarray @OperDataTryTimesDistributeUnitArray = operdatatrytimesdistributeunitarray end def deserialize(params) unless params['OperDataLoadTimeUnitArray'].nil? @OperDataLoadTimeUnitArray = [] params['OperDataLoadTimeUnitArray'].each do |i| captchaoperdataloadtimeunit_tmp = CaptchaOperDataLoadTimeUnit.new captchaoperdataloadtimeunit_tmp.deserialize(i) @OperDataLoadTimeUnitArray << captchaoperdataloadtimeunit_tmp end end unless params['OperDataInterceptUnitArray'].nil? @OperDataInterceptUnitArray = [] params['OperDataInterceptUnitArray'].each do |i| captchaoperdatainterceptunit_tmp = CaptchaOperDataInterceptUnit.new captchaoperdatainterceptunit_tmp.deserialize(i) @OperDataInterceptUnitArray << captchaoperdatainterceptunit_tmp end end unless params['OperDataTryTimesUnitArray'].nil? @OperDataTryTimesUnitArray = [] params['OperDataTryTimesUnitArray'].each do |i| captchaoperdatatrytimesunit_tmp = CaptchaOperDataTryTimesUnit.new captchaoperdatatrytimesunit_tmp.deserialize(i) @OperDataTryTimesUnitArray << captchaoperdatatrytimesunit_tmp end end unless params['OperDataTryTimesDistributeUnitArray'].nil? @OperDataTryTimesDistributeUnitArray = [] params['OperDataTryTimesDistributeUnitArray'].each do |i| captchaoperdatatrytimesdistributeunit_tmp = CaptchaOperDataTryTimesDistributeUnit.new captchaoperdatatrytimesdistributeunit_tmp.deserialize(i) @OperDataTryTimesDistributeUnitArray << captchaoperdatatrytimesdistributeunit_tmp end end end end # DescribeCaptchaOperData方法 尝试次数分布 type = 4 class CaptchaOperDataTryTimesDistributeUnit < TencentCloud::Common::AbstractModel # @param TryCount: 尝试次数 # @type TryCount: Integer # @param UserCount: 用户请求数量 # @type UserCount: Integer attr_accessor :TryCount, :UserCount def initialize(trycount=nil, usercount=nil) @TryCount = trycount @UserCount = usercount end def deserialize(params) @TryCount = params['TryCount'] @UserCount = params['UserCount'] end end # DescribeCaptchaOperData操作数据查询尝试次数 type = 3 class CaptchaOperDataTryTimesUnit < TencentCloud::Common::AbstractModel # @param DateKey: 时间 # @type DateKey: String # @param CntPerPass: 平均尝试次数 # @type CntPerPass: Array # @param MarketCntPerPass: market平均尝试次数 # @type MarketCntPerPass: Float attr_accessor :DateKey, :CntPerPass, :MarketCntPerPass def initialize(datekey=nil, cntperpass=nil, marketcntperpass=nil) @DateKey = datekey @CntPerPass = cntperpass @MarketCntPerPass = marketcntperpass end def deserialize(params) @DateKey = params['DateKey'] @CntPerPass = params['CntPerPass'] @MarketCntPerPass = params['MarketCntPerPass'] end end # 该类型为DescribeCaptchaData 方法返回数据类型 class CaptchaQueryData < TencentCloud::Common::AbstractModel # @param Cnt: 数量 # @type Cnt: Integer # @param Date: 时间 # @type Date: String attr_accessor :Cnt, :Date def initialize(cnt=nil, date=nil) @Cnt = cnt @Date = date end def deserialize(params) @Cnt = params['Cnt'] @Date = params['Date'] end end # 验证码统计图Obj class CaptchaStatisticObj < TencentCloud::Common::AbstractModel # @param ActionTotal: 请求总量 # @type ActionTotal: Integer # @param VerifyTotal: 验证总量 # @type VerifyTotal: Integer # @param VerifyThroughTotal: 验证通过总量 # @type VerifyThroughTotal: Integer # @param VerifyInterceptTotal: 验证拦截总量 # @type VerifyInterceptTotal: Integer # @param TicketTotal: 票据校验总量 # @type TicketTotal: Integer # @param TicketThroughTotal: 票据通过总量 # @type TicketThroughTotal: Integer # @param TicketInterceptTotal: 票据拦截总量 # @type TicketInterceptTotal: Integer # @param RequestTrend: 请求趋势图 # 注意:此字段可能返回 null,表示取不到有效值。 # @type RequestTrend: Array # @param InterceptPerTrend: 拦截率趋势图 # 注意:此字段可能返回 null,表示取不到有效值。 # @type InterceptPerTrend: Array # @param TicketCheckTrend: 票据校验趋势图 # 注意:此字段可能返回 null,表示取不到有效值。 # @type TicketCheckTrend: Array attr_accessor :ActionTotal, :VerifyTotal, :VerifyThroughTotal, :VerifyInterceptTotal, :TicketTotal, :TicketThroughTotal, :TicketInterceptTotal, :RequestTrend, :InterceptPerTrend, :TicketCheckTrend def initialize(actiontotal=nil, verifytotal=nil, verifythroughtotal=nil, verifyintercepttotal=nil, tickettotal=nil, ticketthroughtotal=nil, ticketintercepttotal=nil, requesttrend=nil, interceptpertrend=nil, ticketchecktrend=nil) @ActionTotal = actiontotal @VerifyTotal = verifytotal @VerifyThroughTotal = verifythroughtotal @VerifyInterceptTotal = verifyintercepttotal @TicketTotal = tickettotal @TicketThroughTotal = ticketthroughtotal @TicketInterceptTotal = ticketintercepttotal @RequestTrend = requesttrend @InterceptPerTrend = interceptpertrend @TicketCheckTrend = ticketchecktrend end def deserialize(params) @ActionTotal = params['ActionTotal'] @VerifyTotal = params['VerifyTotal'] @VerifyThroughTotal = params['VerifyThroughTotal'] @VerifyInterceptTotal = params['VerifyInterceptTotal'] @TicketTotal = params['TicketTotal'] @TicketThroughTotal = params['TicketThroughTotal'] @TicketInterceptTotal = params['TicketInterceptTotal'] unless params['RequestTrend'].nil? @RequestTrend = [] params['RequestTrend'].each do |i| requesttrendobj_tmp = RequestTrendObj.new requesttrendobj_tmp.deserialize(i) @RequestTrend << requesttrendobj_tmp end end unless params['InterceptPerTrend'].nil? @InterceptPerTrend = [] params['InterceptPerTrend'].each do |i| interceptpertrendobj_tmp = InterceptPerTrendObj.new interceptpertrendobj_tmp.deserialize(i) @InterceptPerTrend << interceptpertrendobj_tmp end end unless params['TicketCheckTrend'].nil? @TicketCheckTrend = [] params['TicketCheckTrend'].each do |i| ticketchecktrendobj_tmp = TicketCheckTrendObj.new ticketchecktrendobj_tmp.deserialize(i) @TicketCheckTrend << ticketchecktrendobj_tmp end end end end # DescribeCaptchaTicketData 接口 返回数据类型集合 class CaptchaTicketDataRes < TencentCloud::Common::AbstractModel # @param TicketAmountArray: 票据验证总量返回 # @type TicketAmountArray: Array # @param TicketThroughArray: 票据验证通过量返回 # @type TicketThroughArray: Array # @param TicketInterceptArray: 票据验证拦截量返回 # @type TicketInterceptArray: Array attr_accessor :TicketAmountArray, :TicketThroughArray, :TicketInterceptArray def initialize(ticketamountarray=nil, ticketthrougharray=nil, ticketinterceptarray=nil) @TicketAmountArray = ticketamountarray @TicketThroughArray = ticketthrougharray @TicketInterceptArray = ticketinterceptarray end def deserialize(params) unless params['TicketAmountArray'].nil? @TicketAmountArray = [] params['TicketAmountArray'].each do |i| ticketamountunit_tmp = TicketAmountUnit.new ticketamountunit_tmp.deserialize(i) @TicketAmountArray << ticketamountunit_tmp end end unless params['TicketThroughArray'].nil? @TicketThroughArray = [] params['TicketThroughArray'].each do |i| ticketthroughunit_tmp = TicketThroughUnit.new ticketthroughunit_tmp.deserialize(i) @TicketThroughArray << ticketthroughunit_tmp end end unless params['TicketInterceptArray'].nil? @TicketInterceptArray = [] params['TicketInterceptArray'].each do |i| ticketinterceptunit_tmp = TicketInterceptUnit.new ticketinterceptunit_tmp.deserialize(i) @TicketInterceptArray << ticketinterceptunit_tmp end end end end # 用户注册的APPID和应用名称对象 class CaptchaUserAllAppId < TencentCloud::Common::AbstractModel # @param CaptchaAppId: 验证码应用ID # @type CaptchaAppId: Integer # @param AppName: 注册应用名称 # @type AppName: String # @param TcAppId: 腾讯云APPID # @type TcAppId: Integer # @param ChannelInfo: 渠道信息 # @type ChannelInfo: String attr_accessor :CaptchaAppId, :AppName, :TcAppId, :ChannelInfo def initialize(captchaappid=nil, appname=nil, tcappid=nil, channelinfo=nil) @CaptchaAppId = captchaappid @AppName = appname @TcAppId = tcappid @ChannelInfo = channelinfo end def deserialize(params) @CaptchaAppId = params['CaptchaAppId'] @AppName = params['AppName'] @TcAppId = params['TcAppId'] @ChannelInfo = params['ChannelInfo'] end end # DescribeCaptchaAppIdInfo请求参数结构体 class DescribeCaptchaAppIdInfoRequest < TencentCloud::Common::AbstractModel # @param CaptchaAppId: 验证码应用注册APPID # @type CaptchaAppId: Integer attr_accessor :CaptchaAppId def initialize(captchaappid=nil) @CaptchaAppId = captchaappid end def deserialize(params) @CaptchaAppId = params['CaptchaAppId'] end end # DescribeCaptchaAppIdInfo返回参数结构体 class DescribeCaptchaAppIdInfoResponse < TencentCloud::Common::AbstractModel # @param SchemeColor: 界面风格 # @type SchemeColor: String # @param Language: 语言 # @type Language: Integer # @param SceneType: 场景 # @type SceneType: Integer # @param EvilInterceptGrade: 防控风险等级 # @type EvilInterceptGrade: Integer # @param SmartVerify: 智能验证 # @type SmartVerify: Integer # @param SmartEngine: 智能引擎 # @type SmartEngine: Integer # @param CapType: 验证码类型 # @type CapType: Integer # @param AppName: 应用名称 # @type AppName: String # @param DomainLimit: 域名限制 # @type DomainLimit: String # @param MailAlarm: 邮件告警 # 注意:此字段可能返回 null,表示取不到有效值。 # @type MailAlarm: Array # @param TrafficThreshold: 流量控制 # @type TrafficThreshold: Integer # @param EncryptKey: 加密key # @type EncryptKey: String # @param TopFullScreen: 是否全屏 # @type TopFullScreen: Integer # @param CaptchaCode: 成功返回0 其它失败 # @type CaptchaCode: Integer # @param CaptchaMsg: 返回操作信息 # 注意:此字段可能返回 null,表示取不到有效值。 # @type CaptchaMsg: String # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :SchemeColor, :Language, :SceneType, :EvilInterceptGrade, :SmartVerify, :SmartEngine, :CapType, :AppName, :DomainLimit, :MailAlarm, :TrafficThreshold, :EncryptKey, :TopFullScreen, :CaptchaCode, :CaptchaMsg, :RequestId def initialize(schemecolor=nil, language=nil, scenetype=nil, evilinterceptgrade=nil, smartverify=nil, smartengine=nil, captype=nil, appname=nil, domainlimit=nil, mailalarm=nil, trafficthreshold=nil, encryptkey=nil, topfullscreen=nil, captchacode=nil, captchamsg=nil, requestid=nil) @SchemeColor = schemecolor @Language = language @SceneType = scenetype @EvilInterceptGrade = evilinterceptgrade @SmartVerify = smartverify @SmartEngine = smartengine @CapType = captype @AppName = appname @DomainLimit = domainlimit @MailAlarm = mailalarm @TrafficThreshold = trafficthreshold @EncryptKey = encryptkey @TopFullScreen = topfullscreen @CaptchaCode = captchacode @CaptchaMsg = captchamsg @RequestId = requestid end def deserialize(params) @SchemeColor = params['SchemeColor'] @Language = params['Language'] @SceneType = params['SceneType'] @EvilInterceptGrade = params['EvilInterceptGrade'] @SmartVerify = params['SmartVerify'] @SmartEngine = params['SmartEngine'] @CapType = params['CapType'] @AppName = params['AppName'] @DomainLimit = params['DomainLimit'] @MailAlarm = params['MailAlarm'] @TrafficThreshold = params['TrafficThreshold'] @EncryptKey = params['EncryptKey'] @TopFullScreen = params['TopFullScreen'] @CaptchaCode = params['CaptchaCode'] @CaptchaMsg = params['CaptchaMsg'] @RequestId = params['RequestId'] end end # DescribeCaptchaData请求参数结构体 class DescribeCaptchaDataRequest < TencentCloud::Common::AbstractModel # @param CaptchaAppId: 验证码应用ID # @type CaptchaAppId: Integer # @param Start: 查询开始时间 # @type Start: Integer # @param End: 查询结束时间 # @type End: Integer # @param Type: 查询类型 # @type Type: Integer attr_accessor :CaptchaAppId, :Start, :End, :Type def initialize(captchaappid=nil, start=nil, _end=nil, type=nil) @CaptchaAppId = captchaappid @Start = start @End = _end @Type = type end def deserialize(params) @CaptchaAppId = params['CaptchaAppId'] @Start = params['Start'] @End = params['End'] @Type = params['Type'] end end # DescribeCaptchaData返回参数结构体 class DescribeCaptchaDataResponse < TencentCloud::Common::AbstractModel # @param CaptchaCode: 返回码 0 成功 其它失败 # @type CaptchaCode: Integer # @param Data: 数据数组 # 注意:此字段可能返回 null,表示取不到有效值。 # @type Data: Array # @param CaptchaMsg: 返回信息描述 # 注意:此字段可能返回 null,表示取不到有效值。 # @type CaptchaMsg: String # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :CaptchaCode, :Data, :CaptchaMsg, :RequestId def initialize(captchacode=nil, data=nil, captchamsg=nil, requestid=nil) @CaptchaCode = captchacode @Data = data @CaptchaMsg = captchamsg @RequestId = requestid end def deserialize(params) @CaptchaCode = params['CaptchaCode'] unless params['Data'].nil? @Data = [] params['Data'].each do |i| captchaquerydata_tmp = CaptchaQueryData.new captchaquerydata_tmp.deserialize(i) @Data << captchaquerydata_tmp end end @CaptchaMsg = params['CaptchaMsg'] @RequestId = params['RequestId'] end end # DescribeCaptchaDataSum请求参数结构体 class DescribeCaptchaDataSumRequest < TencentCloud::Common::AbstractModel # @param CaptchaAppId: 验证码应用ID # @type CaptchaAppId: Integer # @param Start: 查询开始时间 # @type Start: Integer # @param End: 查询结束时间 # @type End: Integer attr_accessor :CaptchaAppId, :Start, :End def initialize(captchaappid=nil, start=nil, _end=nil) @CaptchaAppId = captchaappid @Start = start @End = _end end def deserialize(params) @CaptchaAppId = params['CaptchaAppId'] @Start = params['Start'] @End = params['End'] end end # DescribeCaptchaDataSum返回参数结构体 class DescribeCaptchaDataSumResponse < TencentCloud::Common::AbstractModel # @param GetSum: 请求总量 # @type GetSum: Integer # @param VfySuccSum: 请求验证成功量 # @type VfySuccSum: Integer # @param VfySum: 请求验证量 # @type VfySum: Integer # @param AttackSum: 拦截攻击量 # @type AttackSum: Integer # @param CaptchaMsg: 返回信息 # 注意:此字段可能返回 null,表示取不到有效值。 # @type CaptchaMsg: String # @param CaptchaCode: 成功返回0 其它失败 # @type CaptchaCode: Integer # @param CheckTicketSum: 票据校验总量 # @type CheckTicketSum: Integer # @param TicketThroughputSum: 票据验证通过量 # @type TicketThroughputSum: Integer # @param TicketInterceptSum: 票据验证拦截量 # @type TicketInterceptSum: Integer # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :GetSum, :VfySuccSum, :VfySum, :AttackSum, :CaptchaMsg, :CaptchaCode, :CheckTicketSum, :TicketThroughputSum, :TicketInterceptSum, :RequestId def initialize(getsum=nil, vfysuccsum=nil, vfysum=nil, attacksum=nil, captchamsg=nil, captchacode=nil, checkticketsum=nil, ticketthroughputsum=nil, ticketinterceptsum=nil, requestid=nil) @GetSum = getsum @VfySuccSum = vfysuccsum @VfySum = vfysum @AttackSum = attacksum @CaptchaMsg = captchamsg @CaptchaCode = captchacode @CheckTicketSum = checkticketsum @TicketThroughputSum = ticketthroughputsum @TicketInterceptSum = ticketinterceptsum @RequestId = requestid end def deserialize(params) @GetSum = params['GetSum'] @VfySuccSum = params['VfySuccSum'] @VfySum = params['VfySum'] @AttackSum = params['AttackSum'] @CaptchaMsg = params['CaptchaMsg'] @CaptchaCode = params['CaptchaCode'] @CheckTicketSum = params['CheckTicketSum'] @TicketThroughputSum = params['TicketThroughputSum'] @TicketInterceptSum = params['TicketInterceptSum'] @RequestId = params['RequestId'] end end # DescribeCaptchaMiniData请求参数结构体 class DescribeCaptchaMiniDataRequest < TencentCloud::Common::AbstractModel # @param CaptchaAppId: 验证码应用ID # @type CaptchaAppId: Integer # @param Start: 查询开始时间 例如:2019112900 # @type Start: Integer # @param End: 查询结束时间 例如:2019112902 # @type End: Integer # @param Type: 查询类型 安全验证码小程序插件分类查询数据接口,请求量type=0、通过量type=1、验证量type=2、拦截量type=3 小时级查询(五小时左右延迟) # @type Type: Integer attr_accessor :CaptchaAppId, :Start, :End, :Type def initialize(captchaappid=nil, start=nil, _end=nil, type=nil) @CaptchaAppId = captchaappid @Start = start @End = _end @Type = type end def deserialize(params) @CaptchaAppId = params['CaptchaAppId'] @Start = params['Start'] @End = params['End'] @Type = params['Type'] end end # DescribeCaptchaMiniData返回参数结构体 class DescribeCaptchaMiniDataResponse < TencentCloud::Common::AbstractModel # @param CaptchaCode: 返回码 0 成功 其它失败 # @type CaptchaCode: Integer # @param Data: 数据数组 # 注意:此字段可能返回 null,表示取不到有效值。 # @type Data: Array # @param CaptchaMsg: 返回信息描述 # 注意:此字段可能返回 null,表示取不到有效值。 # @type CaptchaMsg: String # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :CaptchaCode, :Data, :CaptchaMsg, :RequestId def initialize(captchacode=nil, data=nil, captchamsg=nil, requestid=nil) @CaptchaCode = captchacode @Data = data @CaptchaMsg = captchamsg @RequestId = requestid end def deserialize(params) @CaptchaCode = params['CaptchaCode'] unless params['Data'].nil? @Data = [] params['Data'].each do |i| captchaquerydata_tmp = CaptchaQueryData.new captchaquerydata_tmp.deserialize(i) @Data << captchaquerydata_tmp end end @CaptchaMsg = params['CaptchaMsg'] @RequestId = params['RequestId'] end end # DescribeCaptchaMiniDataSum请求参数结构体 class DescribeCaptchaMiniDataSumRequest < TencentCloud::Common::AbstractModel # @param CaptchaAppId: 验证码应用ID # @type CaptchaAppId: Integer # @param Start: 查询开始时间 # @type Start: Integer # @param End: 查询结束时间 # @type End: Integer attr_accessor :CaptchaAppId, :Start, :End def initialize(captchaappid=nil, start=nil, _end=nil) @CaptchaAppId = captchaappid @Start = start @End = _end end def deserialize(params) @CaptchaAppId = params['CaptchaAppId'] @Start = params['Start'] @End = params['End'] end end # DescribeCaptchaMiniDataSum返回参数结构体 class DescribeCaptchaMiniDataSumResponse < TencentCloud::Common::AbstractModel # @param GetSum: 请求总量 # 注意:此字段可能返回 null,表示取不到有效值。 # @type GetSum: Integer # @param VfySuccSum: 请求验证成功量 # 注意:此字段可能返回 null,表示取不到有效值。 # @type VfySuccSum: Integer # @param VfySum: 请求验证量 # 注意:此字段可能返回 null,表示取不到有效值。 # @type VfySum: Integer # @param AttackSum: 拦截攻击量 # 注意:此字段可能返回 null,表示取不到有效值。 # @type AttackSum: Integer # @param CaptchaMsg: 返回信息 # 注意:此字段可能返回 null,表示取不到有效值。 # @type CaptchaMsg: String # @param CaptchaCode: 成功返回0 其它失败 # 注意:此字段可能返回 null,表示取不到有效值。 # @type CaptchaCode: Integer # @param CheckTicketSum: 票据校验总量 # 注意:此字段可能返回 null,表示取不到有效值。 # @type CheckTicketSum: Integer # @param TicketThroughputSum: 票据验证通过量 # 注意:此字段可能返回 null,表示取不到有效值。 # @type TicketThroughputSum: Integer # @param TicketInterceptSum: 票据验证拦截量 # 注意:此字段可能返回 null,表示取不到有效值。 # @type TicketInterceptSum: Integer # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :GetSum, :VfySuccSum, :VfySum, :AttackSum, :CaptchaMsg, :CaptchaCode, :CheckTicketSum, :TicketThroughputSum, :TicketInterceptSum, :RequestId def initialize(getsum=nil, vfysuccsum=nil, vfysum=nil, attacksum=nil, captchamsg=nil, captchacode=nil, checkticketsum=nil, ticketthroughputsum=nil, ticketinterceptsum=nil, requestid=nil) @GetSum = getsum @VfySuccSum = vfysuccsum @VfySum = vfysum @AttackSum = attacksum @CaptchaMsg = captchamsg @CaptchaCode = captchacode @CheckTicketSum = checkticketsum @TicketThroughputSum = ticketthroughputsum @TicketInterceptSum = ticketinterceptsum @RequestId = requestid end def deserialize(params) @GetSum = params['GetSum'] @VfySuccSum = params['VfySuccSum'] @VfySum = params['VfySum'] @AttackSum = params['AttackSum'] @CaptchaMsg = params['CaptchaMsg'] @CaptchaCode = params['CaptchaCode'] @CheckTicketSum = params['CheckTicketSum'] @TicketThroughputSum = params['TicketThroughputSum'] @TicketInterceptSum = params['TicketInterceptSum'] @RequestId = params['RequestId'] end end # DescribeCaptchaMiniOperData请求参数结构体 class DescribeCaptchaMiniOperDataRequest < TencentCloud::Common::AbstractModel # @param CaptchaAppId: 验证码应用ID # @type CaptchaAppId: Integer # @param Start: 查询开始时间 # @type Start: Integer # @param Type: 查询类型 # @type Type: Integer # @param End: 查询结束时间 # @type End: Integer attr_accessor :CaptchaAppId, :Start, :Type, :End def initialize(captchaappid=nil, start=nil, type=nil, _end=nil) @CaptchaAppId = captchaappid @Start = start @Type = type @End = _end end def deserialize(params) @CaptchaAppId = params['CaptchaAppId'] @Start = params['Start'] @Type = params['Type'] @End = params['End'] end end # DescribeCaptchaMiniOperData返回参数结构体 class DescribeCaptchaMiniOperDataResponse < TencentCloud::Common::AbstractModel # @param CaptchaCode: 成功返回 0 其它失败 # @type CaptchaCode: Integer # @param CaptchaMsg: 返回信息 # 注意:此字段可能返回 null,表示取不到有效值。 # @type CaptchaMsg: String # @param Data: 用户操作数据 # 注意:此字段可能返回 null,表示取不到有效值。 # @type Data: :class:`Tencentcloud::Captcha.v20190722.models.CaptchaOperDataRes` # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :CaptchaCode, :CaptchaMsg, :Data, :RequestId def initialize(captchacode=nil, captchamsg=nil, data=nil, requestid=nil) @CaptchaCode = captchacode @CaptchaMsg = captchamsg @Data = data @RequestId = requestid end def deserialize(params) @CaptchaCode = params['CaptchaCode'] @CaptchaMsg = params['CaptchaMsg'] unless params['Data'].nil? @Data = CaptchaOperDataRes.new @Data.deserialize(params['Data']) end @RequestId = params['RequestId'] end end # DescribeCaptchaMiniResult请求参数结构体 class DescribeCaptchaMiniResultRequest < TencentCloud::Common::AbstractModel # @param CaptchaType: 固定填值:9(滑块验证码) # @type CaptchaType: Integer # @param Ticket: 验证码返回给用户的票据 # @type Ticket: String # @param UserIp: 业务侧获取到的验证码使用者的外网IP # @type UserIp: String # @param CaptchaAppId: 验证码应用ID。登录 [验证码控制台](https://console.cloud.tencent.com/captcha/graphical),在验证列表的【密钥】列,即可查看到CaptchaAppId。 # @type CaptchaAppId: Integer # @param AppSecretKey: 验证码应用密钥。登录 [验证码控制台](https://console.cloud.tencent.com/captcha/graphical),在验证列表的【密钥】列,即可查看到AppSecretKey。AppSecretKey属于服务器端校验验证码票据的密钥,请妥善保密,请勿泄露给第三方。 # @type AppSecretKey: String # @param BusinessId: 业务 ID,网站或应用在多个业务中使用此服务,通过此 ID 区分统计数据 # @type BusinessId: Integer # @param SceneId: 场景 ID,网站或应用的业务下有多个场景使用此服务,通过此 ID 区分统计数据 # @type SceneId: Integer # @param MacAddress: mac 地址或设备唯一标识 # @type MacAddress: String # @param Imei: 手机设备号 # @type Imei: String attr_accessor :CaptchaType, :Ticket, :UserIp, :CaptchaAppId, :AppSecretKey, :BusinessId, :SceneId, :MacAddress, :Imei def initialize(captchatype=nil, ticket=nil, userip=nil, captchaappid=nil, appsecretkey=nil, businessid=nil, sceneid=nil, macaddress=nil, imei=nil) @CaptchaType = captchatype @Ticket = ticket @UserIp = userip @CaptchaAppId = captchaappid @AppSecretKey = appsecretkey @BusinessId = businessid @SceneId = sceneid @MacAddress = macaddress @Imei = imei end def deserialize(params) @CaptchaType = params['CaptchaType'] @Ticket = params['Ticket'] @UserIp = params['UserIp'] @CaptchaAppId = params['CaptchaAppId'] @AppSecretKey = params['AppSecretKey'] @BusinessId = params['BusinessId'] @SceneId = params['SceneId'] @MacAddress = params['MacAddress'] @Imei = params['Imei'] end end # DescribeCaptchaMiniResult返回参数结构体 class DescribeCaptchaMiniResultResponse < TencentCloud::Common::AbstractModel # @param CaptchaCode: 1 ticket verification succeeded 票据验证成功 # 7 CaptchaAppId does not match 票据与验证码应用APPID不匹配 # 8 ticket expired 票据超时 # 10 ticket format error 票据格式不正确 # 15 ticket decryption failed 票据解密失败 # 16 CaptchaAppId wrong format 检查验证码应用APPID错误 # 21 ticket error 票据验证错误 # 25 invalid ticket 无效票据 # 26 system internal error 系统内部错误 # 31 UnauthorizedOperation.Unauthorized 无有效套餐包/账户已欠费 # 100 param err 参数校验错误 # @type CaptchaCode: Integer # @param CaptchaMsg: 状态描述及验证错误信息 # 注意:此字段可能返回 null,表示取不到有效值。 # @type CaptchaMsg: String # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :CaptchaCode, :CaptchaMsg, :RequestId def initialize(captchacode=nil, captchamsg=nil, requestid=nil) @CaptchaCode = captchacode @CaptchaMsg = captchamsg @RequestId = requestid end def deserialize(params) @CaptchaCode = params['CaptchaCode'] @CaptchaMsg = params['CaptchaMsg'] @RequestId = params['RequestId'] end end # DescribeCaptchaMiniRiskResult请求参数结构体 class DescribeCaptchaMiniRiskResultRequest < TencentCloud::Common::AbstractModel # @param CaptchaType: 固定填值:9(滑块验证码) # @type CaptchaType: Integer # @param Ticket: 验证码返回给用户的票据 # @type Ticket: String # @param UserIp: 业务侧获取到的验证码使用者的外网IP # @type UserIp: String # @param CaptchaAppId: 验证码应用APPID # @type CaptchaAppId: Integer # @param AppSecretKey: 用于服务器端校验验证码票据的验证密钥,请妥善保密,请勿泄露给第三方 # @type AppSecretKey: String # @param BusinessId: 业务 ID,网站或应用在多个业务中使用此服务,通过此 ID 区分统计数据 # @type BusinessId: Integer # @param SceneId: 场景 ID,网站或应用的业务下有多个场景使用此服务,通过此 ID 区分统计数据 # @type SceneId: Integer # @param MacAddress: mac 地址或设备唯一标识 # @type MacAddress: String # @param Imei: 手机设备号 # @type Imei: String # @param SceneCode: 验证场景:1 活动防刷场景,2 登录保护场景,3 注册保护场景。根据需求选择场景参数。 # @type SceneCode: Integer # @param WeChatOpenId: 用户操作来源的微信开放账号 # @type WeChatOpenId: String attr_accessor :CaptchaType, :Ticket, :UserIp, :CaptchaAppId, :AppSecretKey, :BusinessId, :SceneId, :MacAddress, :Imei, :SceneCode, :WeChatOpenId def initialize(captchatype=nil, ticket=nil, userip=nil, captchaappid=nil, appsecretkey=nil, businessid=nil, sceneid=nil, macaddress=nil, imei=nil, scenecode=nil, wechatopenid=nil) @CaptchaType = captchatype @Ticket = ticket @UserIp = userip @CaptchaAppId = captchaappid @AppSecretKey = appsecretkey @BusinessId = businessid @SceneId = sceneid @MacAddress = macaddress @Imei = imei @SceneCode = scenecode @WeChatOpenId = wechatopenid end def deserialize(params) @CaptchaType = params['CaptchaType'] @Ticket = params['Ticket'] @UserIp = params['UserIp'] @CaptchaAppId = params['CaptchaAppId'] @AppSecretKey = params['AppSecretKey'] @BusinessId = params['BusinessId'] @SceneId = params['SceneId'] @MacAddress = params['MacAddress'] @Imei = params['Imei'] @SceneCode = params['SceneCode'] @WeChatOpenId = params['WeChatOpenId'] end end # DescribeCaptchaMiniRiskResult返回参数结构体 class DescribeCaptchaMiniRiskResultResponse < TencentCloud::Common::AbstractModel # @param CaptchaCode: 1 ticket verification succeeded 票据验证成功 # 7 CaptchaAppId does not match 票据与验证码应用APPID不匹配 # 8 ticket expired 票据超时 # 10 ticket format error 票据格式不正确 # 15 ticket decryption failed 票据解密失败 # 16 CaptchaAppId wrong format 检查验证码应用APPID错误 # 21 ticket error 票据验证错误 # 25 bad visitor 策略拦截 # 26 system internal error 系统内部错误 # 100 param err 参数校验错误 # @type CaptchaCode: Integer # @param CaptchaMsg: 状态描述及验证错误信息 # 注意:此字段可能返回 null,表示取不到有效值。 # 注意:此字段可能返回 null,表示取不到有效值。 # @type CaptchaMsg: String # @param ManageMarketingRiskValue: 拦截策略返回信息 # 注意:此字段可能返回 null,表示取不到有效值。 # 注意:此字段可能返回 null,表示取不到有效值。 # @type ManageMarketingRiskValue: :class:`Tencentcloud::Captcha.v20190722.models.OutputManageMarketingRiskValue` # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :CaptchaCode, :CaptchaMsg, :ManageMarketingRiskValue, :RequestId def initialize(captchacode=nil, captchamsg=nil, managemarketingriskvalue=nil, requestid=nil) @CaptchaCode = captchacode @CaptchaMsg = captchamsg @ManageMarketingRiskValue = managemarketingriskvalue @RequestId = requestid end def deserialize(params) @CaptchaCode = params['CaptchaCode'] @CaptchaMsg = params['CaptchaMsg'] unless params['ManageMarketingRiskValue'].nil? @ManageMarketingRiskValue = OutputManageMarketingRiskValue.new @ManageMarketingRiskValue.deserialize(params['ManageMarketingRiskValue']) end @RequestId = params['RequestId'] end end # DescribeCaptchaOperData请求参数结构体 class DescribeCaptchaOperDataRequest < TencentCloud::Common::AbstractModel # @param CaptchaAppId: 验证码应用ID # @type CaptchaAppId: Integer # @param Start: 查询开始时间 # @type Start: Integer # @param Type: 查询类型 # @type Type: Integer # @param End: 查询结束时间 # @type End: Integer attr_accessor :CaptchaAppId, :Start, :Type, :End def initialize(captchaappid=nil, start=nil, type=nil, _end=nil) @CaptchaAppId = captchaappid @Start = start @Type = type @End = _end end def deserialize(params) @CaptchaAppId = params['CaptchaAppId'] @Start = params['Start'] @Type = params['Type'] @End = params['End'] end end # DescribeCaptchaOperData返回参数结构体 class DescribeCaptchaOperDataResponse < TencentCloud::Common::AbstractModel # @param CaptchaCode: 成功返回 0 其它失败 # @type CaptchaCode: Integer # @param CaptchaMsg: 返回信息 # 注意:此字段可能返回 null,表示取不到有效值。 # @type CaptchaMsg: String # @param Data: 用户操作数据 # 注意:此字段可能返回 null,表示取不到有效值。 # @type Data: :class:`Tencentcloud::Captcha.v20190722.models.CaptchaOperDataRes` # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :CaptchaCode, :CaptchaMsg, :Data, :RequestId def initialize(captchacode=nil, captchamsg=nil, data=nil, requestid=nil) @CaptchaCode = captchacode @CaptchaMsg = captchamsg @Data = data @RequestId = requestid end def deserialize(params) @CaptchaCode = params['CaptchaCode'] @CaptchaMsg = params['CaptchaMsg'] unless params['Data'].nil? @Data = CaptchaOperDataRes.new @Data.deserialize(params['Data']) end @RequestId = params['RequestId'] end end # DescribeCaptchaResult请求参数结构体 class DescribeCaptchaResultRequest < TencentCloud::Common::AbstractModel # @param CaptchaType: 固定填值:9。可在控制台配置不同验证码类型。 # @type CaptchaType: Integer # @param Ticket: 前端回调函数返回的用户验证票据 # @type Ticket: String # @param UserIp: 业务侧获取到的验证码使用者的外网IP # @type UserIp: String # @param Randstr: 前端回调函数返回的随机字符串 # @type Randstr: String # @param CaptchaAppId: 验证码应用ID。登录 [验证码控制台](https://console.cloud.tencent.com/captcha/graphical),在验证列表的【密钥】列,即可查看到CaptchaAppId。 # @type CaptchaAppId: Integer # @param AppSecretKey: 验证码应用密钥。登录 [验证码控制台](https://console.cloud.tencent.com/captcha/graphical),在验证列表的【密钥】列,即可查看到AppSecretKey。AppSecretKey属于服务器端校验验证码票据的密钥,请妥善保密,请勿泄露给第三方。 # @type AppSecretKey: String # @param BusinessId: 业务 ID,网站或应用在多个业务中使用此服务,通过此 ID 区分统计数据 # @type BusinessId: Integer # @param SceneId: 场景 ID,网站或应用的业务下有多个场景使用此服务,通过此 ID 区分统计数据 # @type SceneId: Integer # @param MacAddress: mac 地址或设备唯一标识 # @type MacAddress: String # @param Imei: 手机设备号 # @type Imei: String # @param NeedGetCaptchaTime: 是否返回前端获取验证码时间,取值1:需要返回 # @type NeedGetCaptchaTime: Integer attr_accessor :CaptchaType, :Ticket, :UserIp, :Randstr, :CaptchaAppId, :AppSecretKey, :BusinessId, :SceneId, :MacAddress, :Imei, :NeedGetCaptchaTime def initialize(captchatype=nil, ticket=nil, userip=nil, randstr=nil, captchaappid=nil, appsecretkey=nil, businessid=nil, sceneid=nil, macaddress=nil, imei=nil, needgetcaptchatime=nil) @CaptchaType = captchatype @Ticket = ticket @UserIp = userip @Randstr = randstr @CaptchaAppId = captchaappid @AppSecretKey = appsecretkey @BusinessId = businessid @SceneId = sceneid @MacAddress = macaddress @Imei = imei @NeedGetCaptchaTime = needgetcaptchatime end def deserialize(params) @CaptchaType = params['CaptchaType'] @Ticket = params['Ticket'] @UserIp = params['UserIp'] @Randstr = params['Randstr'] @CaptchaAppId = params['CaptchaAppId'] @AppSecretKey = params['AppSecretKey'] @BusinessId = params['BusinessId'] @SceneId = params['SceneId'] @MacAddress = params['MacAddress'] @Imei = params['Imei'] @NeedGetCaptchaTime = params['NeedGetCaptchaTime'] end end # DescribeCaptchaResult返回参数结构体 class DescribeCaptchaResultResponse < TencentCloud::Common::AbstractModel # @param CaptchaCode: 1 OK 验证通过 # 7 captcha no match 传入的Randstr不合法,请检查Randstr是否与前端返回的Randstr一致 # 8 ticket expired 传入的Ticket已过期(Ticket有效期5分钟),请重新生成Ticket、Randstr进行校验 # 9 ticket reused 传入的Ticket被重复使用,请重新生成Ticket、Randstr进行校验 # 15 decrypt fail 传入的Ticket不合法,请检查Ticket是否与前端返回的Ticket一致 # 16 appid-ticket mismatch 传入的CaptchaAppId错误,请检查CaptchaAppId是否与前端传入的CaptchaAppId一致,并且保障CaptchaAppId是从验证码控制台【验证管理】->【基础配置】中获取 # 21 diff 票据校验异常,可能的原因是(1)若Ticket包含terror前缀,一般是由于用户网络较差,导致前端自动容灾,而生成了容灾票据,业务侧可根据需要进行跳过或二次处理。(2)若Ticket不包含terror前缀,则是由于验证码风控系统发现请求有安全风险,业务侧可根据需要进行拦截。 # 100 appid-secretkey-ticket mismatch 参数校验错误,(1)请检查CaptchaAppId与AppSecretKey是否正确,CaptchaAppId、AppSecretKey需要在验证码控制台【验证管理】>【基础配置】中获取(2)请检查传入的Ticket是否由传入的CaptchaAppId生成 # @type CaptchaCode: Integer # @param CaptchaMsg: 状态描述及验证错误信息 # 注意:此字段可能返回 null,表示取不到有效值。 # @type CaptchaMsg: String # @param EvilLevel: 无感验证模式下,该参数返回验证结果: # EvilLevel=0 请求无恶意 # EvilLevel=100 请求有恶意 # 注意:此字段可能返回 null,表示取不到有效值。 # @type EvilLevel: Integer # @param GetCaptchaTime: 前端获取验证码时间,时间戳格式 # 注意:此字段可能返回 null,表示取不到有效值。 # @type GetCaptchaTime: Integer # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :CaptchaCode, :CaptchaMsg, :EvilLevel, :GetCaptchaTime, :RequestId def initialize(captchacode=nil, captchamsg=nil, evillevel=nil, getcaptchatime=nil, requestid=nil) @CaptchaCode = captchacode @CaptchaMsg = captchamsg @EvilLevel = evillevel @GetCaptchaTime = getcaptchatime @RequestId = requestid end def deserialize(params) @CaptchaCode = params['CaptchaCode'] @CaptchaMsg = params['CaptchaMsg'] @EvilLevel = params['EvilLevel'] @GetCaptchaTime = params['GetCaptchaTime'] @RequestId = params['RequestId'] end end # DescribeCaptchaTicketData请求参数结构体 class DescribeCaptchaTicketDataRequest < TencentCloud::Common::AbstractModel # @param CaptchaAppId: 验证码应用ID # @type CaptchaAppId: Integer # @param Start: 查询开始时间 例如:20200909 # @type Start: Integer # @param End: 查询结束时间 例如:20220314 # @type End: Integer attr_accessor :CaptchaAppId, :Start, :End def initialize(captchaappid=nil, start=nil, _end=nil) @CaptchaAppId = captchaappid @Start = start @End = _end end def deserialize(params) @CaptchaAppId = params['CaptchaAppId'] @Start = params['Start'] @End = params['End'] end end # DescribeCaptchaTicketData返回参数结构体 class DescribeCaptchaTicketDataResponse < TencentCloud::Common::AbstractModel # @param CaptchaCode: 成功返回 0 其它失败 # @type CaptchaCode: Integer # @param CaptchaMsg: 返回信息 # 注意:此字段可能返回 null,表示取不到有效值。 # @type CaptchaMsg: String # @param Data: 验证码票据信息 # 注意:此字段可能返回 null,表示取不到有效值。 # @type Data: :class:`Tencentcloud::Captcha.v20190722.models.CaptchaTicketDataRes` # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :CaptchaCode, :CaptchaMsg, :Data, :RequestId def initialize(captchacode=nil, captchamsg=nil, data=nil, requestid=nil) @CaptchaCode = captchacode @CaptchaMsg = captchamsg @Data = data @RequestId = requestid end def deserialize(params) @CaptchaCode = params['CaptchaCode'] @CaptchaMsg = params['CaptchaMsg'] unless params['Data'].nil? @Data = CaptchaTicketDataRes.new @Data.deserialize(params['Data']) end @RequestId = params['RequestId'] end end # DescribeCaptchaUserAllAppId请求参数结构体 class DescribeCaptchaUserAllAppIdRequest < TencentCloud::Common::AbstractModel def initialize() end def deserialize(params) end end # DescribeCaptchaUserAllAppId返回参数结构体 class DescribeCaptchaUserAllAppIdResponse < TencentCloud::Common::AbstractModel # @param Data: 用户注册的所有Appid和应用名称 # 注意:此字段可能返回 null,表示取不到有效值。 # @type Data: Array # @param CaptchaCode: 成功返回 0 其它失败 # @type CaptchaCode: Integer # @param CaptchaMsg: 返回操作信息 # 注意:此字段可能返回 null,表示取不到有效值。 # @type CaptchaMsg: String # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :Data, :CaptchaCode, :CaptchaMsg, :RequestId def initialize(data=nil, captchacode=nil, captchamsg=nil, requestid=nil) @Data = data @CaptchaCode = captchacode @CaptchaMsg = captchamsg @RequestId = requestid end def deserialize(params) unless params['Data'].nil? @Data = [] params['Data'].each do |i| captchauserallappid_tmp = CaptchaUserAllAppId.new captchauserallappid_tmp.deserialize(i) @Data << captchauserallappid_tmp end end @CaptchaCode = params['CaptchaCode'] @CaptchaMsg = params['CaptchaMsg'] @RequestId = params['RequestId'] end end # GetTotalTicketStatistics请求参数结构体 class GetTotalTicketStatisticsRequest < TencentCloud::Common::AbstractModel # @param StartTimeStr: 开始时间 # @type StartTimeStr: String # @param EndTimeStr: 结束时间 # @type EndTimeStr: String # @param Dimension: 查询粒度 # 分钟:“1” # 小时:“2” # 天:“3” # @type Dimension: String attr_accessor :StartTimeStr, :EndTimeStr, :Dimension def initialize(starttimestr=nil, endtimestr=nil, dimension=nil) @StartTimeStr = starttimestr @EndTimeStr = endtimestr @Dimension = dimension end def deserialize(params) @StartTimeStr = params['StartTimeStr'] @EndTimeStr = params['EndTimeStr'] @Dimension = params['Dimension'] end end # GetTotalTicketStatistics返回参数结构体 class GetTotalTicketStatisticsResponse < TencentCloud::Common::AbstractModel # @param Data: 返回数据 # 注意:此字段可能返回 null,表示取不到有效值。 # @type Data: :class:`Tencentcloud::Captcha.v20190722.models.CaptchaStatisticObj` # @param CaptchaCode: 返回码 # @type CaptchaCode: Integer # @param CaptchaMsg: 返回信息 # @type CaptchaMsg: String # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :Data, :CaptchaCode, :CaptchaMsg, :RequestId def initialize(data=nil, captchacode=nil, captchamsg=nil, requestid=nil) @Data = data @CaptchaCode = captchacode @CaptchaMsg = captchamsg @RequestId = requestid end def deserialize(params) unless params['Data'].nil? @Data = CaptchaStatisticObj.new @Data.deserialize(params['Data']) end @CaptchaCode = params['CaptchaCode'] @CaptchaMsg = params['CaptchaMsg'] @RequestId = params['RequestId'] end end # 拦截率趋势obj class InterceptPerTrendObj < TencentCloud::Common::AbstractModel # @param Ftime: 时间参数 # @type Ftime: String # @param RequestInterceptPer: 拦截率 # @type RequestInterceptPer: Float # @param AnswerInterceptPer: 答案拦截率 # @type AnswerInterceptPer: Float # @param PolicyInterceptPer: 策略拦截率 # @type PolicyInterceptPer: Float attr_accessor :Ftime, :RequestInterceptPer, :AnswerInterceptPer, :PolicyInterceptPer def initialize(ftime=nil, requestinterceptper=nil, answerinterceptper=nil, policyinterceptper=nil) @Ftime = ftime @RequestInterceptPer = requestinterceptper @AnswerInterceptPer = answerinterceptper @PolicyInterceptPer = policyinterceptper end def deserialize(params) @Ftime = params['Ftime'] @RequestInterceptPer = params['RequestInterceptPer'] @AnswerInterceptPer = params['AnswerInterceptPer'] @PolicyInterceptPer = params['PolicyInterceptPer'] end end # 拦截策略返回信息 class OutputManageMarketingRiskValue < TencentCloud::Common::AbstractModel # @param UserId: 账号 ID。对应输入参数: AccountType 是 1 时,对应 QQ 的 OpenID。 # AccountType 是 2 时,对应微信的 OpenID/UnionID。 # AccountType 是 4 时,对应手机号。 # AccountType 是 8 时,对应 imei、idfa、imeiMD5 或者 idfaMD5。 # AccountType 是 0 时,对应账号信息。 # AccountType 是 10004 时,对应手机号的 MD5。 # 注意:此字段可能返回 null,表示取不到有效值。 # 注意:此字段可能返回 null,表示取不到有效值。 # @type UserId: String # @param PostTime: 操作时间戳,单位秒(对应输入参数)。 # 注意:此字段可能返回 null,表示取不到有效值。 # 注意:此字段可能返回 null,表示取不到有效值。 # @type PostTime: Integer # @param AssociateAccount: 对应输入参数,AccountType 是 QQ 或微信开放账号时,用于标识 QQ 或微信用户登录 后关联业务自身的账号 ID。 # 注意:此字段可能返回 null,表示取不到有效值。 # 注意:此字段可能返回 null,表示取不到有效值。 # @type AssociateAccount: String # @param UserIp: 业务详情。 注意:此字段可能返回 null,表示取不到有效值。 # 注意:此字段可能返回 null,表示取不到有效值。 # @type UserIp: String # @param RiskLevel: 风险值 pass : 无恶意 # review:需要人工审核 # reject:拒绝,高风险恶意 # 注意:此字段可能返回 null,表示取不到有效值。 # 注意:此字段可能返回 null,表示取不到有效值。 # @type RiskLevel: String # @param RiskType: 风险类型,请查看下面详细说明 注意:此字段可能返回 null,表示取不到有效值。 # 账号风险 # 账号信用低 1 账号近期存在因恶意被处罚历史,网络低活跃,被举报等因素 # 疑似 低活跃账号 11 账号活跃度与正常用户有差异 # 垃圾账号 2 疑似批量注册小号,近期存在严重违规或大量举报 # 疑似小号 21 账号有疑似线上养号,小号等行为 # 疑似 违规账号 22 账号曾有违规行为、曾被举报过、曾因违规被处罚过等 # 无效账号 3 送检账号参数无法成功解析,请检查微信 openid 是否有 # 黑名单 4 该账号在业务侧有过拉黑记录 # 白名单 5 业务自行有添加过白名单记录 # 行为风险 # 批量操作 101 存在 ip/设备/环境等因素的聚集性异常 # 疑似 IP 属性聚集 1011 出现 IP 聚集 # 疑似 设备属性聚集 1012 出现设备聚集 # 自动机 103 疑似自动机批量请求 # 微信登录态无效 104 检查 wxtoken 参数,是否已经失效 # 环境风险 # 环境异常 201 操作 ip/设备/环境存在异常。当前 ip 为非常用 ip 或恶意 ip 段 # 疑似 非常用IP请求 2011 当前请求 IP 非该账号常用 IP # 疑似 IP 异常 2012 使用 idc 机房 ip 或 使用代理 ip 或 使用恶意 ip # 非公网有效 ip 205 传进来的 IP 地址为内网 ip 地址或者 ip 保留地 # 注意:此字段可能返回 null,表示取不到有效值。 # @type RiskType: Array attr_accessor :UserId, :PostTime, :AssociateAccount, :UserIp, :RiskLevel, :RiskType def initialize(userid=nil, posttime=nil, associateaccount=nil, userip=nil, risklevel=nil, risktype=nil) @UserId = userid @PostTime = posttime @AssociateAccount = associateaccount @UserIp = userip @RiskLevel = risklevel @RiskType = risktype end def deserialize(params) @UserId = params['UserId'] @PostTime = params['PostTime'] @AssociateAccount = params['AssociateAccount'] @UserIp = params['UserIp'] @RiskLevel = params['RiskLevel'] @RiskType = params['RiskType'] end end # 验证码请求趋势图obj class RequestTrendObj < TencentCloud::Common::AbstractModel # @param Ftime: 时间参数 # @type Ftime: String # @param RequestAction: 请求量 # @type RequestAction: Integer # @param RequestVerify: 验证量 # @type RequestVerify: Integer # @param RequestThroughput: 通过量 # @type RequestThroughput: Integer # @param RequestIntercept: 拦截量 # @type RequestIntercept: Integer attr_accessor :Ftime, :RequestAction, :RequestVerify, :RequestThroughput, :RequestIntercept def initialize(ftime=nil, requestaction=nil, requestverify=nil, requestthroughput=nil, requestintercept=nil) @Ftime = ftime @RequestAction = requestaction @RequestVerify = requestverify @RequestThroughput = requestthroughput @RequestIntercept = requestintercept end def deserialize(params) @Ftime = params['Ftime'] @RequestAction = params['RequestAction'] @RequestVerify = params['RequestVerify'] @RequestThroughput = params['RequestThroughput'] @RequestIntercept = params['RequestIntercept'] end end # DescribeCaptchaTicketData 返回的数据结构 class TicketAmountUnit < TencentCloud::Common::AbstractModel # @param DateKey: 时间 # @type DateKey: String # @param Amount: 票据验证总量 # @type Amount: Integer attr_accessor :DateKey, :Amount def initialize(datekey=nil, amount=nil) @DateKey = datekey @Amount = amount end def deserialize(params) @DateKey = params['DateKey'] @Amount = params['Amount'] end end # 验证码票据校验趋势obj class TicketCheckTrendObj < TencentCloud::Common::AbstractModel # @param Ftime: 时间参数 # @type Ftime: String # @param TicketCount: 票据校验量 # @type TicketCount: Integer # @param TicketThroughput: 票据通过量 # @type TicketThroughput: Integer # @param TicketIntercept: 票据拦截量 # @type TicketIntercept: Integer attr_accessor :Ftime, :TicketCount, :TicketThroughput, :TicketIntercept def initialize(ftime=nil, ticketcount=nil, ticketthroughput=nil, ticketintercept=nil) @Ftime = ftime @TicketCount = ticketcount @TicketThroughput = ticketthroughput @TicketIntercept = ticketintercept end def deserialize(params) @Ftime = params['Ftime'] @TicketCount = params['TicketCount'] @TicketThroughput = params['TicketThroughput'] @TicketIntercept = params['TicketIntercept'] end end # DescribeCaptchaTicketData 返回的数据结构 class TicketInterceptUnit < TencentCloud::Common::AbstractModel # @param DateKey: 时间 # @type DateKey: String # @param Intercept: 票据验证拦截量 # @type Intercept: Integer attr_accessor :DateKey, :Intercept def initialize(datekey=nil, intercept=nil) @DateKey = datekey @Intercept = intercept end def deserialize(params) @DateKey = params['DateKey'] @Intercept = params['Intercept'] end end # DescribeCaptchaTicketData 返回的数据结构 class TicketThroughUnit < TencentCloud::Common::AbstractModel # @param DateKey: 时间 # @type DateKey: String # @param Through: 票据验证的通过量 # @type Through: Integer attr_accessor :DateKey, :Through def initialize(datekey=nil, through=nil) @DateKey = datekey @Through = through end def deserialize(params) @DateKey = params['DateKey'] @Through = params['Through'] end end # UpdateCaptchaAppIdInfo请求参数结构体 class UpdateCaptchaAppIdInfoRequest < TencentCloud::Common::AbstractModel # @param CaptchaAppId: 验证码应用ID # @type CaptchaAppId: Integer # @param AppName: 应用名 # @type AppName: String # @param DomainLimit: 域名限制 # @type DomainLimit: String # @param SceneType: 场景类型 # @type SceneType: Integer # @param CapType: 验证码类型 # @type CapType: Integer # @param EvilInterceptGrade: 风险级别 # @type EvilInterceptGrade: Integer # @param SmartVerify: 智能检测 # @type SmartVerify: Integer # @param SmartEngine: 开启智能引擎 # @type SmartEngine: Integer # @param SchemeColor: web风格 # @type SchemeColor: String # @param CaptchaLanguage: 语言 # @type CaptchaLanguage: Integer # @param MailAlarm: 告警邮箱 # @type MailAlarm: String # @param TopFullScreen: 是否全屏 # @type TopFullScreen: Integer # @param TrafficThreshold: 流量限制 # @type TrafficThreshold: Integer attr_accessor :CaptchaAppId, :AppName, :DomainLimit, :SceneType, :CapType, :EvilInterceptGrade, :SmartVerify, :SmartEngine, :SchemeColor, :CaptchaLanguage, :MailAlarm, :TopFullScreen, :TrafficThreshold def initialize(captchaappid=nil, appname=nil, domainlimit=nil, scenetype=nil, captype=nil, evilinterceptgrade=nil, smartverify=nil, smartengine=nil, schemecolor=nil, captchalanguage=nil, mailalarm=nil, topfullscreen=nil, trafficthreshold=nil) @CaptchaAppId = captchaappid @AppName = appname @DomainLimit = domainlimit @SceneType = scenetype @CapType = captype @EvilInterceptGrade = evilinterceptgrade @SmartVerify = smartverify @SmartEngine = smartengine @SchemeColor = schemecolor @CaptchaLanguage = captchalanguage @MailAlarm = mailalarm @TopFullScreen = topfullscreen @TrafficThreshold = trafficthreshold end def deserialize(params) @CaptchaAppId = params['CaptchaAppId'] @AppName = params['AppName'] @DomainLimit = params['DomainLimit'] @SceneType = params['SceneType'] @CapType = params['CapType'] @EvilInterceptGrade = params['EvilInterceptGrade'] @SmartVerify = params['SmartVerify'] @SmartEngine = params['SmartEngine'] @SchemeColor = params['SchemeColor'] @CaptchaLanguage = params['CaptchaLanguage'] @MailAlarm = params['MailAlarm'] @TopFullScreen = params['TopFullScreen'] @TrafficThreshold = params['TrafficThreshold'] end end # UpdateCaptchaAppIdInfo返回参数结构体 class UpdateCaptchaAppIdInfoResponse < TencentCloud::Common::AbstractModel # @param CaptchaCode: 返回码 0 成功,其它失败 # @type CaptchaCode: Integer # @param CaptchaMsg: 返回操作信息 # 注意:此字段可能返回 null,表示取不到有效值。 # @type CaptchaMsg: String # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :CaptchaCode, :CaptchaMsg, :RequestId def initialize(captchacode=nil, captchamsg=nil, requestid=nil) @CaptchaCode = captchacode @CaptchaMsg = captchamsg @RequestId = requestid end def deserialize(params) @CaptchaCode = params['CaptchaCode'] @CaptchaMsg = params['CaptchaMsg'] @RequestId = params['RequestId'] end end end end end