Class: TencentCloud::Iotexplorer::V20190423::TopicRule

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

Overview

TopicRule结构

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(rulename = nil, sql = nil, description = nil, actions = nil, ruledisabled = nil) ⇒ TopicRule

Returns a new instance of TopicRule.



13950
13951
13952
13953
13954
13955
13956
# File 'lib/v20190423/models.rb', line 13950

def initialize(rulename=nil, sql=nil, description=nil, actions=nil, ruledisabled=nil)
  @RuleName = rulename
  @Sql = sql
  @Description = description
  @Actions = actions
  @RuleDisabled = ruledisabled
end

Instance Attribute Details

#ActionsObject

Parameters:

  • RuleName:

    规则名称。

  • Sql:

    规则的SQL语句,如: SELECT * FROM 'pid/dname/event',然后对其进行base64编码,得:U0VMRUNUICogRlJPTSAncGlkL2RuYW1lL2V2ZW50Jw==

  • Description:

    规则描述。

  • Actions:

    行为的JSON字符串。

  • RuleDisabled:

    是否禁用规则



13948
13949
13950
# File 'lib/v20190423/models.rb', line 13948

def Actions
  @Actions
end

#DescriptionObject

Parameters:

  • RuleName:

    规则名称。

  • Sql:

    规则的SQL语句,如: SELECT * FROM 'pid/dname/event',然后对其进行base64编码,得:U0VMRUNUICogRlJPTSAncGlkL2RuYW1lL2V2ZW50Jw==

  • Description:

    规则描述。

  • Actions:

    行为的JSON字符串。

  • RuleDisabled:

    是否禁用规则



13948
13949
13950
# File 'lib/v20190423/models.rb', line 13948

def Description
  @Description
end

#RuleDisabledObject

Parameters:

  • RuleName:

    规则名称。

  • Sql:

    规则的SQL语句,如: SELECT * FROM 'pid/dname/event',然后对其进行base64编码,得:U0VMRUNUICogRlJPTSAncGlkL2RuYW1lL2V2ZW50Jw==

  • Description:

    规则描述。

  • Actions:

    行为的JSON字符串。

  • RuleDisabled:

    是否禁用规则



13948
13949
13950
# File 'lib/v20190423/models.rb', line 13948

def RuleDisabled
  @RuleDisabled
end

#RuleNameObject

Parameters:

  • RuleName:

    规则名称。

  • Sql:

    规则的SQL语句,如: SELECT * FROM 'pid/dname/event',然后对其进行base64编码,得:U0VMRUNUICogRlJPTSAncGlkL2RuYW1lL2V2ZW50Jw==

  • Description:

    规则描述。

  • Actions:

    行为的JSON字符串。

  • RuleDisabled:

    是否禁用规则



13948
13949
13950
# File 'lib/v20190423/models.rb', line 13948

def RuleName
  @RuleName
end

#SqlObject

Parameters:

  • RuleName:

    规则名称。

  • Sql:

    规则的SQL语句,如: SELECT * FROM 'pid/dname/event',然后对其进行base64编码,得:U0VMRUNUICogRlJPTSAncGlkL2RuYW1lL2V2ZW50Jw==

  • Description:

    规则描述。

  • Actions:

    行为的JSON字符串。

  • RuleDisabled:

    是否禁用规则



13948
13949
13950
# File 'lib/v20190423/models.rb', line 13948

def Sql
  @Sql
end

Instance Method Details

#deserialize(params) ⇒ Object



13958
13959
13960
13961
13962
13963
13964
# File 'lib/v20190423/models.rb', line 13958

def deserialize(params)
  @RuleName = params['RuleName']
  @Sql = params['Sql']
  @Description = params['Description']
  @Actions = params['Actions']
  @RuleDisabled = params['RuleDisabled']
end