FG UMN 20250526 version
Reviewed-by: Mützel, Andrea <andrea.muetzel@t-systems.com> Co-authored-by: liusiying01 <liusiying@huawei.com> Co-committed-by: liusiying01 <liusiying@huawei.com>
|
Before Width: | Height: | Size: 14 KiB |
|
Before Width: | Height: | Size: 39 KiB |
|
Before Width: | Height: | Size: 25 KiB After Width: | Height: | Size: 34 KiB |
|
Before Width: | Height: | Size: 7.0 KiB |
|
Before Width: | Height: | Size: 29 KiB |
|
Before Width: | Height: | Size: 10 KiB |
|
Before Width: | Height: | Size: 35 KiB |
|
Before Width: | Height: | Size: 35 KiB |
|
Before Width: | Height: | Size: 30 KiB |
|
Before Width: | Height: | Size: 950 B |
|
Before Width: | Height: | Size: 22 KiB |
|
Before Width: | Height: | Size: 160 KiB |
|
Before Width: | Height: | Size: 86 KiB |
|
Before Width: | Height: | Size: 43 KiB |
|
Before Width: | Height: | Size: 91 KiB |
|
Before Width: | Height: | Size: 93 KiB |
|
Before Width: | Height: | Size: 84 KiB |
|
Before Width: | Height: | Size: 4.4 KiB After Width: | Height: | Size: 4.4 KiB |
|
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 22 KiB |
|
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 2.8 KiB |
|
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 4.2 KiB |
BIN
docs/fg/umn/en-us_image_0000002297455738.png
Normal file
|
After Width: | Height: | Size: 55 KiB |
BIN
docs/fg/umn/en-us_image_0000002297623066.png
Normal file
|
After Width: | Height: | Size: 34 KiB |
|
Before Width: | Height: | Size: 38 KiB After Width: | Height: | Size: 38 KiB |
BIN
docs/fg/umn/en-us_image_0000002323978684.png
Normal file
|
After Width: | Height: | Size: 31 KiB |
BIN
docs/fg/umn/en-us_image_0000002324141336.png
Normal file
|
After Width: | Height: | Size: 20 KiB |
BIN
docs/fg/umn/en-us_image_0000002331536373.png
Normal file
|
After Width: | Height: | Size: 34 KiB |
BIN
docs/fg/umn/en-us_image_0000002357971441.png
Normal file
|
After Width: | Height: | Size: 20 KiB |
BIN
docs/fg/umn/en-us_image_0000002357973433.png
Normal file
|
After Width: | Height: | Size: 26 KiB |
@ -1,21 +0,0 @@
|
||||
<a name="EN-US_TOPIC_0000001212603706"></a><a name="EN-US_TOPIC_0000001212603706"></a>
|
||||
|
||||
<h1 class="topictitle1">Event Functions</h1>
|
||||
<div id="body0000001212603706"><div class="section" id="EN-US_TOPIC_0000001212603706__section792742781512"><h4 class="sectiontitle">Overview</h4><p id="EN-US_TOPIC_0000001212603706__p1887343010152">FunctionGraph supports event functions. An event can trigger function execution. Generally, it is in JSON format. You can create an event to trigger your function through the cloud service platform or CodeArts IDE Online. All types of triggers supported by FunctionGraph can trigger event functions.</p>
|
||||
<div class="note" id="EN-US_TOPIC_0000001212603706__note20199249161019"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ol id="EN-US_TOPIC_0000001212603706__ol112413435152"><li id="EN-US_TOPIC_0000001212603706__li17241443161510">On the function creation page, <strong id="EN-US_TOPIC_0000001212603706__b892013983017">Function Type</strong> is set to <strong id="EN-US_TOPIC_0000001212603706__b11554100123020">Event Function</strong> by default.</li><li id="EN-US_TOPIC_0000001212603706__li141482044152419">During testing, a function can be triggered by simply entering the specified event in JSON format.</li><li id="EN-US_TOPIC_0000001212603706__li6608191314346">You can also use triggers to trigger event functions.</li></ol>
|
||||
</div></div>
|
||||
</div>
|
||||
<div class="section" id="EN-US_TOPIC_0000001212603706__section1357253312150"><h4 class="sectiontitle">Advantages</h4><ul id="EN-US_TOPIC_0000001212603706__ul10209533257"><li id="EN-US_TOPIC_0000001212603706__li135744955818">Easy single-node programming<p id="EN-US_TOPIC_0000001212603706__p65361612903"><a name="EN-US_TOPIC_0000001212603706__li135744955818"></a><a name="li135744955818"></a>You can edit event functions on FunctionGraph or upload code packages there and deploy them with just a few clicks. There is no need for you to care about function concurrency or fault rectification.</p>
|
||||
</li><li id="EN-US_TOPIC_0000001212603706__li133174818589">High-performance, high-speed runtimes<p id="EN-US_TOPIC_0000001212603706__p1362901184611"><a name="EN-US_TOPIC_0000001212603706__li133174818589"></a><a name="li133174818589"></a>Event functions can be started, scaled, and called within milliseconds. Faults can be detected and rectified within seconds.</p>
|
||||
</li><li id="EN-US_TOPIC_0000001212603706__li255216244596">Complete tool chain<p id="EN-US_TOPIC_0000001212603706__p211442911015"><a name="EN-US_TOPIC_0000001212603706__li255216244596"></a><a name="li255216244596"></a>FunctionGraph provides comprehensive logging, tracing, debugging, and monitoring, allowing developers to roll out functions in just three steps.</p>
|
||||
</li></ul>
|
||||
</div>
|
||||
<div class="section" id="EN-US_TOPIC_0000001212603706__section4275114115154"><h4 class="sectiontitle">Restrictions</h4><p id="EN-US_TOPIC_0000001212603706__p25391955153215">Event functions face event source restrictions. You need to comply with the function development rules of the function platform.</p>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<div class="familylinks">
|
||||
<div class="parentlink"><strong>Parent topic:</strong> <a href="en-us_topic_0000001257203581.html">Function Types</a></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -1,17 +0,0 @@
|
||||
<a name="EN-US_TOPIC_0000001257203581"></a><a name="EN-US_TOPIC_0000001257203581"></a>
|
||||
|
||||
<h1 class="topictitle1">Function Types</h1>
|
||||
<div id="body0000001257203581"></div>
|
||||
<div>
|
||||
<ul class="ullinks">
|
||||
<li class="ulchildlink"><strong><a href="en-us_topic_0000001212603706.html">Event Functions</a></strong><br>
|
||||
</li>
|
||||
<li class="ulchildlink"><strong><a href="en-us_topic_0000001257403573.html">HTTP Functions</a></strong><br>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<div class="familylinks">
|
||||
<div class="parentlink"><strong>Parent topic:</strong> <a href="functiongraph_01_1000.html">Service Overview</a></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -1,21 +0,0 @@
|
||||
<a name="EN-US_TOPIC_0000001257403573"></a><a name="EN-US_TOPIC_0000001257403573"></a>
|
||||
|
||||
<h1 class="topictitle1">HTTP Functions</h1>
|
||||
<div id="body0000001257403573"><div class="section" id="EN-US_TOPIC_0000001257403573__section158381422174817"><h4 class="sectiontitle">Overview</h4><p id="EN-US_TOPIC_0000001257403573__p08911948164815">FunctionGraph supports event functions and HTTP functions. HTTP functions are designed to optimize web services. You can send HTTP requests to URLs to trigger function execution. HTTP functions support APIG triggers only.</p>
|
||||
<div class="note" id="EN-US_TOPIC_0000001257403573__note20199249161019"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ol id="EN-US_TOPIC_0000001257403573__ol112413435152"><li id="EN-US_TOPIC_0000001257403573__li1645355615">HTTP functions support the HTTP/1.1 protocol.</li><li id="EN-US_TOPIC_0000001257403573__li17241443161510">On the function creation page, <strong id="EN-US_TOPIC_0000001257403573__b12403205914467">HTTP Function</strong> is newly added.</li><li id="EN-US_TOPIC_0000001257403573__li17454474166">The HTTP function must be set to bootstrap. You can directly write the startup command and <strong id="EN-US_TOPIC_0000001257403573__b421724582616">allow access over port 8000</strong>.</li></ol>
|
||||
</div></div>
|
||||
</div>
|
||||
<div class="section" id="EN-US_TOPIC_0000001257403573__section51075716490"><h4 class="sectiontitle">Advantages</h4><ul id="EN-US_TOPIC_0000001257403573__ul1357413985818"><li id="EN-US_TOPIC_0000001257403573__li135744955818">Support for multiple frameworks<p id="EN-US_TOPIC_0000001257403573__p65361612903"><a name="EN-US_TOPIC_0000001257403573__li135744955818"></a><a name="li135744955818"></a>You can use common web frameworks, such as Node.js Express and Koa, to write web functions, and migrate your local web framework services to the cloud with least modifications.</p>
|
||||
</li><li id="EN-US_TOPIC_0000001257403573__li133174818589">Fewer request processing steps<p id="EN-US_TOPIC_0000001257403573__p1590219159020"><a name="EN-US_TOPIC_0000001257403573__li133174818589"></a><a name="li133174818589"></a>Functions can directly receive and process HTTP requests, eliminating the need for API Gateway to convert the JSON format. This accelerates request processing and improves web service performance.</p>
|
||||
</li><li id="EN-US_TOPIC_0000001257403573__li255216244596">Premium writing experience<p id="EN-US_TOPIC_0000001257403573__p211442911015"><a name="EN-US_TOPIC_0000001257403573__li255216244596"></a><a name="li255216244596"></a>Writing HTTP functions is similar to writing native web services. You can also use native Node.js APIs to enjoy local development-like experience.</p>
|
||||
</li></ul>
|
||||
</div>
|
||||
<div class="section" id="EN-US_TOPIC_0000001257403573__section14204102684913"><h4 class="sectiontitle">Restrictions</h4><ul id="EN-US_TOPIC_0000001257403573__ul1863910297493"><li id="EN-US_TOPIC_0000001257403573__li10639929174918">HTTP functions support APIG (dedicated) triggers only.</li><li id="EN-US_TOPIC_0000001257403573__li46391829184910">Multiple API triggers can be bound to the same function, but all the APIs must belong to the same APIG service.</li><li id="EN-US_TOPIC_0000001257403573__li19639112917493">For HTTP functions, the size of the HTTP response body cannot exceed 6 MB.</li><li id="EN-US_TOPIC_0000001257403573__li517810213199">HTTP functions cannot be executed for a long time, invoked asynchronously, or retried.</li></ul>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<div class="familylinks">
|
||||
<div class="parentlink"><strong>Parent topic:</strong> <a href="en-us_topic_0000001257203581.html">Function Types</a></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -1,35 +0,0 @@
|
||||
<a name="EN-US_TOPIC_0000002092946253"></a><a name="EN-US_TOPIC_0000002092946253"></a>
|
||||
|
||||
<h1 class="topictitle1">Change History</h1>
|
||||
<div id="en-us_topic_0000002087653269_body0000002087653269">
|
||||
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000002092946253__en-us_topic_0000002087653269_table116761430154919" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Change history</caption><thead align="left"><tr id="EN-US_TOPIC_0000002092946253__en-us_topic_0000002087653269_row16773303490"><th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.1.2.3.1.1"><p id="EN-US_TOPIC_0000002092946253__en-us_topic_0000002087653269_p19677830194910">Released On</p>
|
||||
</th>
|
||||
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.1.2.3.1.2"><p id="EN-US_TOPIC_0000002092946253__en-us_topic_0000002087653269_p8677183094914">Description</p>
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody><tr id="EN-US_TOPIC_0000002092946253__en-us_topic_0000002087653269_row29034984513"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.1.2.3.1.1 "><p id="EN-US_TOPIC_0000002092946253__en-us_topic_0000002087653269_p1090749124512">2025-02-27</p>
|
||||
</td>
|
||||
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.1.2.3.1.2 "><ol id="EN-US_TOPIC_0000002092946253__en-us_topic_0000002087653269_ol109401819114617"><li id="EN-US_TOPIC_0000002092946253__en-us_topic_0000002087653269_li2870155454618">Added the VPC CIDR block during VPC configuration. For details, see <a href="functiongraph_01_0222.html#functiongraph_01_0222__en-us_topic_0000001298507413_fig5838194095016">Configuring the VPC CIDR Block</a>.</li><li id="EN-US_TOPIC_0000002092946253__en-us_topic_0000002087653269_li19344120101118">Added <a href="functiongraph_01_0394.html">Using a RocketMQ Trigger</a>.</li><li id="EN-US_TOPIC_0000002092946253__en-us_topic_0000002087653269_li112125371318">Added <a href="functiongraph_01_1441.html#functiongraph_01_1441__en-us_topic_0000001251907924_li183661110102712">advanced setting</a> parameters for creating a function.</li></ol>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="EN-US_TOPIC_0000002092946253__en-us_topic_0000002087653269_row8101143415381"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.1.2.3.1.1 "><p id="EN-US_TOPIC_0000002092946253__en-us_topic_0000002087653269_p410243413386">2024-12-13</p>
|
||||
</td>
|
||||
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.1.2.3.1.2 "><ol id="EN-US_TOPIC_0000002092946253__en-us_topic_0000002087653269_ol12868175871919"><li id="EN-US_TOPIC_0000002092946253__en-us_topic_0000002087653269_li142013442010">Modified the path of the <strong id="EN-US_TOPIC_0000002092946253__en-us_topic_0000002087653269_b54121887344">ENTRYPOINT</strong> variable. For details, see <a href="functiongraph_04_0103.html#functiongraph_04_0103__li5357613144220">Creating a Dockerfile</a>.</li><li id="EN-US_TOPIC_0000002092946253__en-us_topic_0000002087653269_li1706149122017">Added Node.js examples and the method for obtaining environment variables. For details, see <a href="functiongraph_01_0154.html#functiongraph_01_0154__en-us_topic_0000001298786821_section970817574358">Example</a>.</li><li id="EN-US_TOPIC_0000002092946253__en-us_topic_0000002087653269_li4986111252016">Modified the Cron expression configuration examples. For details, see <a href="functiongraph_01_0908.html#functiongraph_01_0908__en-us_topic_0000001251907928_table15947192714179">Table 6</a>.</li><li id="EN-US_TOPIC_0000002092946253__en-us_topic_0000002087653269_li9868145819199">Changed <strong id="EN-US_TOPIC_0000002092946253__en-us_topic_0000002087653269_b116264405344">SoftWare</strong> to <strong id="EN-US_TOPIC_0000002092946253__en-us_topic_0000002087653269_b462684073420">Software</strong>. For details, see <a href="functiongraph_01_0920.html#functiongraph_01_0920__en-us_topic_0000001298507433_table375913368504">Table 1</a>.</li></ol>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="EN-US_TOPIC_0000002092946253__en-us_topic_0000002087653269_row18499125320264"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.1.2.3.1.1 "><p id="EN-US_TOPIC_0000002092946253__en-us_topic_0000002087653269_p149975315260">2024-10-18</p>
|
||||
</td>
|
||||
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.1.2.3.1.2 "><ol id="EN-US_TOPIC_0000002092946253__en-us_topic_0000002087653269_ol14350195604910"><li id="EN-US_TOPIC_0000002092946253__en-us_topic_0000002087653269_li113503562493">Added the domain name resolution feature. For details, see <a href="functiongraph_01_0222.html#functiongraph_01_0222__en-us_topic_0000001298507413_li19413205719162">Configuring Domain Names</a>.</li><li id="EN-US_TOPIC_0000002092946253__en-us_topic_0000002087653269_li639235812492">Updated the supported runtime versions.</li></ol>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="EN-US_TOPIC_0000002092946253__en-us_topic_0000002087653269_row1267743015494"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.1.2.3.1.1 "><p id="EN-US_TOPIC_0000002092946253__en-us_topic_0000002087653269_p567763019495">2023-06-26</p>
|
||||
</td>
|
||||
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.1.2.3.1.2 "><p id="EN-US_TOPIC_0000002092946253__en-us_topic_0000002087653269_p136771530194913">This issue is the first official release.</p>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
45
docs/fg/umn/functiongraph_01_0001.html
Normal file
@ -0,0 +1,45 @@
|
||||
<a name="functiongraph_01_0001"></a><a name="functiongraph_01_0001"></a>
|
||||
|
||||
<h1 class="topictitle1">Change History</h1>
|
||||
<div id="body8662426">
|
||||
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="functiongraph_01_0001__en-us_topic_0000002087653269_table116761430154919" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Change history</caption><thead align="left"><tr id="functiongraph_01_0001__en-us_topic_0000002087653269_row16773303490"><th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.1.2.3.1.1"><p id="functiongraph_01_0001__en-us_topic_0000002087653269_p19677830194910">Released On</p>
|
||||
</th>
|
||||
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.1.2.3.1.2"><p id="functiongraph_01_0001__en-us_topic_0000002087653269_p8677183094914">Description</p>
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody><tr id="functiongraph_01_0001__row17834171512508"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.1.2.3.1.1 "><p id="functiongraph_01_0001__p168341315105015">2025-09-16</p>
|
||||
</td>
|
||||
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.1.2.3.1.2 "><p id="functiongraph_01_0001__p1983531517503">Modified the test event in the <a href="functiongraph_01_0302.html">Online Debugging</a> section.</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="functiongraph_01_0001__row64805295014"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.1.2.3.1.1 "><p id="functiongraph_01_0001__p94801522507">2025-05-28</p>
|
||||
</td>
|
||||
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.1.2.3.1.2 "><ol id="functiongraph_01_0001__ol1474133185217"><li id="functiongraph_01_0001__li0741133195214">Added <a href="functiongraph_01_0418.html">Configuring Class Isolation and Pre-stop for Java Functions</a>.</li><li id="functiongraph_01_0001__li193321733205217">Updated the runtime version in <a href="functiongraph_03_0260.html">What Runtimes Does FunctionGraph Support?</a>.</li></ol>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="functiongraph_01_0001__en-us_topic_0000002087653269_row29034984513"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.1.2.3.1.1 "><p id="functiongraph_01_0001__en-us_topic_0000002087653269_p1090749124512">2025-02-27</p>
|
||||
</td>
|
||||
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.1.2.3.1.2 "><ol id="functiongraph_01_0001__en-us_topic_0000002087653269_ol109401819114617"><li id="functiongraph_01_0001__en-us_topic_0000002087653269_li2870155454618">Added the VPC CIDR block during VPC configuration. For details, see <a href="functiongraph_01_0222.html#functiongraph_01_0222__en-us_topic_0000001298507413_li1099612128246">Configuring the VPC CIDR Block</a>.</li><li id="functiongraph_01_0001__en-us_topic_0000002087653269_li19344120101118">Added <a href="functiongraph_01_0394.html">Using a RocketMQ Trigger</a>.</li><li id="functiongraph_01_0001__en-us_topic_0000002087653269_li112125371318">Added <a href="functiongraph_01_1441.html#functiongraph_01_1441__en-us_topic_0000001251907924_li183661110102712">advanced setting</a> parameters for creating a function.</li></ol>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="functiongraph_01_0001__en-us_topic_0000002087653269_row8101143415381"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.1.2.3.1.1 "><p id="functiongraph_01_0001__en-us_topic_0000002087653269_p410243413386">2024-12-13</p>
|
||||
</td>
|
||||
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.1.2.3.1.2 "><ol id="functiongraph_01_0001__en-us_topic_0000002087653269_ol12868175871919"><li id="functiongraph_01_0001__en-us_topic_0000002087653269_li142013442010">Modified the path of the <strong id="functiongraph_01_0001__en-us_topic_0000002087653269_b54121887344">ENTRYPOINT</strong> variable. For details, see <a href="functiongraph_04_0103.html#functiongraph_04_0103__li5357613144220">Creating a Dockerfile</a>.</li><li id="functiongraph_01_0001__en-us_topic_0000002087653269_li1706149122017">Added Node.js examples and the method for obtaining environment variables. For details, see <a href="functiongraph_01_0154.html#functiongraph_01_0154__en-us_topic_0000001298786821_section970817574358">Example</a>.</li><li id="functiongraph_01_0001__en-us_topic_0000002087653269_li4986111252016">Modified the Cron expression configuration examples. For details, see <a href="functiongraph_01_0908.html#functiongraph_01_0908__en-us_topic_0000001251907928_table15947192714179">Table 6</a>.</li><li id="functiongraph_01_0001__en-us_topic_0000002087653269_li9868145819199">Changed <strong id="functiongraph_01_0001__b86115273413">SoftWare</strong> to <strong id="functiongraph_01_0001__b116282711411">Software</strong>. For details, see <a href="functiongraph_01_0920.html#functiongraph_01_0920__en-us_topic_0000001298507433_table375913368504">Table 1</a>.</li></ol>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="functiongraph_01_0001__en-us_topic_0000002087653269_row18499125320264"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.1.2.3.1.1 "><p id="functiongraph_01_0001__en-us_topic_0000002087653269_p149975315260">2024-10-18</p>
|
||||
</td>
|
||||
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.1.2.3.1.2 "><ol id="functiongraph_01_0001__en-us_topic_0000002087653269_ol14350195604910"><li id="functiongraph_01_0001__en-us_topic_0000002087653269_li113503562493">Added the domain name resolution feature. For details, see <a href="functiongraph_01_0222.html#functiongraph_01_0222__en-us_topic_0000001298507413_li19413205719162">Configuring Domain Names</a>.</li><li id="functiongraph_01_0001__en-us_topic_0000002087653269_li639235812492">Updated the supported runtime versions.</li></ol>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="functiongraph_01_0001__en-us_topic_0000002087653269_row1267743015494"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.1.2.3.1.1 "><p id="functiongraph_01_0001__en-us_topic_0000002087653269_p567763019495">2023-06-26</p>
|
||||
</td>
|
||||
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.1.2.3.1.2 "><p id="functiongraph_01_0001__en-us_topic_0000002087653269_p136771530194913">This issue is the first official release.</p>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -4,10 +4,12 @@
|
||||
<div id="body8662426"></div>
|
||||
<div>
|
||||
<ul class="ullinks">
|
||||
<li class="ulchildlink"><strong><a href="functiongraph_01_0110.html">Use of FunctionGraph</a></strong><br>
|
||||
<li class="ulchildlink"><strong><a href="functiongraph_01_0110.html">Process of Using FunctionGraph</a></strong><br>
|
||||
</li>
|
||||
<li class="ulchildlink"><strong><a href="functiongraph_01_0140.html">Permissions Management</a></strong><br>
|
||||
</li>
|
||||
<li class="ulchildlink"><strong><a href="functiongraph_01_0151_0.html">Supported Runtimes</a></strong><br>
|
||||
</li>
|
||||
<li class="ulchildlink"><strong><a href="functiongraph_01_0151.html">Supported Programming Languages</a></strong><br>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
@ -5,19 +5,19 @@
|
||||
<p id="functiongraph_01_0100_0__p1526763143616"><a href="#functiongraph_01_0100_0__fig4953173820317">Figure 1</a> shows the process of using FunctionGraph.</p>
|
||||
<div class="fignone" id="functiongraph_01_0100_0__fig4953173820317"><a name="functiongraph_01_0100_0__fig4953173820317"></a><a name="fig4953173820317"></a><span class="figcap"><b>Figure 1 </b>Usage process</span><br><span><img id="functiongraph_01_0100_0__image109531138143120" src="en-us_image_0000001212740388.png" title="Click to enlarge" class="imgResize"></span></div>
|
||||
<div class="section" id="functiongraph_01_0100_0__section112221539103319"><h4 class="sectiontitle">Feature Overview</h4><p id="functiongraph_01_0100_0__en-us_topic_0000001174894778_p727219375280"><strong id="functiongraph_01_0100_0__b194511234810">1. Write code.</strong></p>
|
||||
<p id="functiongraph_01_0100_0__en-us_topic_0000001174894778_p1299012219281">Write code in Node.js, Python, Java, C#, PHP, or Go. For details, see the <em id="functiongraph_01_0100_0__i226369101517">FunctionGraph Developer Guide</em>.</p>
|
||||
<p id="functiongraph_01_0100_0__en-us_topic_0000001174894778_p1299012219281">Write code in Node.js, Python, Java, C#, PHP, Go, or Custom runtime. For details, see the <em id="functiongraph_01_0100_0__i5522121016478">FunctionGraph Developer Guide</em>.</p>
|
||||
<p id="functiongraph_01_0100_0__en-us_topic_0000001174894778_p55417551282"><strong id="functiongraph_01_0100_0__b683375011911">2. Upload code.</strong></p>
|
||||
<p id="functiongraph_01_0100_0__en-us_topic_0000001174894778_p68951243192816">Currently, you can edit code inline, upload a ZIP or JAR file, or obtain a ZIP file from OBS. For details, see <a href="functiongraph_01_0200_0.html#functiongraph_01_0200_0__table35034283164337">Table 2</a>.</p>
|
||||
<p id="functiongraph_01_0100_0__en-us_topic_0000001174894778_p684977142913"><strong id="functiongraph_01_0100_0__b13213561593">3. Trigger functions by API calls or cloud service events.</strong></p>
|
||||
<p id="functiongraph_01_0100_0__en-us_topic_0000001174894778_p921618772911">Call RESTful APIs or use cloud service event sources to trigger function execution and generate instances to implement service functions.</p>
|
||||
<p id="functiongraph_01_0100_0__en-us_topic_0000001174894778_p921618772911">Call RESTful APIs or use cloud service event sources to trigger function execution and generate instances to implement service functions. For details, see <a href="functiongraph_01_0200_0.html#functiongraph_01_0200_0__section327204091911">Function Triggers</a>.</p>
|
||||
<p id="functiongraph_01_0100_0__en-us_topic_0000001174894778_p1490164217294"><strong id="functiongraph_01_0100_0__b46666512105">4. Auto scaling is implemented.</strong></p>
|
||||
<p id="functiongraph_01_0100_0__en-us_topic_0000001174894778_p1753918353293">During function execution, FunctionGraph scales automatically based on the number of requests without the need for configurations. For details about the maximum number of function instances that can be run concurrently, see <a href="functiongraph_01_0150.html">Notes and Constraints</a>.</p>
|
||||
<p id="functiongraph_01_0100_0__en-us_topic_0000001174894778_p92715577291"><strong id="functiongraph_01_0100_0__b1497841471020">5. View logs.</strong></p>
|
||||
<p id="functiongraph_01_0100_0__en-us_topic_0000001174894778_p3985144920290">View run logs of functions as FunctionGraph is interconnected with Log Tank Service (LTS). For details, see <a href="functiongraph_01_0170.html">Querying Function Logs</a>.</p>
|
||||
<p id="functiongraph_01_0100_0__en-us_topic_0000001174894778_p3985144920290">View run logs of function as FunctionGraph is interconnected with Log Tank Service (LTS). For details, see <a href="functiongraph_01_0200_0.html#functiongraph_01_0200_0__section382816599214">Logs and Metrics</a>.</p>
|
||||
<p id="functiongraph_01_0100_0__en-us_topic_0000001174894778_p960875193020"><strong id="functiongraph_01_0100_0__b121620914115">6. View monitoring information.</strong></p>
|
||||
<p id="functiongraph_01_0100_0__en-us_topic_0000001174894778_p1669715016307">View graphical monitoring information. FunctionGraph is interconnected with Application Operations Management (AOM).</p>
|
||||
<p id="functiongraph_01_0100_0__en-us_topic_0000001174894778_p1669715016307">Monitor function information in graphics as FunctionGraph is interconnected with Application Operations Management (AOM). For details, see <a href="functiongraph_01_0200_0.html#functiongraph_01_0200_0__section382816599214">Logs and Metrics</a>.</p>
|
||||
<p id="functiongraph_01_0100_0__en-us_topic_0000001174894778_p3214115812342"><strong id="functiongraph_01_0100_0__b101794710112">7. Billing mode</strong></p>
|
||||
<p id="functiongraph_01_0100_0__en-us_topic_0000001174894778_p32331494300">After a function is executed, you will be billed based on the number of function execution requests and execution duration.</p>
|
||||
<p id="functiongraph_01_0100_0__en-us_topic_0000001174894778_p32331494300">After the function execution is complete, you will be billed based on the number of requests and the execution duration. For details, see Billing Overview.</p>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
<a name="functiongraph_01_0110"></a><a name="functiongraph_01_0110"></a>
|
||||
|
||||
<h1 class="topictitle1">Use of FunctionGraph</h1>
|
||||
<h1 class="topictitle1">Process of Using FunctionGraph</h1>
|
||||
<div id="body8662426"><p id="functiongraph_01_0110__en-us_topic_0000001251907944_p14943529141713">FunctionGraph allows you to run your code without provisioning or managing servers, while ensuring high availability and scalability. All you need to do is upload your code and set execution conditions, and FunctionGraph will take care of the rest.</p>
|
||||
<p id="functiongraph_01_0110__en-us_topic_0000001251907944_p6247740204">To quickly create a function using FunctionGraph, do as follows:</p>
|
||||
<p id="functiongraph_01_0110__en-us_topic_0000001251907944_p176926002217"><span><img id="functiongraph_01_0110__en-us_topic_0000001251907944_image19692180112213" src="en-us_image_0000002024507229.png"></span></p>
|
||||
@ -10,11 +10,11 @@
|
||||
</li></ol>
|
||||
<p id="functiongraph_01_0110__en-us_topic_0000001251907944_p62596142162959">The following shows the details:</p>
|
||||
<ol id="functiongraph_01_0110__en-us_topic_0000001251907944_ol69402396508"><li id="functiongraph_01_0110__en-us_topic_0000001251907944_li1610523762117">Write code.<p id="functiongraph_01_0110__en-us_topic_0000001251907944_p1293375242118"><a name="functiongraph_01_0110__en-us_topic_0000001251907944_li1610523762117"></a><a name="en-us_topic_0000001251907944_li1610523762117"></a>Write code in Node.js, Python, Java, C#, PHP, or Go.</p>
|
||||
</li><li id="functiongraph_01_0110__en-us_topic_0000001251907944_li24851082211">Upload code.<p id="functiongraph_01_0110__en-us_topic_0000001251907944_p44892514224"><a name="functiongraph_01_0110__en-us_topic_0000001251907944_li24851082211"></a><a name="en-us_topic_0000001251907944_li24851082211"></a>Edit code inline, upload a local ZIP or JAR file, or upload a ZIP file from OBS. For details, see <a href="functiongraph_01_0152.html#functiongraph_01_0152">Creating a Deployment Package</a>.</p>
|
||||
</li><li id="functiongraph_01_0110__en-us_topic_0000001251907944_li154513982210">Trigger functions by API calls or cloud service events.<p id="functiongraph_01_0110__en-us_topic_0000001251907944_p14818182911223"><a name="functiongraph_01_0110__en-us_topic_0000001251907944_li154513982210"></a><a name="en-us_topic_0000001251907944_li154513982210"></a>Functions are triggered by API calls or cloud service events. For details, see <a href="functiongraph_01_0200.html#functiongraph_01_0200">Creating Triggers</a>.</p>
|
||||
</li><li id="functiongraph_01_0110__en-us_topic_0000001251907944_li24851082211">Upload code.<p id="functiongraph_01_0110__en-us_topic_0000001251907944_p44892514224"><a name="functiongraph_01_0110__en-us_topic_0000001251907944_li24851082211"></a><a name="en-us_topic_0000001251907944_li24851082211"></a>Edit code inline, upload a local ZIP or JAR file, or upload a ZIP file from OBS. For details, see <a href="functiongraph_01_0152.html#functiongraph_01_0152">Configuring Code</a>.</p>
|
||||
</li><li id="functiongraph_01_0110__en-us_topic_0000001251907944_li154513982210">Trigger functions by API calls or cloud service events.<p id="functiongraph_01_0110__en-us_topic_0000001251907944_p14818182911223"><a name="functiongraph_01_0110__en-us_topic_0000001251907944_li154513982210"></a><a name="en-us_topic_0000001251907944_li154513982210"></a>Functions are triggered by API calls or cloud service events. For details, see <a href="functiongraph_01_0200.html#functiongraph_01_0200">Configuring Triggers</a>.</p>
|
||||
</li><li id="functiongraph_01_0110__en-us_topic_0000001251907944_li19678101718236">Implement auto scaling.<p id="functiongraph_01_0110__en-us_topic_0000001251907944_p1369862442320"><a name="functiongraph_01_0110__en-us_topic_0000001251907944_li19678101718236"></a><a name="en-us_topic_0000001251907944_li19678101718236"></a>FunctionGraph implements auto scaling based on the number of requests. For details, see section "Notes and Constraints".</p>
|
||||
</li><li id="functiongraph_01_0110__en-us_topic_0000001251907944_li12169132812314">View logs.<p id="functiongraph_01_0110__en-us_topic_0000001251907944_p1357093710238"><a name="functiongraph_01_0110__en-us_topic_0000001251907944_li12169132812314"></a><a name="en-us_topic_0000001251907944_li12169132812314"></a>View run logs of function. FunctionGraph is interconnected with Log Tank Service (LTS). For details, see <a href="functiongraph_01_1833.html#functiongraph_01_1833">Logs</a>.</p>
|
||||
</li><li id="functiongraph_01_0110__en-us_topic_0000001251907944_li11189134117231">View monitoring information.<p id="functiongraph_01_0110__en-us_topic_0000001251907944_p1763155122316"><a name="functiongraph_01_0110__en-us_topic_0000001251907944_li11189134117231"></a><a name="en-us_topic_0000001251907944_li11189134117231"></a>View graphical monitoring information. FunctionGraph is interconnected with Cloud Eye. For details, see <a href="functiongraph_01_0211.html#functiongraph_01_0211">Metrics</a>.</p>
|
||||
</li><li id="functiongraph_01_0110__en-us_topic_0000001251907944_li12169132812314">View logs.<p id="functiongraph_01_0110__en-us_topic_0000001251907944_p1357093710238"><a name="functiongraph_01_0110__en-us_topic_0000001251907944_li12169132812314"></a><a name="en-us_topic_0000001251907944_li12169132812314"></a>View run logs of function. FunctionGraph is interconnected with Log Tank Service (LTS). For details, see <a href="functiongraph_01_1834.html#functiongraph_01_1834">Managing Function Logs</a>.</p>
|
||||
</li><li id="functiongraph_01_0110__en-us_topic_0000001251907944_li11189134117231">View monitoring information.<p id="functiongraph_01_0110__en-us_topic_0000001251907944_p1763155122316"><a name="functiongraph_01_0110__en-us_topic_0000001251907944_li11189134117231"></a><a name="en-us_topic_0000001251907944_li11189134117231"></a>View graphical monitoring information. FunctionGraph is interconnected with Cloud Eye. For details, see <a href="functiongraph_01_0212.html#functiongraph_01_0212">Viewing FunctionGraph Metrics</a>.</p>
|
||||
</li></ol>
|
||||
</div>
|
||||
<div class="section" id="functiongraph_01_0110__en-us_topic_0000001251907944_section123696302544"><a name="functiongraph_01_0110__en-us_topic_0000001251907944_section123696302544"></a><a name="en-us_topic_0000001251907944_section123696302544"></a><h4 class="sectiontitle">Introduction to Dashboard</h4><div class="p" id="functiongraph_01_0110__en-us_topic_0000001251907944_p13986172671210">Log in to the FunctionGraph console and choose <strong id="functiongraph_01_0110__en-us_topic_0000001251907944_b163421614185119">Dashboard</strong> in the navigation pane on the left.<ul id="functiongraph_01_0110__en-us_topic_0000001251907944_ul81305165819"><li id="functiongraph_01_0110__en-us_topic_0000001251907944_li111308161884">View your created functions/function quota, used storage/storage quota, and monthly invocations and resource usage.<div class="fignone" id="functiongraph_01_0110__en-us_topic_0000001251907944_fig1886711153814"><span class="figcap"><b>Figure 2 </b>Monthly statistics</span><br><span><img id="functiongraph_01_0110__en-us_topic_0000001251907944_image286811151687" src="en-us_image_0000001629968978.png" title="Click to enlarge" class="imgResize"></span></div>
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
|
||||
<div class="tablenoborder"><a name="functiongraph_01_0130__table3990123112020"></a><a name="table3990123112020"></a><table cellpadding="4" cellspacing="0" summary="" id="functiongraph_01_0130__table3990123112020" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Interconnected services</caption><thead align="left"><tr id="functiongraph_01_0130__row599093111201"><th align="left" class="cellrowborder" valign="top" width="22.84%" id="mcps1.3.2.2.3.1.1"><p id="functiongraph_01_0130__p15856175322015">Service</p>
|
||||
</th>
|
||||
<th align="left" class="cellrowborder" valign="top" width="77.16%" id="mcps1.3.2.2.3.1.2"><p id="functiongraph_01_0130__p099063114206">Function</p>
|
||||
<th align="left" class="cellrowborder" valign="top" width="77.16%" id="mcps1.3.2.2.3.1.2"><p id="functiongraph_01_0130__p099063114206">Description</p>
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
@ -14,6 +14,11 @@
|
||||
<td class="cellrowborder" valign="top" width="77.16%" headers="mcps1.3.2.2.3.1.2 "><p id="functiongraph_01_0130__p799016313204">FunctionGraph functions are constructed to process SMN notifications.</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="functiongraph_01_0130__row2099063122013"><td class="cellrowborder" valign="top" width="22.84%" headers="mcps1.3.2.2.3.1.1 "><p id="functiongraph_01_0130__p3856185382014">DMS</p>
|
||||
</td>
|
||||
<td class="cellrowborder" valign="top" width="77.16%" headers="mcps1.3.2.2.3.1.2 "><p id="functiongraph_01_0130__p247105531819">FunctionGraph functions are configured to automatically poll DMS queues for messages and process any new messages. </p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="functiongraph_01_0130__row1799083114200"><td class="cellrowborder" valign="top" width="22.84%" headers="mcps1.3.2.2.3.1.1 "><p id="functiongraph_01_0130__p208564536207">API Gateway</p>
|
||||
</td>
|
||||
<td class="cellrowborder" valign="top" width="77.16%" headers="mcps1.3.2.2.3.1.2 "><p id="functiongraph_01_0130__p19919316208">FunctionGraph functions are invoked over HTTPS by defining REST APIs with specified backend services. </p>
|
||||
@ -24,9 +29,9 @@
|
||||
<td class="cellrowborder" valign="top" width="77.16%" headers="mcps1.3.2.2.3.1.2 "><p id="functiongraph_01_0130__p1618635172119">FunctionGraph functions are created to process OBS bucket events, such as object creation or deletion events. For example, when an image is uploaded to the specified bucket, OBS invokes the function to read the image and create a thumbnail. </p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="functiongraph_01_0130__row399113118205"><td class="cellrowborder" valign="top" width="22.84%" headers="mcps1.3.2.2.3.1.1 "><p id="functiongraph_01_0130__p485605320208">DIS</p>
|
||||
<tr id="functiongraph_01_0130__row199163120201"><td class="cellrowborder" valign="top" width="22.84%" headers="mcps1.3.2.2.3.1.1 "><p id="functiongraph_01_0130__p2495466438">LTS</p>
|
||||
</td>
|
||||
<td class="cellrowborder" valign="top" width="77.16%" headers="mcps1.3.2.2.3.1.2 "><p id="functiongraph_01_0130__p10991531132013">FunctionGraph functions are created to periodically poll DIS streams for new records, such as website click streams, financial transactions, social media streams, IT logs, and location-tracking events. </p>
|
||||
<td class="cellrowborder" valign="top" width="77.16%" headers="mcps1.3.2.2.3.1.2 "><p id="functiongraph_01_0130__p999193142019">FunctionGraph functions are built to process logs subscribed to in LTS. When LTS collects subscribed logs, the function is triggered to process or analyze the logs or to load the logs to other systems. </p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="functiongraph_01_0130__row8991103116201"><td class="cellrowborder" valign="top" width="22.84%" headers="mcps1.3.2.2.3.1.1 "><p id="functiongraph_01_0130__p20856165332019">CTS</p>
|
||||
@ -40,6 +45,11 @@
|
||||
<td class="cellrowborder" valign="top" width="77.16%" headers="mcps1.3.2.2.3.1.2 "><p id="functiongraph_01_0130__p123513246211">DDS triggers trigger FunctionGraph functions upon a table change in the database. </p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="functiongraph_01_0130__row14374303296"><td class="cellrowborder" valign="top" width="22.84%" headers="mcps1.3.2.2.3.1.1 "><p id="functiongraph_01_0130__p18371830182914">AOM</p>
|
||||
</td>
|
||||
<td class="cellrowborder" valign="top" width="77.16%" headers="mcps1.3.2.2.3.1.2 "><p id="functiongraph_01_0130__p1938153032916">Monitor function information in graphics. </p>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
@ -6,9 +6,6 @@
|
||||
<ul id="functiongraph_01_0140_0__ul93271019112418"><li id="functiongraph_01_0140_0__li43275193248"><strong id="functiongraph_01_0140_0__b195991207276">Real-time file processing</strong><p id="functiongraph_01_0140_0__p668810281231">When files are uploaded from a client to OBS, functions can be triggered to create image thumbnails in real time, convert video formats, aggregate and filter data files, or implement other file operations.</p>
|
||||
<p id="functiongraph_01_0140_0__p174471209173">Advantages:</p>
|
||||
<ul id="functiongraph_01_0140_0__ul12812122810418"><li id="functiongraph_01_0140_0__li202602817205">FunctionGraph automatically allocates resources to run more function instances as the number of received requests increases.</li><li id="functiongraph_01_0140_0__li1950031973410">Files are uploaded to OBS to trigger file processing functions.</li><li id="functiongraph_01_0140_0__li281262819412">You will be billed only for resources used to process files as needed (you are not billed for idle resources during lows in demand).</li></ul>
|
||||
</li><li id="functiongraph_01_0140_0__li19722427182912"><strong id="functiongraph_01_0140_0__b7599205914287">Real-time data stream processing</strong><p id="functiongraph_01_0140_0__p772517711301">FunctionGraph works with DIS to process data streams in real time. FunctionGraph supports application activity tracking, sequential transaction processing, data stream analysis, data sorting, metric generation, log filtering, indexing, social media analysis, and IoT device data telemetry and metering.</p>
|
||||
<p id="functiongraph_01_0140_0__p3316112012353">Advantages:</p>
|
||||
<ul id="functiongraph_01_0140_0__ul10711930143519"><li id="functiongraph_01_0140_0__li671113033519">Data is collected by means of DIS streams to trigger data processing functions.</li><li id="functiongraph_01_0140_0__li17151114103618">FunctionGraph automatically allocates resources to run more function instances as the number of received requests increases.</li><li id="functiongraph_01_0140_0__li89791744143611">You will be billed only for resources used to process files as needed (you are not billed for idle resources during lows in demand).</li></ul>
|
||||
</li></ul>
|
||||
</div>
|
||||
<div class="section" id="functiongraph_01_0140_0__section331214159234"><h4 class="sectiontitle">Scenario 2: Web Applications</h4><p id="functiongraph_01_0140_0__p15202135621820">Interconnect FunctionGraph with other cloud services or your VMs to quickly build highly available and scalable web & mobile backends. Web applications include mini programs, web pages/apps, chatbots, and Backends for Frontends (BFF).</p>
|
||||
|
||||
@ -36,7 +36,7 @@
|
||||
</tr>
|
||||
<tr id="functiongraph_01_0150__row3392177163"><td class="cellrowborder" valign="top" width="48.393574297188756%" headers="mcps1.3.1.2.2.3.1.1 "><p id="functiongraph_01_0150__p194511011616">Maximum size of deployment packages allowed for an account</p>
|
||||
</td>
|
||||
<td class="cellrowborder" valign="top" width="51.60642570281125%" headers="mcps1.3.1.2.2.3.1.2 "><p id="functiongraph_01_0150__p1594561011162">10GB</p>
|
||||
<td class="cellrowborder" valign="top" width="51.60642570281125%" headers="mcps1.3.1.2.2.3.1.2 "><p id="functiongraph_01_0150__p1594561011162">10 GB</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="functiongraph_01_0150__row14265169131610"><td class="cellrowborder" valign="top" width="48.393574297188756%" headers="mcps1.3.1.2.2.3.1.1 "><p id="functiongraph_01_0150__p39454108164">Number of concurrent executions per account</p>
|
||||
@ -142,7 +142,7 @@
|
||||
<tr id="functiongraph_01_0150__row197461736204216"><td class="cellrowborder" valign="top" width="56.83784538096567%" headers="mcps1.3.3.2.2.3.1.1 "><p id="functiongraph_01_0150__p7086370194856">Maximum execution duration per request</p>
|
||||
</td>
|
||||
<td class="cellrowborder" valign="top" width="43.16215461903433%" headers="mcps1.3.3.2.2.3.1.2 "><p id="functiongraph_01_0150__p61611291168">259,200s</p>
|
||||
<p id="functiongraph_01_0150__p17748236184216">If the execution takes longer than 90s, use asynchronous invocation.</p>
|
||||
<p id="functiongraph_01_0150__p17748236184216">If the execution takes longer than 90 seconds, use asynchronous invocation.</p>
|
||||
<p id="functiongraph_01_0150__p035935513272">For longer execution duration, .</p>
|
||||
</td>
|
||||
</tr>
|
||||
@ -153,7 +153,7 @@
|
||||
</tr>
|
||||
<tr id="functiongraph_01_0150__row53209872163437"><td class="cellrowborder" valign="top" width="56.83784538096567%" headers="mcps1.3.3.2.2.3.1.1 "><p id="functiongraph_01_0150__p55395407194856">Valid payload size of invocation response body (synchronous invocation)</p>
|
||||
</td>
|
||||
<td class="cellrowborder" valign="top" width="43.16215461903433%" headers="mcps1.3.3.2.2.3.1.2 "><p id="functiongraph_01_0150__p1654215531965">6MB</p>
|
||||
<td class="cellrowborder" valign="top" width="43.16215461903433%" headers="mcps1.3.3.2.2.3.1.2 "><p id="functiongraph_01_0150__p1654215531965">6 MB</p>
|
||||
<p id="functiongraph_01_0150__p57843006194856">By default, the size of the returned string or the JSON string serialized from the response body is less than or equal to 6 MB. The actual data size varies depending on the backend settings of FunctionGraph. The backend determines the size of the serialized data with a byte-level deviation. The actual valid payload size is 6 MB ± 100 bytes.</p>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@ -1,16 +1,16 @@
|
||||
<a name="functiongraph_01_0150_0"></a><a name="functiongraph_01_0150_0"></a>
|
||||
|
||||
<h1 class="topictitle1">Building Functions</h1>
|
||||
<h1 class="topictitle1">Creating a Function</h1>
|
||||
<div id="body8662426"></div>
|
||||
<div>
|
||||
<ul class="ullinks">
|
||||
<li class="ulchildlink"><strong><a href="functiongraph_01_0152.html">Creating a Deployment Package</a></strong><br>
|
||||
<li class="ulchildlink"><strong><a href="functiongraph_01_0152.html">Configuring Code</a></strong><br>
|
||||
</li>
|
||||
<li class="ulchildlink"><strong><a href="functiongraph_01_0153.html">Creating a Function from Scratch</a></strong><br>
|
||||
</li>
|
||||
<li class="ulchildlink"><strong><a href="functiongraph_01_0401.html">Creating a Function Using a Template</a></strong><br>
|
||||
</li>
|
||||
<li class="ulchildlink"><strong><a href="functiongraph_01_1047.html">Deploying a Function Using a Container Image</a></strong><br>
|
||||
<li class="ulchildlink"><strong><a href="functiongraph_01_1047.html">Creating a Function with an Image</a></strong><br>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
56
docs/fg/umn/functiongraph_01_0151_0.html
Normal file
@ -0,0 +1,56 @@
|
||||
<a name="functiongraph_01_0151_0"></a><a name="functiongraph_01_0151_0"></a>
|
||||
|
||||
<h1 class="topictitle1">Supported Runtimes</h1>
|
||||
<div id="body8662426"><p id="functiongraph_01_0151_0__en-us_topic_0000002239375889_p6528615594">FunctionGraph supports multiple runtimes, including Python, Node.js, Java, Go, C#, PHP, Cangjie, and custom. The supported versions vary depending on the language.</p>
|
||||
|
||||
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="functiongraph_01_0151_0__en-us_topic_0000002239375889_table15911195819811" frame="border" border="1" rules="all"><caption><b>Table 1 </b></caption><thead align="left"><tr id="functiongraph_01_0151_0__en-us_topic_0000002239375889_row149113580819"><th align="left" class="cellrowborder" valign="top" width="20.518974051297434%" id="mcps1.3.2.2.3.1.1"><p id="functiongraph_01_0151_0__en-us_topic_0000002239375889_p129111958784">Runtime</p>
|
||||
</th>
|
||||
<th align="left" class="cellrowborder" valign="top" width="79.48102594870257%" id="mcps1.3.2.2.3.1.2"><p id="functiongraph_01_0151_0__en-us_topic_0000002239375889_p891110580817">Supported Version</p>
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody><tr id="functiongraph_01_0151_0__en-us_topic_0000002239375889_row1391114589818"><td class="cellrowborder" valign="top" width="20.518974051297434%" headers="mcps1.3.2.2.3.1.1 "><p id="functiongraph_01_0151_0__en-us_topic_0000002239375889_p119111158487">Node.js</p>
|
||||
</td>
|
||||
<td class="cellrowborder" valign="top" width="79.48102594870257%" headers="mcps1.3.2.2.3.1.2 "><p id="functiongraph_01_0151_0__en-us_topic_0000002239375889_p19111587818">6.10, 8.10, 10.16, 12.13, 14.18, 16.17, 18.15, 20.15</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="functiongraph_01_0151_0__en-us_topic_0000002239375889_row15911175820819"><td class="cellrowborder" valign="top" width="20.518974051297434%" headers="mcps1.3.2.2.3.1.1 "><p id="functiongraph_01_0151_0__en-us_topic_0000002239375889_p19117587814">Python</p>
|
||||
</td>
|
||||
<td class="cellrowborder" valign="top" width="79.48102594870257%" headers="mcps1.3.2.2.3.1.2 "><p id="functiongraph_01_0151_0__en-us_topic_0000002239375889_p1091119581387">2.7, 3.6, 3.9, 3.10, 3.12</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="functiongraph_01_0151_0__en-us_topic_0000002239375889_row169111582818"><td class="cellrowborder" valign="top" width="20.518974051297434%" headers="mcps1.3.2.2.3.1.1 "><p id="functiongraph_01_0151_0__en-us_topic_0000002239375889_p89114582085">Java</p>
|
||||
</td>
|
||||
<td class="cellrowborder" valign="top" width="79.48102594870257%" headers="mcps1.3.2.2.3.1.2 "><p id="functiongraph_01_0151_0__en-us_topic_0000002239375889_p199112581288">8, 11, 17</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="functiongraph_01_0151_0__en-us_topic_0000002239375889_row49114581388"><td class="cellrowborder" valign="top" width="20.518974051297434%" headers="mcps1.3.2.2.3.1.1 "><p id="functiongraph_01_0151_0__en-us_topic_0000002239375889_p2911175810817">Go</p>
|
||||
</td>
|
||||
<td class="cellrowborder" valign="top" width="79.48102594870257%" headers="mcps1.3.2.2.3.1.2 "><p id="functiongraph_01_0151_0__en-us_topic_0000002239375889_p4911135814812">1.x</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="functiongraph_01_0151_0__en-us_topic_0000002239375889_row2091117584819"><td class="cellrowborder" valign="top" width="20.518974051297434%" headers="mcps1.3.2.2.3.1.1 "><p id="functiongraph_01_0151_0__en-us_topic_0000002239375889_p1491117584817">C#</p>
|
||||
</td>
|
||||
<td class="cellrowborder" valign="top" width="79.48102594870257%" headers="mcps1.3.2.2.3.1.2 "><p id="functiongraph_01_0151_0__en-us_topic_0000002239375889_p1791111585818">.NET Core 2.1, .NET Core 3.1, .NET Core 6.0</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="functiongraph_01_0151_0__en-us_topic_0000002239375889_row1491165815819"><td class="cellrowborder" valign="top" width="20.518974051297434%" headers="mcps1.3.2.2.3.1.1 "><p id="functiongraph_01_0151_0__en-us_topic_0000002239375889_p2911105813816">PHP</p>
|
||||
</td>
|
||||
<td class="cellrowborder" valign="top" width="79.48102594870257%" headers="mcps1.3.2.2.3.1.2 "><p id="functiongraph_01_0151_0__en-us_topic_0000002239375889_p891125815818">7.3 and 8.3</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="functiongraph_01_0151_0__en-us_topic_0000002239375889_row13911185819818"><td class="cellrowborder" valign="top" width="20.518974051297434%" headers="mcps1.3.2.2.3.1.1 "><p id="functiongraph_01_0151_0__en-us_topic_0000002239375889_p8911358180">Custom</p>
|
||||
</td>
|
||||
<td class="cellrowborder" valign="top" width="79.48102594870257%" headers="mcps1.3.2.2.3.1.2 "><p id="functiongraph_01_0151_0__en-us_topic_0000002239375889_p9911105813811">-</p>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<div class="familylinks">
|
||||
<div class="parentlink"><strong>Parent topic:</strong> <a href="functiongraph_01_0100.html">Before You Start</a></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
<a name="functiongraph_01_0152"></a><a name="functiongraph_01_0152"></a>
|
||||
|
||||
<h1 class="topictitle1">Creating a Deployment Package</h1>
|
||||
<h1 class="topictitle1">Configuring Code</h1>
|
||||
<div id="body8662426"><p id="functiongraph_01_0152__en-us_topic_0000001251588476_p14741017183748">To create a function, you must create a deployment package which includes your code and all dependencies. You can create a deployment package locally or edit code on the FunctionGraph console. If you edit code inline, FunctionGraph automatically creates and uploads a deployment package for your function. FunctionGraph allows you to edit function code in the same way as managing a project. You can create and edit files and folders. After you upload a ZIP code package, you can view and edit the code on the console.</p>
|
||||
<div class="note" id="functiongraph_01_0152__en-us_topic_0000001251588476_note13719413231"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="functiongraph_01_0152__en-us_topic_0000001251588476_ul115391124103414"><li id="functiongraph_01_0152__en-us_topic_0000001251588476_li653914249342">After programming, simply package your code into a ZIP file (Java, Node.js, Python, and Go) or JAR file (Java), and upload the file to FunctionGraph for execution.</li><li id="functiongraph_01_0152__en-us_topic_0000001251588476_li6689526163415">When creating a ZIP file, place the handler file under the <strong id="functiongraph_01_0152__en-us_topic_0000001251588476_b1191210237197">root</strong> directory to ensure that your code can run normally after being decompressed.</li><li id="functiongraph_01_0152__en-us_topic_0000001251588476_li379110287345">If you edit code in Go, zip the compiled file, and ensure that the name of the dynamic library file is consistent with the plug-in name of the handler. For example, if the name of the dynamic library file is <strong id="functiongraph_01_0152__en-us_topic_0000001251588476_b1254065716105710">testplugin.so</strong>, set the handler name to <strong id="functiongraph_01_0152__en-us_topic_0000001251588476_b1488974272105710">testplugin.Handler</strong>.</li><li id="functiongraph_01_0152__en-us_topic_0000001251588476_li12103805165430">Java is a compiled language, which does not support editing code inline. If your function does not use any third-party dependencies, you can upload a function JAR file. If your function uses third-party dependencies, compress the dependencies and the function JAR file into a ZIP file, and then upload the ZIP file.</li></ul>
|
||||
</div></div>
|
||||
@ -174,7 +174,7 @@
|
||||
<p id="functiongraph_01_0152__en-us_topic_0000001251588476_en-us_topic_0000001251588476_p56798904191115_2">For details about function resource restrictions, see <a href="functiongraph_01_0150.html">Notes and Constraints</a>.</p>
|
||||
</li></ul>
|
||||
</div>
|
||||
<div class="section" id="functiongraph_01_0152__en-us_topic_0000001251588476_section5575103419499"><a name="functiongraph_01_0152__en-us_topic_0000001251588476_section5575103419499"></a><a name="en-us_topic_0000001251588476_section5575103419499"></a><h4 class="sectiontitle">C#</h4><p id="functiongraph_01_0152__en-us_topic_0000001251588476_p192521429125214"><strong id="functiongraph_01_0152__en-us_topic_0000001251588476_b1364781439">Uploading a Deployment Package</strong></p>
|
||||
<div class="section" id="functiongraph_01_0152__en-us_topic_0000001251588476_section5575103419499"><a name="functiongraph_01_0152__en-us_topic_0000001251588476_section5575103419499"></a><a name="en-us_topic_0000001251588476_section5575103419499"></a><h4 class="sectiontitle">C#</h4><p id="functiongraph_01_0152__en-us_topic_0000001251588476_p192521429125214"><strong id="functiongraph_01_0152__en-us_topic_0000001251588476_b1708214364">Uploading a Deployment Package</strong></p>
|
||||
<p id="functiongraph_01_0152__en-us_topic_0000001251588476_p1325218295522">You can only upload a C# deployment package in ZIP format. There are two ways to upload it.</p>
|
||||
<div class="notice" id="functiongraph_01_0152__en-us_topic_0000001251588476_note1225412918520"><span class="noticetitle"><img src="public_sys-resources/notice_3.0-en-us.png"> </span><div class="noticebody"><ul id="functiongraph_01_0152__en-us_topic_0000001251588476_ul153471839192410"><li id="functiongraph_01_0152__en-us_topic_0000001251588476_li1347123992416">When creating a ZIP file, place the handler file under the <strong id="functiongraph_01_0152__en-us_topic_0000001251588476_b172319254111">root</strong> directory to ensure that your code can run normally after being decompressed.</li><li id="functiongraph_01_0152__en-us_topic_0000001251588476_li734783992412">The size of the decompressed source code cannot exceed 1.5 GB. If the code is too large, contact the customer service.</li></ul>
|
||||
</div></div>
|
||||
@ -184,9 +184,9 @@
|
||||
<p id="functiongraph_01_0152__en-us_topic_0000001251588476_en-us_topic_0000001251588476_p56798904191115_3">For details about function resource restrictions, see <a href="functiongraph_01_0150.html">Notes and Constraints</a>.</p>
|
||||
</li></ul>
|
||||
</div>
|
||||
<div class="section" id="functiongraph_01_0152__en-us_topic_0000001251588476_section1016816117271"><a name="functiongraph_01_0152__en-us_topic_0000001251588476_section1016816117271"></a><a name="en-us_topic_0000001251588476_section1016816117271"></a><h4 class="sectiontitle">PHP</h4><p id="functiongraph_01_0152__en-us_topic_0000001251588476_p12711753162713"><strong id="functiongraph_01_0152__en-us_topic_0000001251588476_b15870829">Editing Code Inline</strong></p>
|
||||
<div class="section" id="functiongraph_01_0152__en-us_topic_0000001251588476_section1016816117271"><a name="functiongraph_01_0152__en-us_topic_0000001251588476_section1016816117271"></a><a name="en-us_topic_0000001251588476_section1016816117271"></a><h4 class="sectiontitle">PHP</h4><p id="functiongraph_01_0152__en-us_topic_0000001251588476_p12711753162713"><strong id="functiongraph_01_0152__en-us_topic_0000001251588476_b260301094">Editing Code Inline</strong></p>
|
||||
<p id="functiongraph_01_0152__en-us_topic_0000001251588476_p137185362711">FunctionGraph provides an SDK for editing code in PHP. If your custom code uses only the SDK library, you can edit code using the inline editor on the FunctionGraph console. After you edit code inline and upload it to FunctionGraph, the console compresses your code and the related configurations into a deployment package that FunctionGraph can run.</p>
|
||||
<p id="functiongraph_01_0152__en-us_topic_0000001251588476_p87117536278"><strong id="functiongraph_01_0152__en-us_topic_0000001251588476_b1541469494">Uploading a Deployment Package</strong></p>
|
||||
<p id="functiongraph_01_0152__en-us_topic_0000001251588476_p87117536278"><strong id="functiongraph_01_0152__en-us_topic_0000001251588476_b2091637975">Uploading a Deployment Package</strong></p>
|
||||
<p id="functiongraph_01_0152__en-us_topic_0000001251588476_p271253172714">If your code uses other resources, such as a graphic library for image processing, first create a deployment package, and then upload the package to the FunctionGraph console. You can upload a PHP deployment package in two ways.</p>
|
||||
<div class="notice" id="functiongraph_01_0152__en-us_topic_0000001251588476_note17110531273"><span class="noticetitle"><img src="public_sys-resources/notice_3.0-en-us.png"> </span><div class="noticebody"><ul id="functiongraph_01_0152__en-us_topic_0000001251588476_ul173513392249"><li id="functiongraph_01_0152__en-us_topic_0000001251588476_li43519397245">When creating a ZIP file, place the handler file under the <strong id="functiongraph_01_0152__en-us_topic_0000001251588476_b187603211115">root</strong> directory to ensure that your code can run normally after being decompressed.</li><li id="functiongraph_01_0152__en-us_topic_0000001251588476_li16351153992415">The size of the decompressed source code cannot exceed 1.5 GB. If the code is too large, contact the customer service.</li></ul>
|
||||
</div></div>
|
||||
@ -196,9 +196,9 @@
|
||||
<p id="functiongraph_01_0152__en-us_topic_0000001251588476_en-us_topic_0000001251588476_p56798904191115_4">For details about function resource restrictions, see <a href="functiongraph_01_0150.html">Notes and Constraints</a>.</p>
|
||||
</li></ul>
|
||||
</div>
|
||||
<div class="section" id="functiongraph_01_0152__en-us_topic_0000001251588476_section166121748658"><a name="functiongraph_01_0152__en-us_topic_0000001251588476_section166121748658"></a><a name="en-us_topic_0000001251588476_section166121748658"></a><h4 class="sectiontitle">Custom Runtime</h4><p id="functiongraph_01_0152__en-us_topic_0000001251588476_p19193141666"><strong id="functiongraph_01_0152__en-us_topic_0000001251588476_b1427087398">Editing Code Inline</strong></p>
|
||||
<div class="section" id="functiongraph_01_0152__en-us_topic_0000001251588476_section166121748658"><a name="functiongraph_01_0152__en-us_topic_0000001251588476_section166121748658"></a><a name="en-us_topic_0000001251588476_section166121748658"></a><h4 class="sectiontitle">Custom Runtime</h4><p id="functiongraph_01_0152__en-us_topic_0000001251588476_p19193141666"><strong id="functiongraph_01_0152__en-us_topic_0000001251588476_b337532620">Editing Code Inline</strong></p>
|
||||
<p id="functiongraph_01_0152__en-us_topic_0000001251588476_p1691910148617">After you edit code inline and upload it to FunctionGraph, the console compresses your code and the related configurations into a deployment package that FunctionGraph can run.</p>
|
||||
<p id="functiongraph_01_0152__en-us_topic_0000001251588476_p691915144611"><strong id="functiongraph_01_0152__en-us_topic_0000001251588476_b201623840">Uploading a Deployment Package</strong></p>
|
||||
<p id="functiongraph_01_0152__en-us_topic_0000001251588476_p691915144611"><strong id="functiongraph_01_0152__en-us_topic_0000001251588476_b9220803">Uploading a Deployment Package</strong></p>
|
||||
<p id="functiongraph_01_0152__en-us_topic_0000001251588476_p1391901416617">If your code uses other resources, such as a graphic library for image processing, first create a deployment package, and then upload the package to the FunctionGraph console. You can upload a deployment package for a custom runtime in two ways.</p>
|
||||
<div class="notice" id="functiongraph_01_0152__en-us_topic_0000001251588476_note199191141363"><span class="noticetitle"><img src="public_sys-resources/notice_3.0-en-us.png"> </span><div class="noticebody"><ul id="functiongraph_01_0152__en-us_topic_0000001251588476_ul1135783912241"><li id="functiongraph_01_0152__en-us_topic_0000001251588476_li1535763982412">When creating a ZIP file, place the handler file under the <strong id="functiongraph_01_0152__en-us_topic_0000001251588476_b36504375112">root</strong> directory to ensure that your code can run normally after being decompressed.</li><li id="functiongraph_01_0152__en-us_topic_0000001251588476_li1535863962416">The size of the decompressed source code cannot exceed 1.5 GB. If the code is too large, contact the customer service.</li></ul>
|
||||
</div></div>
|
||||
@ -211,7 +211,7 @@
|
||||
</div>
|
||||
<div>
|
||||
<div class="familylinks">
|
||||
<div class="parentlink"><strong>Parent topic:</strong> <a href="functiongraph_01_0150_0.html">Building Functions</a></div>
|
||||
<div class="parentlink"><strong>Parent topic:</strong> <a href="functiongraph_01_0150_0.html">Creating a Function</a></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@ -11,7 +11,7 @@
|
||||
</ul>
|
||||
|
||||
<div class="familylinks">
|
||||
<div class="parentlink"><strong>Parent topic:</strong> <a href="functiongraph_01_0150_0.html">Building Functions</a></div>
|
||||
<div class="parentlink"><strong>Parent topic:</strong> <a href="functiongraph_01_0150_0.html">Creating a Function</a></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@ -7,8 +7,8 @@
|
||||
</div>
|
||||
<div class="section" id="functiongraph_01_0154__en-us_topic_0000001298786821_section16790124932813"><h4 class="sectiontitle">Procedure</h4><p id="functiongraph_01_0154__en-us_topic_0000001298786821_p5875530610031">You can configure encryption settings and environment variables to dynamically pass settings to your function code and libraries without changing your code.</p>
|
||||
<div class="fignone" id="functiongraph_01_0154__en-us_topic_0000001298786821_fig156853181219"><span class="figcap"><b>Figure 1 </b>Adding environment variables</span><br><span><img id="functiongraph_01_0154__en-us_topic_0000001298786821_image1356920313120" src="en-us_image_0000001630698024.png" title="Click to enlarge" class="imgResize"></span></div>
|
||||
<p id="functiongraph_01_0154__en-us_topic_0000001298786821_p18540328253">For example, for Node.js, encryption settings and environment variable values can be obtained from <strong id="functiongraph_01_0154__en-us_topic_0000001298786821_b518418448434">getUserData(string key)</strong> in <strong id="functiongraph_01_0154__en-us_topic_0000001298786821_b4184944134320">Context</strong>.</p>
|
||||
<div class="warning" id="functiongraph_01_0154__en-us_topic_0000001298786821_note5818882919585"><span class="warningtitle"><img src="public_sys-resources/warning_3.0-en-us.png"> </span><div class="warningbody"><ul id="functiongraph_01_0154__en-us_topic_0000001298786821_ul10528125304517"><li id="functiongraph_01_0154__en-us_topic_0000001298786821_li15528753134518">Environment variables and encryption settings are user-defined key-value pairs that store function settings. Keys can contain letters, digits, and underscores (_), and must start with a letter.</li><li id="functiongraph_01_0154__en-us_topic_0000001298786821_li14694107174618">The total length of the key and value cannot exceed 4096 characters. </li><li id="functiongraph_01_0154__en-us_topic_0000001298786821_li1094185816142">When you define environment variables, FunctionGraph displays all your input information in plain text. For security purposes, do not include sensitive information.</li><li id="functiongraph_01_0154__en-us_topic_0000001298786821_li147371839203014">After encryption is enabled, key-value pairs are encrypted on the console and will remain encrypted during transmission.</li></ul>
|
||||
<p id="functiongraph_01_0154__en-us_topic_0000001298786821_p18540328253">For example, for Node.js, encryption settings and environment variable values can be obtained from <strong id="functiongraph_01_0154__en-us_topic_0000001298786821_b11103195884316">getUserData(string key)</strong> in <strong id="functiongraph_01_0154__en-us_topic_0000001298786821_b8103105844316">Context</strong>.</p>
|
||||
<div class="warning" id="functiongraph_01_0154__en-us_topic_0000001298786821_note5818882919585"><span class="warningtitle"><img src="public_sys-resources/warning_3.0-en-us.png"> </span><div class="warningbody"><ul id="functiongraph_01_0154__en-us_topic_0000001298786821_ul10528125304517"><li id="functiongraph_01_0154__en-us_topic_0000001298786821_li15528753134518">Environment variables and encryption settings are user-defined key-value pairs that store function settings. Keys can contain letters, digits, and underscores (_), and must start with a letter.</li><li id="functiongraph_01_0154__en-us_topic_0000001298786821_li14694107174618">The total length of the key and value cannot exceed 4096 characters.</li><li id="functiongraph_01_0154__en-us_topic_0000001298786821_li1094185816142">When you define environment variables, FunctionGraph displays all your input information in plain text. For security purposes, do not include sensitive information.</li><li id="functiongraph_01_0154__en-us_topic_0000001298786821_li147371839203014">After encryption is enabled, key-value pairs are encrypted on the console and will remain encrypted during transmission.</li></ul>
|
||||
</div></div>
|
||||
</div>
|
||||
<div class="section" id="functiongraph_01_0154__en-us_topic_0000001298786821_section123101219144410"><h4 class="sectiontitle">Preset Parameters</h4><p id="functiongraph_01_0154__en-us_topic_0000001298786821_p821517222448">The following lists preset parameters. Do not configure environment variables with the same names as any of these parameters.</p>
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
<p id="functiongraph_01_0160_0__p191921610151118">With IAM, you can use your account to create IAM users for your employees, and assign permissions to the users to control their access to specific resource types. For example, some software developers in your enterprise need to use FunctionGraph resources but must not delete them or perform any high-risk operations. To achieve this result, you can create IAM users for the software developers and grant them only the permissions required for using FunctionGraph resources.</p>
|
||||
<p id="functiongraph_01_0160_0__p31921710201120">If your account does not need individual IAM users for permissions management, you may skip over this chapter.</p>
|
||||
<div class="section" id="functiongraph_01_0160_0__section4115125973311"><h4 class="sectiontitle">Notes and Constraints</h4><p id="functiongraph_01_0160_0__p136278291122">If an IAM user granted the <strong id="functiongraph_01_0160_0__b1045618195351">FunctionGraph FullAccess</strong> permission has no permission to create a certain type of trigger or use a certain function, the relevant service or function does not support fine-grained authentication. In this case, grant the admin permission for this service or function to the user. These services and functions include:</p>
|
||||
<ul id="functiongraph_01_0160_0__ul637418512197"><li id="functiongraph_01_0160_0__li153749515197">CTS, DIS, and APIG: These do not support fine-grained authentication. Add the admin permission for them.</li><li id="functiongraph_01_0160_0__li48269266501">SMN: This supports fine-grained authentication in some regions. If needed, add the admin permission for this service.</li></ul>
|
||||
<ul id="functiongraph_01_0160_0__ul637418512197"><li id="functiongraph_01_0160_0__li153749515197">CTS and APIG: These do not support fine-grained authentication. Add the admin permission for them.</li><li id="functiongraph_01_0160_0__li48269266501">SMN: This supports fine-grained authentication in some regions. If needed, add the admin permission for this service.</li></ul>
|
||||
<p id="functiongraph_01_0160_0__p107422391204">For more information about the permissions required to use these triggers and relevant functions, see <a href="#functiongraph_01_0160_0__table10526732619">Table 2</a>.</p>
|
||||
</div>
|
||||
<div class="section" id="functiongraph_01_0160_0__section1364491812130"><h4 class="sectiontitle">FunctionGraph Permissions</h4><p id="functiongraph_01_0160_0__p6748245131314">By default, new IAM users do not have any permissions assigned. You need to add a user to one or more groups, and assign permissions policies to these groups. The user then inherits permissions from the groups it is a member of. This process is called authorization. After authorization, the user can perform specified operations on FunctionGraph based on the permissions.</p>
|
||||
@ -86,11 +86,6 @@
|
||||
<p id="functiongraph_01_0160_0__p84544420312">dds:instance:list</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="functiongraph_01_0160_0__row2536742618"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.8.2.3.1.1 "><p id="functiongraph_01_0160_0__p1053197162610">DIS</p>
|
||||
</td>
|
||||
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.8.2.3.1.2 "><p id="functiongraph_01_0160_0__p05397152618">dis:streams:list</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="functiongraph_01_0160_0__row1999183312810"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.8.2.3.1.1 "><p id="functiongraph_01_0160_0__p159921233162812">LTS</p>
|
||||
</td>
|
||||
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.8.2.3.1.2 "><p id="functiongraph_01_0160_0__p14604252103313">lts:groups:create</p>
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
<a name="functiongraph_01_0180"></a><a name="functiongraph_01_0180"></a>
|
||||
|
||||
<h1 class="topictitle1">Managing Versions</h1>
|
||||
<h1 class="topictitle1">Configuring Versions</h1>
|
||||
<div id="body8662426"><div class="section" id="functiongraph_01_0180__en-us_topic_0000001298667453_section5302192414611"><h4 class="sectiontitle">Overview</h4><p id="functiongraph_01_0180__en-us_topic_0000001298667453_p1766352885411">FunctionGraph allows you to publish one or more versions throughout the development, test, and production processes to manage your function code. The code and environment variables of each version are saved as a snapshot. After the function code is published, you can modify settings as required.</p>
|
||||
<p id="functiongraph_01_0180__en-us_topic_0000001298667453_p127258251167">After a function is created, the default version is latest. Each function has the latest version. After the function code is published, you can modify the version configuration as required.</p>
|
||||
<div class="note" id="functiongraph_01_0180__en-us_topic_0000001298667453_note1094934117458"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="functiongraph_01_0180__en-us_topic_0000001298667453_p9621134544511">A version is a snapshot of a function and corresponds to a tag in code. Each version contains the configuration and code of the function. By default, no trigger is bound to a new version. After a version is published, the configuration (such as environment variables) and code of the version cannot be updated, to ensure stability and traceability.</p>
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
<a name="functiongraph_01_0200"></a><a name="functiongraph_01_0200"></a>
|
||||
|
||||
<h1 class="topictitle1">Creating Triggers</h1>
|
||||
<h1 class="topictitle1">Configuring Triggers</h1>
|
||||
<div id="body8662426"></div>
|
||||
<div>
|
||||
<ul class="ullinks">
|
||||
@ -14,8 +14,6 @@
|
||||
</li>
|
||||
<li class="ulchildlink"><strong><a href="functiongraph_01_0214.html">Using a Kafka Trigger</a></strong><br>
|
||||
</li>
|
||||
<li class="ulchildlink"><strong><a href="functiongraph_01_0206.html">Using a DIS Trigger</a></strong><br>
|
||||
</li>
|
||||
<li class="ulchildlink"><strong><a href="functiongraph_01_0202.html">Using an SMN Trigger</a></strong><br>
|
||||
</li>
|
||||
<li class="ulchildlink"><strong><a href="functiongraph_01_0208.html">Using an LTS Trigger</a></strong><br>
|
||||
|
||||