Class: TencentCloud::Wedata::V20210820::CompareRule

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

Overview

对比规则

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(items = nil, cyclestep = nil, computeexpression = nil) ⇒ CompareRule

Returns a new instance of CompareRule.



4134
4135
4136
4137
4138
# File 'lib/v20210820/models.rb', line 4134

def initialize(items=nil, cyclestep=nil, computeexpression=nil)
  @Items = items
  @CycleStep = cyclestep
  @ComputeExpression = computeexpression
end

Instance Attribute Details

#ComputeExpressionObject

注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Items:

    比较条件列表

  • CycleStep:

    周期性模板默认周期,单位秒

  • ComputeExpression:

    o 表示 或,a 表示 且,数字表示items下标



4132
4133
4134
# File 'lib/v20210820/models.rb', line 4132

def ComputeExpression
  @ComputeExpression
end

#CycleStepObject

注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Items:

    比较条件列表

  • CycleStep:

    周期性模板默认周期,单位秒

  • ComputeExpression:

    o 表示 或,a 表示 且,数字表示items下标



4132
4133
4134
# File 'lib/v20210820/models.rb', line 4132

def CycleStep
  @CycleStep
end

#ItemsObject

注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Items:

    比较条件列表

  • CycleStep:

    周期性模板默认周期,单位秒

  • ComputeExpression:

    o 表示 或,a 表示 且,数字表示items下标



4132
4133
4134
# File 'lib/v20210820/models.rb', line 4132

def Items
  @Items
end

Instance Method Details

#deserialize(params) ⇒ Object



4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
# File 'lib/v20210820/models.rb', line 4140

def deserialize(params)
  unless params['Items'].nil?
    @Items = []
    params['Items'].each do |i|
      compareruleitem_tmp = CompareRuleItem.new
      compareruleitem_tmp.deserialize(i)
      @Items << compareruleitem_tmp
    end
  end
  @CycleStep = params['CycleStep']
  @ComputeExpression = params['ComputeExpression']
end