Class: TencentCloud::Eb::V20210416::CreateTargetRequest

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

Overview

CreateTarget请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(eventbusid = nil, type = nil, targetdescription = nil, ruleid = nil, batchtimeout = nil, batcheventcount = nil, enablebatchdelivery = nil) ⇒ CreateTargetRequest

Returns a new instance of CreateTargetRequest.



502
503
504
505
506
507
508
509
510
# File 'lib/v20210416/models.rb', line 502

def initialize(eventbusid=nil, type=nil, targetdescription=nil, ruleid=nil, batchtimeout=nil, batcheventcount=nil, enablebatchdelivery=nil)
  @EventBusId = eventbusid
  @Type = type
  @TargetDescription = targetdescription
  @RuleId = ruleid
  @BatchTimeout = batchtimeout
  @BatchEventCount = batcheventcount
  @EnableBatchDelivery = enablebatchdelivery
end

Instance Attribute Details

#BatchEventCountObject

“ResourceDescription”:“qcs::scf:ap-guangzhou:uin/2252646423:namespace/default/function/john-test-0326/$LATEST”; cls类型示例: “ResourceDescription”:“qcs::cls:ap-guangzhou:uin/12323442323:topic/7103f705-6c38-4b64-ac9d-428af0f2e732” ckafka类型示例: “ResourceDescription”:“qcs::ckafka:ap-guangzhou:uin/1500000688:ckafkaId/uin/1500000688/ckafka-018q1nwj”,“CkafkaTargetParams”:{“TopicName”:“alert”,“RetryPolicy”:{“RetryInterval”:60,“MaxRetryAttempts”:360}} amp类型-邮件/短信示例: href=""9424525"">NotificationTemplateId“:10181,”Lang“:”cn“,”NoticeReceivers“:[{”UserType“:”User“,”UserIds“:,”TimeWindow“:{”From“:”09:30:00“,”To“:”23:30:00“,”Channels“:}]}} es类型示例: “ResourceDescription”:“qcs::es:ap-guangzhou:uin/1500000688:instance/es-7cplmhsd”,“ESTargetParams”:{“EsVersion”:“7.14.2”,“UserName”:“elastic”,“Password”:“xxxxx”,“NetMode”:“privateLink”,“IndexPrefix”:“auto-test”,“IndexSuffixMode”:“default”,“RotationInterval”:“none”,“IndexTemplateType”:“”,“OutputMode”:“default”}

Parameters:

  • EventBusId:

    事件集ID

  • Type:

    目标类型;取值范围:scf(云函数)/cls(日志服务)/amp(消息推送)/ckafka(消息推送)/es(大数据elastic-search)

  • TargetDescription:

    目标描述;scf类型示例:

  • RuleId:

    事件规则ID

  • BatchTimeout:

    批量投递最长等待时间

  • BatchEventCount:

    批量投递最大事件条数

  • EnableBatchDelivery:

    开启批量投递使能



500
501
502
# File 'lib/v20210416/models.rb', line 500

def BatchEventCount
  @BatchEventCount
end

#BatchTimeoutObject

“ResourceDescription”:“qcs::scf:ap-guangzhou:uin/2252646423:namespace/default/function/john-test-0326/$LATEST”; cls类型示例: “ResourceDescription”:“qcs::cls:ap-guangzhou:uin/12323442323:topic/7103f705-6c38-4b64-ac9d-428af0f2e732” ckafka类型示例: “ResourceDescription”:“qcs::ckafka:ap-guangzhou:uin/1500000688:ckafkaId/uin/1500000688/ckafka-018q1nwj”,“CkafkaTargetParams”:{“TopicName”:“alert”,“RetryPolicy”:{“RetryInterval”:60,“MaxRetryAttempts”:360}} amp类型-邮件/短信示例: href=""9424525"">NotificationTemplateId“:10181,”Lang“:”cn“,”NoticeReceivers“:[{”UserType“:”User“,”UserIds“:,”TimeWindow“:{”From“:”09:30:00“,”To“:”23:30:00“,”Channels“:}]}} es类型示例: “ResourceDescription”:“qcs::es:ap-guangzhou:uin/1500000688:instance/es-7cplmhsd”,“ESTargetParams”:{“EsVersion”:“7.14.2”,“UserName”:“elastic”,“Password”:“xxxxx”,“NetMode”:“privateLink”,“IndexPrefix”:“auto-test”,“IndexSuffixMode”:“default”,“RotationInterval”:“none”,“IndexTemplateType”:“”,“OutputMode”:“default”}

Parameters:

  • EventBusId:

    事件集ID

  • Type:

    目标类型;取值范围:scf(云函数)/cls(日志服务)/amp(消息推送)/ckafka(消息推送)/es(大数据elastic-search)

  • TargetDescription:

    目标描述;scf类型示例:

  • RuleId:

    事件规则ID

  • BatchTimeout:

    批量投递最长等待时间

  • BatchEventCount:

    批量投递最大事件条数

  • EnableBatchDelivery:

    开启批量投递使能



500
501
502
# File 'lib/v20210416/models.rb', line 500

def BatchTimeout
  @BatchTimeout
end

#EnableBatchDeliveryObject

“ResourceDescription”:“qcs::scf:ap-guangzhou:uin/2252646423:namespace/default/function/john-test-0326/$LATEST”; cls类型示例: “ResourceDescription”:“qcs::cls:ap-guangzhou:uin/12323442323:topic/7103f705-6c38-4b64-ac9d-428af0f2e732” ckafka类型示例: “ResourceDescription”:“qcs::ckafka:ap-guangzhou:uin/1500000688:ckafkaId/uin/1500000688/ckafka-018q1nwj”,“CkafkaTargetParams”:{“TopicName”:“alert”,“RetryPolicy”:{“RetryInterval”:60,“MaxRetryAttempts”:360}} amp类型-邮件/短信示例: href=""9424525"">NotificationTemplateId“:10181,”Lang“:”cn“,”NoticeReceivers“:[{”UserType“:”User“,”UserIds“:,”TimeWindow“:{”From“:”09:30:00“,”To“:”23:30:00“,”Channels“:}]}} es类型示例: “ResourceDescription”:“qcs::es:ap-guangzhou:uin/1500000688:instance/es-7cplmhsd”,“ESTargetParams”:{“EsVersion”:“7.14.2”,“UserName”:“elastic”,“Password”:“xxxxx”,“NetMode”:“privateLink”,“IndexPrefix”:“auto-test”,“IndexSuffixMode”:“default”,“RotationInterval”:“none”,“IndexTemplateType”:“”,“OutputMode”:“default”}

Parameters:

  • EventBusId:

    事件集ID

  • Type:

    目标类型;取值范围:scf(云函数)/cls(日志服务)/amp(消息推送)/ckafka(消息推送)/es(大数据elastic-search)

  • TargetDescription:

    目标描述;scf类型示例:

  • RuleId:

    事件规则ID

  • BatchTimeout:

    批量投递最长等待时间

  • BatchEventCount:

    批量投递最大事件条数

  • EnableBatchDelivery:

    开启批量投递使能



500
501
502
# File 'lib/v20210416/models.rb', line 500

def EnableBatchDelivery
  @EnableBatchDelivery
end

#EventBusIdObject

“ResourceDescription”:“qcs::scf:ap-guangzhou:uin/2252646423:namespace/default/function/john-test-0326/$LATEST”; cls类型示例: “ResourceDescription”:“qcs::cls:ap-guangzhou:uin/12323442323:topic/7103f705-6c38-4b64-ac9d-428af0f2e732” ckafka类型示例: “ResourceDescription”:“qcs::ckafka:ap-guangzhou:uin/1500000688:ckafkaId/uin/1500000688/ckafka-018q1nwj”,“CkafkaTargetParams”:{“TopicName”:“alert”,“RetryPolicy”:{“RetryInterval”:60,“MaxRetryAttempts”:360}} amp类型-邮件/短信示例: href=""9424525"">NotificationTemplateId“:10181,”Lang“:”cn“,”NoticeReceivers“:[{”UserType“:”User“,”UserIds“:,”TimeWindow“:{”From“:”09:30:00“,”To“:”23:30:00“,”Channels“:}]}} es类型示例: “ResourceDescription”:“qcs::es:ap-guangzhou:uin/1500000688:instance/es-7cplmhsd”,“ESTargetParams”:{“EsVersion”:“7.14.2”,“UserName”:“elastic”,“Password”:“xxxxx”,“NetMode”:“privateLink”,“IndexPrefix”:“auto-test”,“IndexSuffixMode”:“default”,“RotationInterval”:“none”,“IndexTemplateType”:“”,“OutputMode”:“default”}

Parameters:

  • EventBusId:

    事件集ID

  • Type:

    目标类型;取值范围:scf(云函数)/cls(日志服务)/amp(消息推送)/ckafka(消息推送)/es(大数据elastic-search)

  • TargetDescription:

    目标描述;scf类型示例:

  • RuleId:

    事件规则ID

  • BatchTimeout:

    批量投递最长等待时间

  • BatchEventCount:

    批量投递最大事件条数

  • EnableBatchDelivery:

    开启批量投递使能



500
501
502
# File 'lib/v20210416/models.rb', line 500

def EventBusId
  @EventBusId
end

#RuleIdObject

“ResourceDescription”:“qcs::scf:ap-guangzhou:uin/2252646423:namespace/default/function/john-test-0326/$LATEST”; cls类型示例: “ResourceDescription”:“qcs::cls:ap-guangzhou:uin/12323442323:topic/7103f705-6c38-4b64-ac9d-428af0f2e732” ckafka类型示例: “ResourceDescription”:“qcs::ckafka:ap-guangzhou:uin/1500000688:ckafkaId/uin/1500000688/ckafka-018q1nwj”,“CkafkaTargetParams”:{“TopicName”:“alert”,“RetryPolicy”:{“RetryInterval”:60,“MaxRetryAttempts”:360}} amp类型-邮件/短信示例: href=""9424525"">NotificationTemplateId“:10181,”Lang“:”cn“,”NoticeReceivers“:[{”UserType“:”User“,”UserIds“:,”TimeWindow“:{”From“:”09:30:00“,”To“:”23:30:00“,”Channels“:}]}} es类型示例: “ResourceDescription”:“qcs::es:ap-guangzhou:uin/1500000688:instance/es-7cplmhsd”,“ESTargetParams”:{“EsVersion”:“7.14.2”,“UserName”:“elastic”,“Password”:“xxxxx”,“NetMode”:“privateLink”,“IndexPrefix”:“auto-test”,“IndexSuffixMode”:“default”,“RotationInterval”:“none”,“IndexTemplateType”:“”,“OutputMode”:“default”}

Parameters:

  • EventBusId:

    事件集ID

  • Type:

    目标类型;取值范围:scf(云函数)/cls(日志服务)/amp(消息推送)/ckafka(消息推送)/es(大数据elastic-search)

  • TargetDescription:

    目标描述;scf类型示例:

  • RuleId:

    事件规则ID

  • BatchTimeout:

    批量投递最长等待时间

  • BatchEventCount:

    批量投递最大事件条数

  • EnableBatchDelivery:

    开启批量投递使能



500
501
502
# File 'lib/v20210416/models.rb', line 500

def RuleId
  @RuleId
end

#TargetDescriptionObject

“ResourceDescription”:“qcs::scf:ap-guangzhou:uin/2252646423:namespace/default/function/john-test-0326/$LATEST”; cls类型示例: “ResourceDescription”:“qcs::cls:ap-guangzhou:uin/12323442323:topic/7103f705-6c38-4b64-ac9d-428af0f2e732” ckafka类型示例: “ResourceDescription”:“qcs::ckafka:ap-guangzhou:uin/1500000688:ckafkaId/uin/1500000688/ckafka-018q1nwj”,“CkafkaTargetParams”:{“TopicName”:“alert”,“RetryPolicy”:{“RetryInterval”:60,“MaxRetryAttempts”:360}} amp类型-邮件/短信示例: href=""9424525"">NotificationTemplateId“:10181,”Lang“:”cn“,”NoticeReceivers“:[{”UserType“:”User“,”UserIds“:,”TimeWindow“:{”From“:”09:30:00“,”To“:”23:30:00“,”Channels“:}]}} es类型示例: “ResourceDescription”:“qcs::es:ap-guangzhou:uin/1500000688:instance/es-7cplmhsd”,“ESTargetParams”:{“EsVersion”:“7.14.2”,“UserName”:“elastic”,“Password”:“xxxxx”,“NetMode”:“privateLink”,“IndexPrefix”:“auto-test”,“IndexSuffixMode”:“default”,“RotationInterval”:“none”,“IndexTemplateType”:“”,“OutputMode”:“default”}

Parameters:

  • EventBusId:

    事件集ID

  • Type:

    目标类型;取值范围:scf(云函数)/cls(日志服务)/amp(消息推送)/ckafka(消息推送)/es(大数据elastic-search)

  • TargetDescription:

    目标描述;scf类型示例:

  • RuleId:

    事件规则ID

  • BatchTimeout:

    批量投递最长等待时间

  • BatchEventCount:

    批量投递最大事件条数

  • EnableBatchDelivery:

    开启批量投递使能



500
501
502
# File 'lib/v20210416/models.rb', line 500

def TargetDescription
  @TargetDescription
end

#TypeObject

“ResourceDescription”:“qcs::scf:ap-guangzhou:uin/2252646423:namespace/default/function/john-test-0326/$LATEST”; cls类型示例: “ResourceDescription”:“qcs::cls:ap-guangzhou:uin/12323442323:topic/7103f705-6c38-4b64-ac9d-428af0f2e732” ckafka类型示例: “ResourceDescription”:“qcs::ckafka:ap-guangzhou:uin/1500000688:ckafkaId/uin/1500000688/ckafka-018q1nwj”,“CkafkaTargetParams”:{“TopicName”:“alert”,“RetryPolicy”:{“RetryInterval”:60,“MaxRetryAttempts”:360}} amp类型-邮件/短信示例: href=""9424525"">NotificationTemplateId“:10181,”Lang“:”cn“,”NoticeReceivers“:[{”UserType“:”User“,”UserIds“:,”TimeWindow“:{”From“:”09:30:00“,”To“:”23:30:00“,”Channels“:}]}} es类型示例: “ResourceDescription”:“qcs::es:ap-guangzhou:uin/1500000688:instance/es-7cplmhsd”,“ESTargetParams”:{“EsVersion”:“7.14.2”,“UserName”:“elastic”,“Password”:“xxxxx”,“NetMode”:“privateLink”,“IndexPrefix”:“auto-test”,“IndexSuffixMode”:“default”,“RotationInterval”:“none”,“IndexTemplateType”:“”,“OutputMode”:“default”}

Parameters:

  • EventBusId:

    事件集ID

  • Type:

    目标类型;取值范围:scf(云函数)/cls(日志服务)/amp(消息推送)/ckafka(消息推送)/es(大数据elastic-search)

  • TargetDescription:

    目标描述;scf类型示例:

  • RuleId:

    事件规则ID

  • BatchTimeout:

    批量投递最长等待时间

  • BatchEventCount:

    批量投递最大事件条数

  • EnableBatchDelivery:

    开启批量投递使能



500
501
502
# File 'lib/v20210416/models.rb', line 500

def Type
  @Type
end

Instance Method Details

#deserialize(params) ⇒ Object



512
513
514
515
516
517
518
519
520
521
522
523
# File 'lib/v20210416/models.rb', line 512

def deserialize(params)
  @EventBusId = params['EventBusId']
  @Type = params['Type']
  unless params['TargetDescription'].nil?
    @TargetDescription = TargetDescription.new
    @TargetDescription.deserialize(params['TargetDescription'])
  end
  @RuleId = params['RuleId']
  @BatchTimeout = params['BatchTimeout']
  @BatchEventCount = params['BatchEventCount']
  @EnableBatchDelivery = params['EnableBatchDelivery']
end