Class: TencentCloud::Cls::V20201016::KeyRegexInfo

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

Overview

需要过滤日志的key,及其对应的regex

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key = nil, regex = nil) ⇒ KeyRegexInfo

Returns a new instance of KeyRegexInfo.



12003
12004
12005
12006
# File 'lib/v20201016/models.rb', line 12003

def initialize(key=nil, regex=nil)
  @Key = key
  @Regex = regex
end

Instance Attribute Details

#Key ⇒ Object

Parameters:

  • Key: —

    需要过滤日志的key

  • Regex: —

    key对应的过滤规则regex



12001
12002
12003
# File 'lib/v20201016/models.rb', line 12001

def Key
  @Key
end

#Regex ⇒ Object

Parameters:

  • Key: —

    需要过滤日志的key

  • Regex: —

    key对应的过滤规则regex



12001
12002
12003
# File 'lib/v20201016/models.rb', line 12001

def Regex
  @Regex
end

Instance Method Details

#deserialize(params) ⇒ Object



12008
12009
12010
12011
# File 'lib/v20201016/models.rb', line 12008

def deserialize(params)
  @Key = params['Key']
  @Regex = params['Regex']
end