Class: TencentCloud::Waf::V20180125::ApiSecCustomEventRule

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20180125/models.rb

Overview

api安全自定义事件规则结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(rulename = nil, status = nil, apinameop = nil, description = nil, updatetime = nil, matchrulelist = nil, statrulelist = nil, reqfrequency = nil, risklevel = nil, source = nil) ⇒ ApiSecCustomEventRule

Returns a new instance of ApiSecCustomEventRule.



1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
# File 'lib/v20180125/models.rb', line 1469

def initialize(rulename=nil, status=nil, apinameop=nil, description=nil, updatetime=nil, matchrulelist=nil, statrulelist=nil, reqfrequency=nil, risklevel=nil, source=nil)
  @RuleName = rulename
  @Status = status
  @ApiNameOp = apinameop
  @Description = description
  @UpdateTime = updatetime
  @MatchRuleList = matchrulelist
  @StatRuleList = statrulelist
  @ReqFrequency = reqfrequency
  @RiskLevel = risklevel
  @Source = source
end

Instance Attribute Details

#ApiNameOpObject

Parameters:

  • RuleName:

    规则名称

  • Status:

    开关,1:开,0:关

  • ApiNameOp:

    api匹配列表

  • Description:

    事件详情

  • UpdateTime:

    时间戳,出参有该值,入参不需要传没有

  • MatchRuleList:

    匹配规则列表

  • StatRuleList:

    统计规则列表

  • ReqFrequency:

    访问频次,第一个字段表示次数,第二个字段表示分钟

  • RiskLevel:

    风险等级,取值为100,200,300,分别表示低位、中危、高危

  • Source:

    规则来源



1467
1468
1469
# File 'lib/v20180125/models.rb', line 1467

def ApiNameOp
  @ApiNameOp
end

#DescriptionObject

Parameters:

  • RuleName:

    规则名称

  • Status:

    开关,1:开,0:关

  • ApiNameOp:

    api匹配列表

  • Description:

    事件详情

  • UpdateTime:

    时间戳,出参有该值,入参不需要传没有

  • MatchRuleList:

    匹配规则列表

  • StatRuleList:

    统计规则列表

  • ReqFrequency:

    访问频次,第一个字段表示次数,第二个字段表示分钟

  • RiskLevel:

    风险等级,取值为100,200,300,分别表示低位、中危、高危

  • Source:

    规则来源



1467
1468
1469
# File 'lib/v20180125/models.rb', line 1467

def Description
  @Description
end

#MatchRuleListObject

Parameters:

  • RuleName:

    规则名称

  • Status:

    开关,1:开,0:关

  • ApiNameOp:

    api匹配列表

  • Description:

    事件详情

  • UpdateTime:

    时间戳,出参有该值,入参不需要传没有

  • MatchRuleList:

    匹配规则列表

  • StatRuleList:

    统计规则列表

  • ReqFrequency:

    访问频次,第一个字段表示次数,第二个字段表示分钟

  • RiskLevel:

    风险等级,取值为100,200,300,分别表示低位、中危、高危

  • Source:

    规则来源



1467
1468
1469
# File 'lib/v20180125/models.rb', line 1467

def MatchRuleList
  @MatchRuleList
end

#ReqFrequencyObject

Parameters:

  • RuleName:

    规则名称

  • Status:

    开关,1:开,0:关

  • ApiNameOp:

    api匹配列表

  • Description:

    事件详情

  • UpdateTime:

    时间戳,出参有该值,入参不需要传没有

  • MatchRuleList:

    匹配规则列表

  • StatRuleList:

    统计规则列表

  • ReqFrequency:

    访问频次,第一个字段表示次数,第二个字段表示分钟

  • RiskLevel:

    风险等级,取值为100,200,300,分别表示低位、中危、高危

  • Source:

    规则来源



1467
1468
1469
# File 'lib/v20180125/models.rb', line 1467

def ReqFrequency
  @ReqFrequency
end

#RiskLevelObject

Parameters:

  • RuleName:

    规则名称

  • Status:

    开关,1:开,0:关

  • ApiNameOp:

    api匹配列表

  • Description:

    事件详情

  • UpdateTime:

    时间戳,出参有该值,入参不需要传没有

  • MatchRuleList:

    匹配规则列表

  • StatRuleList:

    统计规则列表

  • ReqFrequency:

    访问频次,第一个字段表示次数,第二个字段表示分钟

  • RiskLevel:

    风险等级,取值为100,200,300,分别表示低位、中危、高危

  • Source:

    规则来源



1467
1468
1469
# File 'lib/v20180125/models.rb', line 1467

def RiskLevel
  @RiskLevel
end

#RuleNameObject

Parameters:

  • RuleName:

    规则名称

  • Status:

    开关,1:开,0:关

  • ApiNameOp:

    api匹配列表

  • Description:

    事件详情

  • UpdateTime:

    时间戳,出参有该值,入参不需要传没有

  • MatchRuleList:

    匹配规则列表

  • StatRuleList:

    统计规则列表

  • ReqFrequency:

    访问频次,第一个字段表示次数,第二个字段表示分钟

  • RiskLevel:

    风险等级,取值为100,200,300,分别表示低位、中危、高危

  • Source:

    规则来源



1467
1468
1469
# File 'lib/v20180125/models.rb', line 1467

def RuleName
  @RuleName
end

#SourceObject

Parameters:

  • RuleName:

    规则名称

  • Status:

    开关,1:开,0:关

  • ApiNameOp:

    api匹配列表

  • Description:

    事件详情

  • UpdateTime:

    时间戳,出参有该值,入参不需要传没有

  • MatchRuleList:

    匹配规则列表

  • StatRuleList:

    统计规则列表

  • ReqFrequency:

    访问频次,第一个字段表示次数,第二个字段表示分钟

  • RiskLevel:

    风险等级,取值为100,200,300,分别表示低位、中危、高危

  • Source:

    规则来源



1467
1468
1469
# File 'lib/v20180125/models.rb', line 1467

def Source
  @Source
end

#StatRuleListObject

Parameters:

  • RuleName:

    规则名称

  • Status:

    开关,1:开,0:关

  • ApiNameOp:

    api匹配列表

  • Description:

    事件详情

  • UpdateTime:

    时间戳,出参有该值,入参不需要传没有

  • MatchRuleList:

    匹配规则列表

  • StatRuleList:

    统计规则列表

  • ReqFrequency:

    访问频次,第一个字段表示次数,第二个字段表示分钟

  • RiskLevel:

    风险等级,取值为100,200,300,分别表示低位、中危、高危

  • Source:

    规则来源



1467
1468
1469
# File 'lib/v20180125/models.rb', line 1467

def StatRuleList
  @StatRuleList
end

#StatusObject

Parameters:

  • RuleName:

    规则名称

  • Status:

    开关,1:开,0:关

  • ApiNameOp:

    api匹配列表

  • Description:

    事件详情

  • UpdateTime:

    时间戳,出参有该值,入参不需要传没有

  • MatchRuleList:

    匹配规则列表

  • StatRuleList:

    统计规则列表

  • ReqFrequency:

    访问频次,第一个字段表示次数,第二个字段表示分钟

  • RiskLevel:

    风险等级,取值为100,200,300,分别表示低位、中危、高危

  • Source:

    规则来源



1467
1468
1469
# File 'lib/v20180125/models.rb', line 1467

def Status
  @Status
end

#UpdateTimeObject

Parameters:

  • RuleName:

    规则名称

  • Status:

    开关,1:开,0:关

  • ApiNameOp:

    api匹配列表

  • Description:

    事件详情

  • UpdateTime:

    时间戳,出参有该值,入参不需要传没有

  • MatchRuleList:

    匹配规则列表

  • StatRuleList:

    统计规则列表

  • ReqFrequency:

    访问频次,第一个字段表示次数,第二个字段表示分钟

  • RiskLevel:

    风险等级,取值为100,200,300,分别表示低位、中危、高危

  • Source:

    规则来源



1467
1468
1469
# File 'lib/v20180125/models.rb', line 1467

def UpdateTime
  @UpdateTime
end

Instance Method Details

#deserialize(params) ⇒ Object



1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
# File 'lib/v20180125/models.rb', line 1482

def deserialize(params)
  @RuleName = params['RuleName']
  @Status = params['Status']
  unless params['ApiNameOp'].nil?
    @ApiNameOp = []
    params['ApiNameOp'].each do |i|
      apinameop_tmp = ApiNameOp.new
      apinameop_tmp.deserialize(i)
      @ApiNameOp << apinameop_tmp
    end
  end
  @Description = params['Description']
  @UpdateTime = params['UpdateTime']
  unless params['MatchRuleList'].nil?
    @MatchRuleList = []
    params['MatchRuleList'].each do |i|
      apisecsceneruleentry_tmp = ApiSecSceneRuleEntry.new
      apisecsceneruleentry_tmp.deserialize(i)
      @MatchRuleList << apisecsceneruleentry_tmp
    end
  end
  unless params['StatRuleList'].nil?
    @StatRuleList = []
    params['StatRuleList'].each do |i|
      apisecsceneruleentry_tmp = ApiSecSceneRuleEntry.new
      apisecsceneruleentry_tmp.deserialize(i)
      @StatRuleList << apisecsceneruleentry_tmp
    end
  end
  @ReqFrequency = params['ReqFrequency']
  @RiskLevel = params['RiskLevel']
  @Source = params['Source']
end