Class: TencentCloud::Eb::V20210416::CreateTargetRequest
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Eb::V20210416::CreateTargetRequest
- Defined in:
- lib/v20210416/models.rb
Overview
CreateTarget请求参数结构体
Instance Attribute Summary collapse
-
#BatchEventCount ⇒ Object
“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”}.
-
#BatchTimeout ⇒ Object
“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”}.
-
#EnableBatchDelivery ⇒ Object
“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”}.
-
#EventBusId ⇒ Object
“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”}.
-
#RuleId ⇒ Object
“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”}.
-
#TargetDescription ⇒ Object
“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”}.
-
#Type ⇒ Object
“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”}.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(eventbusid = nil, type = nil, targetdescription = nil, ruleid = nil, batchtimeout = nil, batcheventcount = nil, enablebatchdelivery = nil) ⇒ CreateTargetRequest
constructor
A new instance of CreateTargetRequest.
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
#BatchEventCount ⇒ Object
“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”}
500 501 502 |
# File 'lib/v20210416/models.rb', line 500 def BatchEventCount @BatchEventCount end |
#BatchTimeout ⇒ Object
“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”}
500 501 502 |
# File 'lib/v20210416/models.rb', line 500 def BatchTimeout @BatchTimeout end |
#EnableBatchDelivery ⇒ Object
“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”}
500 501 502 |
# File 'lib/v20210416/models.rb', line 500 def EnableBatchDelivery @EnableBatchDelivery end |
#EventBusId ⇒ Object
“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”}
500 501 502 |
# File 'lib/v20210416/models.rb', line 500 def EventBusId @EventBusId end |
#RuleId ⇒ Object
“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”}
500 501 502 |
# File 'lib/v20210416/models.rb', line 500 def RuleId @RuleId end |
#TargetDescription ⇒ Object
“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”}
500 501 502 |
# File 'lib/v20210416/models.rb', line 500 def TargetDescription @TargetDescription end |
#Type ⇒ Object
“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”}
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 |