forked from docs/doc-exports
Reviewed-by: Eotvos, Oliver <oliver.eotvos@t-systems.com> Co-authored-by: Chen, Junjie <chenjunjie@huawei.com> Co-committed-by: Chen, Junjie <chenjunjie@huawei.com>
504 lines
41 KiB
HTML
504 lines
41 KiB
HTML
<a name="functiongraph_06_0103"></a><a name="functiongraph_06_0103"></a>
|
||
|
||
<h1 class="topictitle1">Trigger Management Models</h1>
|
||
<div id="body1527754530333"><div class="section" id="functiongraph_06_0103__section29630533"><h4 class="sectiontitle">Trigger Type Model</h4><pre class="codeblock" id="functiongraph_06_0103__codeblock4759102792115">{
|
||
"trigger_type_code":"string",
|
||
"display_name":"string",
|
||
"status":"string",
|
||
"event_codes":"array of string",
|
||
"description":"string"
|
||
}</pre>
|
||
<p class="msonormal" id="functiongraph_06_0103__p59126073"><a href="#functiongraph_06_0103__table1072087614167">Table 1</a> describes the parameters in the trigger type model.</p>
|
||
|
||
<div class="tablenoborder"><a name="functiongraph_06_0103__table1072087614167"></a><a name="table1072087614167"></a><table cellpadding="4" cellspacing="0" summary="" id="functiongraph_06_0103__table1072087614167" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameters in the trigger type model</caption><thead align="left"><tr id="functiongraph_06_0103__row4078305"><th align="left" class="cellrowborder" valign="top" width="23.23%" id="mcps1.3.1.4.2.3.1.1"><p id="functiongraph_06_0103__p61907274">Parameter</p>
|
||
</th>
|
||
<th align="left" class="cellrowborder" valign="top" width="76.77000000000001%" id="mcps1.3.1.4.2.3.1.2"><p id="functiongraph_06_0103__p48433296">Description</p>
|
||
</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody><tr id="functiongraph_06_0103__row30782874"><td class="cellrowborder" valign="top" width="23.23%" headers="mcps1.3.1.4.2.3.1.1 "><p id="functiongraph_06_0103__p10384848">trigger_type_code</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="76.77000000000001%" headers="mcps1.3.1.4.2.3.1.2 "><p id="functiongraph_06_0103__p1585516191229">Trigger type code. Options: <strong id="functiongraph_06_0103__b179511511174011">SMN</strong>, <strong id="functiongraph_06_0103__b1951511174011">APIG</strong>, <strong id="functiongraph_06_0103__b14951131110407">TIMER</strong>, <strong id="functiongraph_06_0103__b16952151116408">DMS</strong>, <strong id="functiongraph_06_0103__b1795271104013">kafka</strong>, <strong id="functiongraph_06_0103__b122631640164018">DDS</strong>, <strong id="functiongraph_06_0103__b194715421403">CTS</strong>, <strong id="functiongraph_06_0103__b13741443144017">DIS</strong>, <strong id="functiongraph_06_0103__b1821814452408">LTS</strong>, and <strong id="functiongraph_06_0103__b1771714466404">OBS</strong>.</p>
|
||
</td>
|
||
</tr>
|
||
<tr id="functiongraph_06_0103__row54362108"><td class="cellrowborder" valign="top" width="23.23%" headers="mcps1.3.1.4.2.3.1.1 "><p id="functiongraph_06_0103__p41254657">display_name</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="76.77000000000001%" headers="mcps1.3.1.4.2.3.1.2 "><p id="functiongraph_06_0103__p53292943">Trigger type value.</p>
|
||
</td>
|
||
</tr>
|
||
<tr id="functiongraph_06_0103__row9874440"><td class="cellrowborder" valign="top" width="23.23%" headers="mcps1.3.1.4.2.3.1.1 "><p id="functiongraph_06_0103__p61632181">status</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="76.77000000000001%" headers="mcps1.3.1.4.2.3.1.2 "><p id="functiongraph_06_0103__p26150783">Trigger type status. Options:</p>
|
||
<ul id="functiongraph_06_0103__ul194212191914"><li id="functiongraph_06_0103__li84215193116"><strong id="functiongraph_06_0103__b1643881785315">DISABLED</strong>: The trigger is disabled.</li><li id="functiongraph_06_0103__li11082029812"><strong id="functiongraph_06_0103__b571220206535">TEST</strong>: The trigger is under test and invisible to clients.</li><li id="functiongraph_06_0103__li1314933819113"><strong id="functiongraph_06_0103__b1339129105310">ACTIVE</strong>: The trigger is available.</li></ul>
|
||
</td>
|
||
</tr>
|
||
<tr id="functiongraph_06_0103__row52786299"><td class="cellrowborder" valign="top" width="23.23%" headers="mcps1.3.1.4.2.3.1.1 "><p id="functiongraph_06_0103__p47831788">description</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="76.77000000000001%" headers="mcps1.3.1.4.2.3.1.2 "><p id="functiongraph_06_0103__p49169614">Trigger description.</p>
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
</div>
|
||
<div class="section" id="functiongraph_06_0103__section50261965"><h4 class="sectiontitle">Trigger Instance Model</h4><pre class="codeblock" id="functiongraph_06_0103__codeblock18847690">{
|
||
"trigger_id":"string",
|
||
"trigger_type_code":"string",
|
||
"event_type_code":"string",
|
||
"status":"string",
|
||
"event_data":"json struct",
|
||
"last_updated_time":"string",
|
||
"created_time":"string"
|
||
}</pre>
|
||
<p class="msonormal" id="functiongraph_06_0103__p35411486"><a href="#functiongraph_06_0103__table11855096142915">Table 2</a> describes the parameters in the trigger instance model.</p>
|
||
|
||
<div class="tablenoborder"><a name="functiongraph_06_0103__table11855096142915"></a><a name="table11855096142915"></a><table cellpadding="4" cellspacing="0" summary="" id="functiongraph_06_0103__table11855096142915" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Parameters in the trigger instance model</caption><thead align="left"><tr id="functiongraph_06_0103__row7455633"><th align="left" class="cellrowborder" valign="top" width="24.240000000000002%" id="mcps1.3.2.4.2.3.1.1"><p id="functiongraph_06_0103__p67035395">Parameter</p>
|
||
</th>
|
||
<th align="left" class="cellrowborder" valign="top" width="75.76%" id="mcps1.3.2.4.2.3.1.2"><p id="functiongraph_06_0103__p61157901">Description</p>
|
||
</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody><tr id="functiongraph_06_0103__row54842968"><td class="cellrowborder" valign="top" width="24.240000000000002%" headers="mcps1.3.2.4.2.3.1.1 "><p id="functiongraph_06_0103__p13095436">trigger_id</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="75.76%" headers="mcps1.3.2.4.2.3.1.2 "><p id="functiongraph_06_0103__p54097359">Trigger ID.</p>
|
||
</td>
|
||
</tr>
|
||
<tr id="functiongraph_06_0103__row17114191"><td class="cellrowborder" valign="top" width="24.240000000000002%" headers="mcps1.3.2.4.2.3.1.1 "><p id="functiongraph_06_0103__p44072239">trigger_type_code</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="75.76%" headers="mcps1.3.2.4.2.3.1.2 "><p id="functiongraph_06_0103__p176231840246">Trigger type code. Options: <strong id="functiongraph_06_0103__b7168958104014">SMN</strong>, <strong id="functiongraph_06_0103__b1416912585405">APIG</strong>, <strong id="functiongraph_06_0103__b71701558104018">TIMER</strong>, <strong id="functiongraph_06_0103__b2170165804017">DMS</strong>, <strong id="functiongraph_06_0103__b817365804014">kafka</strong>, <strong id="functiongraph_06_0103__b1516821412412">DDS</strong>, <strong id="functiongraph_06_0103__b171681814134115">CTS</strong>, <strong id="functiongraph_06_0103__b116841416413">DIS</strong>, <strong id="functiongraph_06_0103__b61681714124112">LTS</strong>, and <strong id="functiongraph_06_0103__b616815146417">OBS</strong>.</p>
|
||
</td>
|
||
</tr>
|
||
<tr id="functiongraph_06_0103__row50625422"><td class="cellrowborder" valign="top" width="24.240000000000002%" headers="mcps1.3.2.4.2.3.1.1 "><p id="functiongraph_06_0103__p7018532">event_type_code</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="75.76%" headers="mcps1.3.2.4.2.3.1.2 "><p id="functiongraph_06_0103__p31630226">Event type code. This parameter is mandatory. It can be any non-null character string. This parameter is not used currently.</p>
|
||
</td>
|
||
</tr>
|
||
<tr id="functiongraph_06_0103__row16236586"><td class="cellrowborder" valign="top" width="24.240000000000002%" headers="mcps1.3.2.4.2.3.1.1 "><p id="functiongraph_06_0103__p40095121">status</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="75.76%" headers="mcps1.3.2.4.2.3.1.2 "><p id="functiongraph_06_0103__p26479331">Trigger status. Options: <strong id="functiongraph_06_0103__b14434820567">ACTIVE</strong> and <strong id="functiongraph_06_0103__b345144825611">DISABLED</strong>.</p>
|
||
</td>
|
||
</tr>
|
||
<tr id="functiongraph_06_0103__row36987393"><td class="cellrowborder" valign="top" width="24.240000000000002%" headers="mcps1.3.2.4.2.3.1.1 "><p id="functiongraph_06_0103__p43188833">event_data</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="75.76%" headers="mcps1.3.2.4.2.3.1.2 "><p id="functiongraph_06_0103__p8634594">Trigger data defined in JSON format.</p>
|
||
</td>
|
||
</tr>
|
||
<tr id="functiongraph_06_0103__row10602486"><td class="cellrowborder" valign="top" width="24.240000000000002%" headers="mcps1.3.2.4.2.3.1.1 "><p id="functiongraph_06_0103__p53495051">last_updated_time</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="75.76%" headers="mcps1.3.2.4.2.3.1.2 "><p id="functiongraph_06_0103__p38131860">Time when the trigger was last updated.</p>
|
||
</td>
|
||
</tr>
|
||
<tr id="functiongraph_06_0103__row7642424"><td class="cellrowborder" valign="top" width="24.240000000000002%" headers="mcps1.3.2.4.2.3.1.1 "><p id="functiongraph_06_0103__p15056587">created_time</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="75.76%" headers="mcps1.3.2.4.2.3.1.2 "><p id="functiongraph_06_0103__p11624006">Time when the trigger was created.</p>
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
</div>
|
||
<div class="section" id="functiongraph_06_0103__section196721276373"><h4 class="sectiontitle">Trigger Instance Data</h4><ul id="functiongraph_06_0103__ul20136113883818"><li id="functiongraph_06_0103__li813673823818">The data of a Simple Message Notification (SMN) trigger is as follows:<pre class="codeblock" id="functiongraph_06_0103__codeblock13402614221">{
|
||
"topic_urn":"string",
|
||
"subscription_status":"string"
|
||
} </pre>
|
||
<p class="msonormal" id="functiongraph_06_0103__p33590758"><a href="#functiongraph_06_0103__table46683704143627">Table 3</a> describes the parameters of an SMN trigger.</p>
|
||
|
||
<div class="tablenoborder"><a name="functiongraph_06_0103__table46683704143627"></a><a name="table46683704143627"></a><table cellpadding="4" cellspacing="0" summary="" id="functiongraph_06_0103__table46683704143627" frame="border" border="1" rules="all"><caption><b>Table 3 </b>Parameters of an SMN trigger</caption><thead align="left"><tr id="functiongraph_06_0103__row4308221"><th align="left" class="cellrowborder" valign="top" width="25.25%" id="mcps1.3.3.2.1.3.2.3.1.1"><p id="functiongraph_06_0103__p13421600">Parameter</p>
|
||
</th>
|
||
<th align="left" class="cellrowborder" valign="top" width="74.75%" id="mcps1.3.3.2.1.3.2.3.1.2"><p id="functiongraph_06_0103__p13407787">Description</p>
|
||
</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody><tr id="functiongraph_06_0103__row12288967"><td class="cellrowborder" valign="top" width="25.25%" headers="mcps1.3.3.2.1.3.2.3.1.1 "><p id="functiongraph_06_0103__p55882267">topic_urn</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="74.75%" headers="mcps1.3.3.2.1.3.2.3.1.2 "><p id="functiongraph_06_0103__p30169808">URN of an SMN topic. This parameter is mandatory when you create an SMN trigger.</p>
|
||
</td>
|
||
</tr>
|
||
<tr id="functiongraph_06_0103__row3092822"><td class="cellrowborder" valign="top" width="25.25%" headers="mcps1.3.3.2.1.3.2.3.1.1 "><p id="functiongraph_06_0103__p49192063">subscription_status</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="74.75%" headers="mcps1.3.3.2.1.3.2.3.1.2 "><p id="functiongraph_06_0103__p25134172">Subscription status of a topic. Options: <strong id="functiongraph_06_0103__b842352706174517">Unconfirmed</strong> and <strong id="functiongraph_06_0103__b842352706174519">Confirmed</strong>.</p>
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
</li><li id="functiongraph_06_0103__li11999135615291">The data of a Distributed Message Service (DMS) trigger is as follows:<pre class="codeblock" id="functiongraph_06_0103__codeblock143281229142214">{
|
||
"queue_id":"string",
|
||
"consumer_group_id":"string",
|
||
"polling_interval":"int"
|
||
}</pre>
|
||
<p class="msonormal" id="functiongraph_06_0103__p353518204018"><a href="#functiongraph_06_0103__table0558183404">Table 4</a> describes the parameters of a DMS trigger.</p>
|
||
|
||
<div class="tablenoborder"><a name="functiongraph_06_0103__table0558183404"></a><a name="table0558183404"></a><table cellpadding="4" cellspacing="0" summary="" id="functiongraph_06_0103__table0558183404" frame="border" border="1" rules="all"><caption><b>Table 4 </b>Parameters of a DMS trigger</caption><thead align="left"><tr id="functiongraph_06_0103__row1762131834012"><th align="left" class="cellrowborder" valign="top" width="26.26%" id="mcps1.3.3.2.2.3.2.3.1.1"><p id="functiongraph_06_0103__p864191824013">Parameter</p>
|
||
</th>
|
||
<th align="left" class="cellrowborder" valign="top" width="73.74000000000001%" id="mcps1.3.3.2.2.3.2.3.1.2"><p id="functiongraph_06_0103__p87091854019">Description</p>
|
||
</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody><tr id="functiongraph_06_0103__row472201811401"><td class="cellrowborder" valign="top" width="26.26%" headers="mcps1.3.3.2.2.3.2.3.1.1 "><p id="functiongraph_06_0103__p187401814409">queue_id</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="73.74000000000001%" headers="mcps1.3.3.2.2.3.2.3.1.2 "><p id="functiongraph_06_0103__p77511810408">Name of a DMS queue. This parameter is mandatory when you create a DMS trigger.</p>
|
||
</td>
|
||
</tr>
|
||
<tr id="functiongraph_06_0103__row207601894017"><td class="cellrowborder" valign="top" width="26.26%" headers="mcps1.3.3.2.2.3.2.3.1.1 "><p id="functiongraph_06_0103__p2791618134010">consumer_group_id</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="73.74000000000001%" headers="mcps1.3.3.2.2.3.2.3.1.2 "><p id="functiongraph_06_0103__p37991810403">Name of a DMS consumer group. This parameter is mandatory when you create a DMS trigger.</p>
|
||
</td>
|
||
</tr>
|
||
<tr id="functiongraph_06_0103__row168114183401"><td class="cellrowborder" valign="top" width="26.26%" headers="mcps1.3.3.2.2.3.2.3.1.1 "><p id="functiongraph_06_0103__p08491844011">polling_interval</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="73.74000000000001%" headers="mcps1.3.3.2.2.3.2.3.1.2 "><p id="functiongraph_06_0103__p48614183409">Interval at which messages are polled. This parameter is mandatory when you create a DMS trigger. Default value: 30s.</p>
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
</li><li id="functiongraph_06_0103__li849753483017">The data of an Object Storage Service (OBS) trigger is as follows:<pre class="codeblock" id="functiongraph_06_0103__codeblock72541052152518">{
|
||
"bucket": "yourBucketName",
|
||
"events": ["s3:ObjectCreated:Put"],
|
||
"prefix": "yourPrefix",
|
||
"suffix": "yourSuffix"
|
||
}</pre>
|
||
|
||
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="functiongraph_06_0103__table17999413154914" frame="border" border="1" rules="all"><caption><b>Table 5 </b>Parameters of an OBS trigger</caption><thead align="left"><tr id="functiongraph_06_0103__row9791414495"><th align="left" class="cellrowborder" valign="top" width="18%" id="mcps1.3.3.2.3.2.2.3.1.1"><p id="functiongraph_06_0103__p1190615309493">Parameter</p>
|
||
</th>
|
||
<th align="left" class="cellrowborder" valign="top" width="82%" id="mcps1.3.3.2.3.2.2.3.1.2"><p id="functiongraph_06_0103__p6906230194916">Description</p>
|
||
</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody><tr id="functiongraph_06_0103__row187181424918"><td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.3.2.3.2.2.3.1.1 "><p id="functiongraph_06_0103__p14906133034914">bucket</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="82%" headers="mcps1.3.3.2.3.2.2.3.1.2 "><p id="functiongraph_06_0103__p1690623094916">Bucket name. This parameter is mandatory.</p>
|
||
</td>
|
||
</tr>
|
||
<tr id="functiongraph_06_0103__row17714145497"><td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.3.2.3.2.2.3.1.1 "><p id="functiongraph_06_0103__p1091413084918">events</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="82%" headers="mcps1.3.3.2.3.2.2.3.1.2 "><p id="functiongraph_06_0103__p9814510443">Collection of OBS trigger events. Options: <strong id="functiongraph_06_0103__b8411416111619">s3:ObjectCreated:*</strong>, <strong id="functiongraph_06_0103__b154261681617">s3:ObjectCreated:Put</strong>, <strong id="functiongraph_06_0103__b184281612162">s3:ObjectCreated:Post</strong>, <strong id="functiongraph_06_0103__b24311165168">s3:ObjectCreated:Copy</strong>,<strong id="functiongraph_06_0103__b164314166167"> s3:ObjectCreated:CompleteMultipartUpload</strong>, <strong id="functiongraph_06_0103__b124491631616">s3:ObjectRemoved:*</strong>, <strong id="functiongraph_06_0103__b1144131611169">s3:ObjectRemoved:DeleteMarkerCreated</strong>, and <strong id="functiongraph_06_0103__b145016151610">s3:ObjectRemoved:Delete</strong>. This parameter is mandatory.</p>
|
||
<p id="functiongraph_06_0103__p1738125614214">Note that <strong id="functiongraph_06_0103__b182743111615">s3:objectcreated:*</strong> includes all events that start with<strong id="functiongraph_06_0103__b17320432167"> s3:objectcreated</strong>, and <strong id="functiongraph_06_0103__b15311439162">s3:objectremoved:*</strong> includes all events that start with <strong id="functiongraph_06_0103__b10464318162">s3:objectremoved</strong>.</p>
|
||
</td>
|
||
</tr>
|
||
<tr id="functiongraph_06_0103__row5731419493"><td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.3.2.3.2.2.3.1.1 "><p id="functiongraph_06_0103__p4914830114910">prefix</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="82%" headers="mcps1.3.3.2.3.2.2.3.1.2 "><p id="functiongraph_06_0103__p1992153064918">Prefix of an OBS object. This parameter is optional.</p>
|
||
</td>
|
||
</tr>
|
||
<tr id="functiongraph_06_0103__row15701484910"><td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.3.2.3.2.2.3.1.1 "><p id="functiongraph_06_0103__p10921203034914">suffix</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="82%" headers="mcps1.3.3.2.3.2.2.3.1.2 "><p id="functiongraph_06_0103__p19921153010497">Suffix of an OBS object. This parameter is optional.</p>
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
</li><li id="functiongraph_06_0103__li1996515613015">The data of a Data Ingestion Service (DIS) trigger is as follows:<pre class="codeblock" id="functiongraph_06_0103__codeblock293415486123">{
|
||
"stream_name": "dis-qYPJ",
|
||
"polling_interval": 30,
|
||
"batch_size": 100,
|
||
"sharditerator_type": "TRIM_HORIZON"
|
||
}</pre>
|
||
<p class="msonormal" id="functiongraph_06_0103__p19970145352513"><a href="#functiongraph_06_0103__table797218531255">Table 6</a> describes the parameters of a DIS trigger.</p>
|
||
|
||
<div class="tablenoborder"><a name="functiongraph_06_0103__table797218531255"></a><a name="table797218531255"></a><table cellpadding="4" cellspacing="0" summary="" id="functiongraph_06_0103__table797218531255" frame="border" border="1" rules="all"><caption><b>Table 6 </b>Parameters of a DIS trigger</caption><thead align="left"><tr id="functiongraph_06_0103__row19754535259"><th align="left" class="cellrowborder" valign="top" width="21.21%" id="mcps1.3.3.2.4.3.2.3.1.1"><p id="functiongraph_06_0103__p297719537257">Parameter</p>
|
||
</th>
|
||
<th align="left" class="cellrowborder" valign="top" width="78.79%" id="mcps1.3.3.2.4.3.2.3.1.2"><p id="functiongraph_06_0103__p18978453192513">Description</p>
|
||
</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody><tr id="functiongraph_06_0103__row129791453122512"><td class="cellrowborder" valign="top" width="21.21%" headers="mcps1.3.3.2.4.3.2.3.1.1 "><p id="functiongraph_06_0103__p89807536259">stream_name</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="78.79%" headers="mcps1.3.3.2.4.3.2.3.1.2 "><p id="functiongraph_06_0103__p17982105311252">Name of a stream. This parameter is mandatory.</p>
|
||
</td>
|
||
</tr>
|
||
<tr id="functiongraph_06_0103__row698325318255"><td class="cellrowborder" valign="top" width="21.21%" headers="mcps1.3.3.2.4.3.2.3.1.1 "><p id="functiongraph_06_0103__p19984115314255">polling_interval</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="78.79%" headers="mcps1.3.3.2.4.3.2.3.1.2 "><p id="functiongraph_06_0103__p698715322511">Pull period. This parameter is optional. Value range: 1–60. Default value: 30.</p>
|
||
</td>
|
||
</tr>
|
||
<tr id="functiongraph_06_0103__row1898812530258"><td class="cellrowborder" valign="top" width="21.21%" headers="mcps1.3.3.2.4.3.2.3.1.1 "><p id="functiongraph_06_0103__p17989175315253">batch_size</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="78.79%" headers="mcps1.3.3.2.4.3.2.3.1.2 "><p id="functiongraph_06_0103__p16991153122517">Number of data records that can be pulled from a specified stream. This parameter is optional. Value range: 1–10000. Default value: 100.</p>
|
||
</td>
|
||
</tr>
|
||
<tr id="functiongraph_06_0103__row29918538254"><td class="cellrowborder" valign="top" width="21.21%" headers="mcps1.3.3.2.4.3.2.3.1.1 "><p id="functiongraph_06_0103__p1099275332511">sharditerator_type</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="78.79%" headers="mcps1.3.3.2.4.3.2.3.1.2 "><p id="functiongraph_06_0103__p99931053142515">Options: TRIM_HORIZON (pulling data from the beginning of a stream) and LATEST (pulling data from the current position). This parameter is mandatory.</p>
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
</li><li id="functiongraph_06_0103__li3290184812311">The data of an APIG trigger is as follows:<pre class="codeblock" id="functiongraph_06_0103__codeblock783819139812">{
|
||
"group_id":"string",
|
||
"env_id":"string",
|
||
"auth":"string",
|
||
"protocol":"string",
|
||
"name":"string",
|
||
"path":"string",
|
||
"match_mode":"string",
|
||
"req_method":"string" ,
|
||
"backend_type":"string" ,
|
||
"type": int ,
|
||
"sl_domain":"string"
|
||
}</pre>
|
||
<p class="msonormal" id="functiongraph_06_0103__p528014116462"><u id="functiongraph_06_0103__u282840140"><a href="#functiongraph_06_0103__table18282101120468">Table 7</a></u> describes the parameters of an APIG trigger.</p>
|
||
|
||
<div class="tablenoborder"><a name="functiongraph_06_0103__table18282101120468"></a><a name="table18282101120468"></a><table cellpadding="4" cellspacing="0" summary="" id="functiongraph_06_0103__table18282101120468" frame="border" border="1" rules="all"><caption><b>Table 7 </b>Parameters of an APIG trigger</caption><thead align="left"><tr id="functiongraph_06_0103__row1329061113469"><th align="left" class="cellrowborder" valign="top" width="21.21%" id="mcps1.3.3.2.5.3.2.3.1.1"><p id="functiongraph_06_0103__p2029110111467">Parameter</p>
|
||
</th>
|
||
<th align="left" class="cellrowborder" valign="top" width="78.79%" id="mcps1.3.3.2.5.3.2.3.1.2"><p id="functiongraph_06_0103__p72931811104613">Description</p>
|
||
</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody><tr id="functiongraph_06_0103__row02953117466"><td class="cellrowborder" valign="top" width="21.21%" headers="mcps1.3.3.2.5.3.2.3.1.1 "><p id="functiongraph_06_0103__p11296191116463">group_id</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="78.79%" headers="mcps1.3.3.2.5.3.2.3.1.2 "><p id="functiongraph_06_0103__p14298311164618">API group. This parameter is mandatory.</p>
|
||
</td>
|
||
</tr>
|
||
<tr id="functiongraph_06_0103__row102999111469"><td class="cellrowborder" valign="top" width="21.21%" headers="mcps1.3.3.2.5.3.2.3.1.1 "><p id="functiongraph_06_0103__p8300121144610">env_id</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="78.79%" headers="mcps1.3.3.2.5.3.2.3.1.2 "><p id="functiongraph_06_0103__p1030231120460">API publishing environment. This parameter is mandatory.</p>
|
||
</td>
|
||
</tr>
|
||
<tr id="functiongraph_06_0103__row123046117468"><td class="cellrowborder" valign="top" width="21.21%" headers="mcps1.3.3.2.5.3.2.3.1.1 "><p id="functiongraph_06_0103__p83051311204610">auth</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="78.79%" headers="mcps1.3.3.2.5.3.2.3.1.2 "><p id="functiongraph_06_0103__p143061811104616">API authentication mode. Options: <strong id="functiongraph_06_0103__b198145753010">NONE</strong>, <strong id="functiongraph_06_0103__b1567615983015">IAM</strong>, and <strong id="functiongraph_06_0103__b113912203119">APP</strong>. This parameter is mandatory.</p>
|
||
</td>
|
||
</tr>
|
||
<tr id="functiongraph_06_0103__row0307101174618"><td class="cellrowborder" valign="top" width="21.21%" headers="mcps1.3.3.2.5.3.2.3.1.1 "><p id="functiongraph_06_0103__p73081411124617">protocol</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="78.79%" headers="mcps1.3.3.2.5.3.2.3.1.2 "><p id="functiongraph_06_0103__p0309111164616">Access protocol. Options: <strong id="functiongraph_06_0103__b7193686313">HTTP</strong> and <strong id="functiongraph_06_0103__b6357410133115">HTTPS</strong>. This parameter is mandatory.</p>
|
||
</td>
|
||
</tr>
|
||
<tr id="functiongraph_06_0103__row11310611144616"><td class="cellrowborder" valign="top" width="21.21%" headers="mcps1.3.3.2.5.3.2.3.1.1 "><p id="functiongraph_06_0103__p831121116465">name</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="78.79%" headers="mcps1.3.3.2.5.3.2.3.1.2 "><p id="functiongraph_06_0103__p1444712591014">API name. This parameter is mandatory.</p>
|
||
</td>
|
||
</tr>
|
||
<tr id="functiongraph_06_0103__row1731351124610"><td class="cellrowborder" valign="top" width="21.21%" headers="mcps1.3.3.2.5.3.2.3.1.1 "><p id="functiongraph_06_0103__p131419110466">path</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="78.79%" headers="mcps1.3.3.2.5.3.2.3.1.2 "><p id="functiongraph_06_0103__p59913371628">API access address, which must meet the URL rules, for example, <strong id="functiongraph_06_0103__b1743132205019">/a/b</strong>. This parameter is mandatory.</p>
|
||
</td>
|
||
</tr>
|
||
<tr id="functiongraph_06_0103__row14316111154616"><td class="cellrowborder" valign="top" width="21.21%" headers="mcps1.3.3.2.5.3.2.3.1.1 "><p id="functiongraph_06_0103__p13484175218577">match_mode</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="78.79%" headers="mcps1.3.3.2.5.3.2.3.1.2 "><p id="functiongraph_06_0103__p15484152115718">Match mode. Currently, only the prefix match mode (corresponding to <strong id="functiongraph_06_0103__b14479458163113">SWA</strong>) is supported. This parameter is mandatory.</p>
|
||
</td>
|
||
</tr>
|
||
<tr id="functiongraph_06_0103__row456035604913"><td class="cellrowborder" valign="top" width="21.21%" headers="mcps1.3.3.2.5.3.2.3.1.1 "><p id="functiongraph_06_0103__p44848522572">req_method</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="78.79%" headers="mcps1.3.3.2.5.3.2.3.1.2 "><p id="functiongraph_06_0103__p648485225714">API request method, which is of enumerated type. Options: <strong id="functiongraph_06_0103__b20669193253112">GET</strong>, <strong id="functiongraph_06_0103__b1530710344318">POST</strong>, and <strong id="functiongraph_06_0103__b142031936143110">PUT</strong>. This parameter is mandatory.</p>
|
||
</td>
|
||
</tr>
|
||
<tr id="functiongraph_06_0103__row11626645145012"><td class="cellrowborder" valign="top" width="21.21%" headers="mcps1.3.3.2.5.3.2.3.1.1 "><p id="functiongraph_06_0103__p13484105211573">backend_type</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="78.79%" headers="mcps1.3.3.2.5.3.2.3.1.2 "><p id="functiongraph_06_0103__p7484105255711">Backend type, which must be set to <strong id="functiongraph_06_0103__b323763345414">FUNCTION</strong>. This parameter is mandatory.</p>
|
||
</td>
|
||
</tr>
|
||
<tr id="functiongraph_06_0103__row175011402512"><td class="cellrowborder" valign="top" width="21.21%" headers="mcps1.3.3.2.5.3.2.3.1.1 "><p id="functiongraph_06_0103__p1948515275719">type</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="78.79%" headers="mcps1.3.3.2.5.3.2.3.1.2 "><p id="functiongraph_06_0103__p24851252155716">API type. Currently, only open APIs (corresponding to value <strong id="functiongraph_06_0103__b1020061073212">1</strong>) are supported. This parameter is mandatory.</p>
|
||
</td>
|
||
</tr>
|
||
<tr id="functiongraph_06_0103__row1350103175112"><td class="cellrowborder" valign="top" width="21.21%" headers="mcps1.3.3.2.5.3.2.3.1.1 "><p id="functiongraph_06_0103__p45043155116">sl_domain</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="78.79%" headers="mcps1.3.3.2.5.3.2.3.1.2 "><p id="functiongraph_06_0103__p2050836519">Subdomain name. This parameter is mandatory.</p>
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
</li><li id="functiongraph_06_0103__li7809183563215">The data of a timer trigger is as follows:<pre class="codeblock" id="functiongraph_06_0103__codeblock9981142514118">{
|
||
"name": "string",
|
||
"schedule_type": "string",
|
||
"schedule": "string",
|
||
"user_event": "string"
|
||
}</pre>
|
||
<p class="msonormal" id="functiongraph_06_0103__p198110251116"><u id="functiongraph_06_0103__u2024311561576"><a href="#functiongraph_06_0103__table169831625017">Table 8</a></u> describes the parameters of a timer trigger.</p>
|
||
|
||
<div class="tablenoborder"><a name="functiongraph_06_0103__table169831625017"></a><a name="table169831625017"></a><table cellpadding="4" cellspacing="0" summary="" id="functiongraph_06_0103__table169831625017" frame="border" border="1" rules="all"><caption><b>Table 8 </b>Parameters of a timer trigger</caption><thead align="left"><tr id="functiongraph_06_0103__row1598213251719"><th align="left" class="cellrowborder" valign="top" width="21.21%" id="mcps1.3.3.2.6.3.2.3.1.1"><p id="functiongraph_06_0103__p89827251818">Parameter</p>
|
||
</th>
|
||
<th align="left" class="cellrowborder" valign="top" width="78.79%" id="mcps1.3.3.2.6.3.2.3.1.2"><p id="functiongraph_06_0103__p12982925913">Description</p>
|
||
</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody><tr id="functiongraph_06_0103__row19982192519119"><td class="cellrowborder" valign="top" width="21.21%" headers="mcps1.3.3.2.6.3.2.3.1.1 "><p id="functiongraph_06_0103__p698214252018">name</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="78.79%" headers="mcps1.3.3.2.6.3.2.3.1.2 "><p id="functiongraph_06_0103__p39820252119">Trigger name. This parameter is mandatory.</p>
|
||
</td>
|
||
</tr>
|
||
<tr id="functiongraph_06_0103__row1698272511116"><td class="cellrowborder" valign="top" width="21.21%" headers="mcps1.3.3.2.6.3.2.3.1.1 "><p id="functiongraph_06_0103__p20982325113">schedule_type</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="78.79%" headers="mcps1.3.3.2.6.3.2.3.1.2 "><p id="functiongraph_06_0103__p1198222510112">Schedule type. Options: <strong id="functiongraph_06_0103__b18563334253">Rate</strong> or <strong id="functiongraph_06_0103__b104001634142515">Cron</strong>. This parameter is mandatory.</p>
|
||
</td>
|
||
</tr>
|
||
<tr id="functiongraph_06_0103__row179821725415"><td class="cellrowborder" valign="top" width="21.21%" headers="mcps1.3.3.2.6.3.2.3.1.1 "><p id="functiongraph_06_0103__p998217257117">schedule</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="78.79%" headers="mcps1.3.3.2.6.3.2.3.1.2 "><p id="functiongraph_06_0103__p1898214252113">Schedule setting, which varies depending on the schedule type you choose. This parameter is mandatory.</p>
|
||
<p id="functiongraph_06_0103__p12279183214273">When <strong id="functiongraph_06_0103__b16711617181">schedule_type</strong> is set to <strong id="functiongraph_06_0103__b8531131319188">Rate</strong>, add unit m, h, or d behind a rate, for example, <strong id="functiongraph_06_0103__b924652711920">3m</strong> for 3 minutes.</p>
|
||
</td>
|
||
</tr>
|
||
<tr id="functiongraph_06_0103__row6983182514115"><td class="cellrowborder" valign="top" width="21.21%" headers="mcps1.3.3.2.6.3.2.3.1.1 "><p id="functiongraph_06_0103__p59838252012">user_event</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="78.79%" headers="mcps1.3.3.2.6.3.2.3.1.2 "><p id="functiongraph_06_0103__p79835258114">Additional information for calling a function. This parameter is optional.</p>
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
</li><li id="functiongraph_06_0103__li8272157335">The data of a Log Tank Service (LTS) trigger is as follows:<pre class="codeblock" id="functiongraph_06_0103__codeblock1783191617415">{
|
||
"trigger_type_code": "LTS",
|
||
"event_type_code": "MessageCreated",
|
||
"trigger_status": "ACTIVE",
|
||
"event_data": {
|
||
"log_group_id": "3e4d3bf7-7bad-11e9-92c5-fa163e6216be",
|
||
"log_topic_id": "41d90375-7bad-11e9-8bcf-fa163ea23ac3",
|
||
"log_group_name": "lts-group-5b42",
|
||
"log_topic_name": "lts-topic-5f3e"
|
||
}
|
||
}</pre>
|
||
<p id="functiongraph_06_0103__p54051949438"><a href="#functiongraph_06_0103__table866014421545">Table 9</a> describes the parameters of an LTS trigger.</p>
|
||
|
||
<div class="tablenoborder"><a name="functiongraph_06_0103__table866014421545"></a><a name="table866014421545"></a><table cellpadding="4" cellspacing="0" summary="" id="functiongraph_06_0103__table866014421545" frame="border" border="1" rules="all"><caption><b>Table 9 </b>Parameters of an LTS trigger</caption><thead align="left"><tr id="functiongraph_06_0103__row156603421411"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.3.2.7.3.2.3.1.1"><p id="functiongraph_06_0103__p86601842542">Parameter</p>
|
||
</th>
|
||
<th align="left" class="cellrowborder" valign="top" width="75%" id="mcps1.3.3.2.7.3.2.3.1.2"><p id="functiongraph_06_0103__p966044214410">Description</p>
|
||
</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody><tr id="functiongraph_06_0103__row126607423419"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.3.2.7.3.2.3.1.1 "><p id="functiongraph_06_0103__p126605421415">group_id</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="75%" headers="mcps1.3.3.2.7.3.2.3.1.2 "><p id="functiongraph_06_0103__p116603421048">Log group. This parameter is mandatory when you create an LTS trigger.</p>
|
||
</td>
|
||
</tr>
|
||
<tr id="functiongraph_06_0103__row266064212412"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.3.2.7.3.2.3.1.1 "><p id="functiongraph_06_0103__p1266024218416">topic_id</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="75%" headers="mcps1.3.3.2.7.3.2.3.1.2 "><p id="functiongraph_06_0103__p166607429412">Log topic. This parameter is mandatory when you create an LTS trigger.</p>
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
</li><li id="functiongraph_06_0103__li154443417330">The data of a Cloud Trace Service (CTS) trigger is as follows:<pre class="codeblock" id="functiongraph_06_0103__codeblock107271942696">{
|
||
"name": "eqwrwe",
|
||
"operations": ["AAD:addprotocolrule:addProtocolRule", "BCS:baas-apiserver:scalePeers", "ARS:ars:setConfigArs"]
|
||
}</pre>
|
||
<p id="functiongraph_06_0103__p1492316551492"><a href="#functiongraph_06_0103__table15406140191011">Table 10</a> describes the parameters of a CTS trigger.</p>
|
||
|
||
<div class="tablenoborder"><a name="functiongraph_06_0103__table15406140191011"></a><a name="table15406140191011"></a><table cellpadding="4" cellspacing="0" summary="" id="functiongraph_06_0103__table15406140191011" frame="border" border="1" rules="all"><caption><b>Table 10 </b>Parameters of a CTS trigger</caption><thead align="left"><tr id="functiongraph_06_0103__row9408840151010"><th align="left" class="cellrowborder" valign="top" width="24%" id="mcps1.3.3.2.8.3.2.3.1.1"><p id="functiongraph_06_0103__p19408144012100">Parameter</p>
|
||
</th>
|
||
<th align="left" class="cellrowborder" valign="top" width="76%" id="mcps1.3.3.2.8.3.2.3.1.2"><p id="functiongraph_06_0103__p540854051015">Description</p>
|
||
</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody><tr id="functiongraph_06_0103__row194083408109"><td class="cellrowborder" valign="top" width="24%" headers="mcps1.3.3.2.8.3.2.3.1.1 "><p id="functiongraph_06_0103__p194083401104">name</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="76%" headers="mcps1.3.3.2.8.3.2.3.1.2 "><p id="functiongraph_06_0103__p6408154011015">Name of a key notification.</p>
|
||
</td>
|
||
</tr>
|
||
<tr id="functiongraph_06_0103__row10408104021011"><td class="cellrowborder" valign="top" width="24%" headers="mcps1.3.3.2.8.3.2.3.1.1 "><p id="functiongraph_06_0103__p9408104015100">operations</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="76%" headers="mcps1.3.3.2.8.3.2.3.1.2 "><p id="functiongraph_06_0103__p9246172432618">Operation list.</p>
|
||
<p id="functiongraph_06_0103__p17408134051018">The format is "service type:resource type A;resource type B:operation 1;operation 2". Example: ["ECS:ecs;server:restartServer;deleteServer",...].</p>
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
</li><li id="functiongraph_06_0103__li8553115493910">The data of a Document Database Service (DDS) trigger is as follows:<pre class="screen" id="functiongraph_06_0103__screen05541154193910">{
|
||
"instance_id": "string",
|
||
"collection_name": "string",
|
||
"db_name": "string",
|
||
"db_password": string,
|
||
"batch_size": int,
|
||
}</pre>
|
||
|
||
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="functiongraph_06_0103__table15884524171014" frame="border" border="1" rules="all"><caption><b>Table 11 </b>Parameters of a DDS trigger</caption><thead align="left"><tr id="functiongraph_06_0103__row2088419244108"><th align="left" class="cellrowborder" valign="top" width="20.54%" id="mcps1.3.3.2.9.2.2.3.1.1"><p id="functiongraph_06_0103__p4978184791015">Parameter</p>
|
||
</th>
|
||
<th align="left" class="cellrowborder" valign="top" width="79.46%" id="mcps1.3.3.2.9.2.2.3.1.2"><p id="functiongraph_06_0103__p088419246109">Description</p>
|
||
</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody><tr id="functiongraph_06_0103__row7884202412106"><td class="cellrowborder" valign="top" width="20.54%" headers="mcps1.3.3.2.9.2.2.3.1.1 "><p id="functiongraph_06_0103__p6884142481011">instance_id</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="79.46%" headers="mcps1.3.3.2.9.2.2.3.1.2 "><p id="functiongraph_06_0103__p791415124226">DB instance ID.</p>
|
||
</td>
|
||
</tr>
|
||
<tr id="functiongraph_06_0103__row198841524181012"><td class="cellrowborder" valign="top" width="20.54%" headers="mcps1.3.3.2.9.2.2.3.1.1 "><p id="functiongraph_06_0103__p888411243104">collection_name</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="79.46%" headers="mcps1.3.3.2.9.2.2.3.1.2 "><p id="functiongraph_06_0103__p7884122451019">Collection name.</p>
|
||
</td>
|
||
</tr>
|
||
<tr id="functiongraph_06_0103__row8884162411108"><td class="cellrowborder" valign="top" width="20.54%" headers="mcps1.3.3.2.9.2.2.3.1.1 "><p id="functiongraph_06_0103__p1716285342112">db_name</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="79.46%" headers="mcps1.3.3.2.9.2.2.3.1.2 "><p id="functiongraph_06_0103__p11381415246">Database name.</p>
|
||
</td>
|
||
</tr>
|
||
<tr id="functiongraph_06_0103__row1388415243106"><td class="cellrowborder" valign="top" width="20.54%" headers="mcps1.3.3.2.9.2.2.3.1.1 "><p id="functiongraph_06_0103__p18884102414101">db_password</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="79.46%" headers="mcps1.3.3.2.9.2.2.3.1.2 "><p id="functiongraph_06_0103__p2088417240105">Password for logging in to the database.</p>
|
||
</td>
|
||
</tr>
|
||
<tr id="functiongraph_06_0103__row0884024141014"><td class="cellrowborder" valign="top" width="20.54%" headers="mcps1.3.3.2.9.2.2.3.1.1 "><p id="functiongraph_06_0103__p1188482411014">batch_size</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="79.46%" headers="mcps1.3.3.2.9.2.2.3.1.2 "><p id="functiongraph_06_0103__p208841024121013">Batch size.</p>
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
</li><li id="functiongraph_06_0103__li1572416462402">The data of a Kafka trigger is as follows:<pre class="screen" id="functiongraph_06_0103__screen672464644010">{
|
||
"instance_id": "string",
|
||
"db_name": "string",
|
||
"collection_name": "string",
|
||
"db_user": "string",
|
||
"db_password": string,
|
||
"batch_size": int,
|
||
}</pre>
|
||
|
||
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="functiongraph_06_0103__table1314382311219" frame="border" border="1" rules="all"><caption><b>Table 12 </b>Parameters of a Kafka trigger</caption><thead align="left"><tr id="functiongraph_06_0103__row131431231123"><th align="left" class="cellrowborder" valign="top" width="20.75%" id="mcps1.3.3.2.10.2.2.3.1.1"><p id="functiongraph_06_0103__p1879583361213">Parameter</p>
|
||
</th>
|
||
<th align="left" class="cellrowborder" valign="top" width="79.25%" id="mcps1.3.3.2.10.2.2.3.1.2"><p id="functiongraph_06_0103__p37951733151212">Description</p>
|
||
</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody><tr id="functiongraph_06_0103__row183761729122918"><td class="cellrowborder" valign="top" width="20.75%" headers="mcps1.3.3.2.10.2.2.3.1.1 "><p id="functiongraph_06_0103__p6376102992912">instance_id</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="79.25%" headers="mcps1.3.3.2.10.2.2.3.1.2 "><p id="functiongraph_06_0103__p113761029162910">Kafka instance ID.</p>
|
||
</td>
|
||
</tr>
|
||
<tr id="functiongraph_06_0103__row314392320129"><td class="cellrowborder" valign="top" width="20.75%" headers="mcps1.3.3.2.10.2.2.3.1.1 "><p id="functiongraph_06_0103__p5143132310125">topic_id</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="79.25%" headers="mcps1.3.3.2.10.2.2.3.1.2 "><p id="functiongraph_06_0103__p714317232122">Topic ID.</p>
|
||
</td>
|
||
</tr>
|
||
<tr id="functiongraph_06_0103__row14143152314125"><td class="cellrowborder" valign="top" width="20.75%" headers="mcps1.3.3.2.10.2.2.3.1.1 "><p id="functiongraph_06_0103__p1814317232127">kafka_user</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="79.25%" headers="mcps1.3.3.2.10.2.2.3.1.2 "><p id="functiongraph_06_0103__p0143162341214">Username.</p>
|
||
</td>
|
||
</tr>
|
||
<tr id="functiongraph_06_0103__row1914311231122"><td class="cellrowborder" valign="top" width="20.75%" headers="mcps1.3.3.2.10.2.2.3.1.1 "><p id="functiongraph_06_0103__p61431423191210">kafka_password</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="79.25%" headers="mcps1.3.3.2.10.2.2.3.1.2 "><p id="functiongraph_06_0103__p814302321218">Password.</p>
|
||
</td>
|
||
</tr>
|
||
<tr id="functiongraph_06_0103__row71431223141218"><td class="cellrowborder" valign="top" width="20.75%" headers="mcps1.3.3.2.10.2.2.3.1.1 "><p id="functiongraph_06_0103__p1614392311211">kafka_ssl_enable</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="79.25%" headers="mcps1.3.3.2.10.2.2.3.1.2 "><p id="functiongraph_06_0103__p19143202311126">Whether to enable SSL authentication. If SSL authentication is enabled, the <strong id="functiongraph_06_0103__b493814111619">kafka_user</strong> and <strong id="functiongraph_06_0103__b245818581514">kafka_password</strong> fields are mandatory.</p>
|
||
</td>
|
||
</tr>
|
||
<tr id="functiongraph_06_0103__row514302311214"><td class="cellrowborder" valign="top" width="20.75%" headers="mcps1.3.3.2.10.2.2.3.1.1 "><p id="functiongraph_06_0103__p41435232121">batch_size</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="79.25%" headers="mcps1.3.3.2.10.2.2.3.1.2 "><p id="functiongraph_06_0103__p91431723191217">Batch size.</p>
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
</li></ul>
|
||
</div>
|
||
</div>
|
||
<div>
|
||
<div class="familylinks">
|
||
<div class="parentlink"><strong>Parent topic:</strong> <a href="functiongraph_06_0101.html">Function Model Definition</a></div>
|
||
</div>
|
||
</div>
|
||
|