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.



13920
13921
13922
13923
13924
13925
13926
# File 'lib/v20190423/models.rb', line 13920

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:

    是否禁用规则



13918
13919
13920
# File 'lib/v20190423/models.rb', line 13918

def Actions
  @Actions
end

#DescriptionObject

Parameters:

  • RuleName:

    规则名称。

  • Sql:

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

  • Description:

    规则描述。

  • Actions:

    行为的JSON字符串。

  • RuleDisabled:

    是否禁用规则



13918
13919
13920
# File 'lib/v20190423/models.rb', line 13918

def Description
  @Description
end

#RuleDisabledObject

Parameters:

  • RuleName:

    规则名称。

  • Sql:

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

  • Description:

    规则描述。

  • Actions:

    行为的JSON字符串。

  • RuleDisabled:

    是否禁用规则



13918
13919
13920
# File 'lib/v20190423/models.rb', line 13918

def RuleDisabled
  @RuleDisabled
end

#RuleNameObject

Parameters:

  • RuleName:

    规则名称。

  • Sql:

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

  • Description:

    规则描述。

  • Actions:

    行为的JSON字符串。

  • RuleDisabled:

    是否禁用规则



13918
13919
13920
# File 'lib/v20190423/models.rb', line 13918

def RuleName
  @RuleName
end

#SqlObject

Parameters:

  • RuleName:

    规则名称。

  • Sql:

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

  • Description:

    规则描述。

  • Actions:

    行为的JSON字符串。

  • RuleDisabled:

    是否禁用规则



13918
13919
13920
# File 'lib/v20190423/models.rb', line 13918

def Sql
  @Sql
end

Instance Method Details

#deserialize(params) ⇒ Object



13928
13929
13930
13931
13932
13933
13934
# File 'lib/v20190423/models.rb', line 13928

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