Class: TencentCloud::Eb::V20210416::LogFilter

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

Overview

日志查询相关接口filter参数定义

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key = nil, operator = nil, value = nil, type = nil, filters = nil) ⇒ LogFilter



1776
1777
1778
1779
1780
1781
1782
# File 'lib/v20210416/models.rb', line 1776

def initialize(key=nil, operator=nil, value=nil, type=nil, filters=nil)
  @Key = key
  @Operator = operator
  @Value = value
  @Type = type
  @Filters = filters
end

Instance Attribute Details

#FiltersObject



1774
1775
1776
# File 'lib/v20210416/models.rb', line 1774

def Filters
  @Filters
end

#KeyObject



1774
1775
1776
# File 'lib/v20210416/models.rb', line 1774

def Key
  @Key
end

#OperatorObject



1774
1775
1776
# File 'lib/v20210416/models.rb', line 1774

def Operator
  @Operator
end

#TypeObject



1774
1775
1776
# File 'lib/v20210416/models.rb', line 1774

def Type
  @Type
end

#ValueObject



1774
1775
1776
# File 'lib/v20210416/models.rb', line 1774

def Value
  @Value
end

Instance Method Details

#deserialize(params) ⇒ Object



1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
# File 'lib/v20210416/models.rb', line 1784

def deserialize(params)
  @Key = params['Key']
  @Operator = params['Operator']
  @Value = params['Value']
  @Type = params['Type']
  unless params['Filters'].nil?
    @Filters = []
    params['Filters'].each do |i|
      logfilters_tmp = LogFilters.new
      logfilters_tmp.deserialize(i)
      @Filters << logfilters_tmp
    end
  end
end