Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion doc/source/devguide/bestpractices/performance.rst
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ Once a reserved instance is created, it will automatically load the function's c
and the initialization entry function, and persist in the environment. Therefore, configuring a
reserved instance for a function can avoid latency issues caused by cold starts.
For configuration instructions on reserved instances for functions, please refer to
Reserved Instance Management.
:docs_otc:`Reserved Instance Management <function-graph/umn/configuring_reserved_instances.html>`.

Use function initialization entry point
---------------------------------------------------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ To obtain the Security Access Key (AK), Security Secret Key (SK),
and Security Token of an HTTP function as shown in Table 1,
perform the following steps:

1. Log in to the :fg_console:`FunctionGraph console <>` console and go
1. Log in to the :fg_console:`FunctionGraph console <>` and go
to the details page of the HTTP function to be configured

2. Choose **Configuration** > **Permissions** and specify
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,5 @@ The following uses **PHP 8.3** as an example to describe how to create a **fg_ev

make create_package

6. Deploy the dependency package to FunctionGraph as described in :otc_fg_umn:`Configuring Dependency Packages <configuring_dependencies/configuring_dependency_packages.html>`
6. Deploy the dependency package to FunctionGraph as described in :otc_fg_umn:`Configuring Dependency Packages <configuring_dependencies/configuring_dependency_packages.html>`.

6 changes: 3 additions & 3 deletions doc/source/devguide/deployment/terraform/setuptf.rst
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,15 @@ Set following environment variables:

* - TF_VAR_OTC_SDK_DOMAIN_NAME
- Domain Name
- see: :api_usage:`Obtaining the Domain Name and Domain ID<guidelines/calling_apis/obtaining_required_information.html>` in API usage guide.
- see: :api_usage:`Obtaining the Domain Name and Domain ID<guidelines/calling_apis/obtaining_required_information.html#obtaining-the-domain-name-and-domain-id>` in API usage guide.

* - TF_VAR_OTC_SDK_PROJECTID
- Project Id
- see: :api_usage:`Obtaining a Project ID<guidelines/calling_apis/obtaining_required_information.html>` in API usage guide.
- see: :api_usage:`Obtaining a Project ID<guidelines/calling_apis/obtaining_required_information.html#obtaining-a-project-id>` in API usage guide.

* - TF_VAR_OTC_SDK_PROJECTNAME
- Project name
- see: :api_usage:`Obtaining a Project ID<guidelines/calling_apis/obtaining_required_information.html>` in API usage guide.
- see: :api_usage:`Obtaining a Project ID<guidelines/calling_apis/obtaining_required_information.html#obtaining-a-project-id>` in API usage guide.

* - TF_VAR_OTC_IAM_ENDPOINT
- IAM endpoint URL
Expand Down
2 changes: 1 addition & 1 deletion doc/source/devguide/dev_environment/_index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Install PHP
To build and run the PHP runtime for FunctionGraph, you need to install PHP.
The PHP version depends on the version of the PHP runtime you are using when deploying your functions.

You can download PHP from the official website: `https://www.php.net/downloads.php`
You can download PHP from `the official website <https://www.php.net/downloads.php>`_.

Install an IDE
---------------------------------
Expand Down
4 changes: 2 additions & 2 deletions doc/source/devguide/event_function/scratch/_index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ You can access the value of **order_id** by using the following code:

$order_id = $event["order_id"]; // Using bracket notation
// or
$order_id = $event->order_id; // Using dot notation
$order_id = $event->order_id; // Using object notation

For example:

Expand All @@ -111,7 +111,7 @@ For example:
function handler($event, $context) {
$order_id = $event["order_id"]; // Using bracket notation
// or
$order_id = $event->order_id; // Using dot notation
$order_id = $event->order_id; // Using object notation

$amount = $event["amount"];
$item = $event["item"];
Expand Down
2 changes: 1 addition & 1 deletion doc/source/devguide/event_function/scratch/context.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Context interface
* - getRequestID()
- Obtains a request ID.

* - getRemainingTimeInMilliSeconds ()
* - getRemainingTimeInMilliSeconds()
- Obtains the remaining time in milliseconds.

* - getAccessKey()
Expand Down
4 changes: 2 additions & 2 deletions doc/source/devguide/event_function/scratch/project.rst
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ Create FunctionGraph function in console
7. Modify the initializer (if needed):

1. Click **Configuration** > **Lifecycle**.
2. enable **Initialization**
2. Enable **Initialization**
3. In the **Function Initializer** field, enter the
initializer **src/index.initializer**.
4. Click **Save**.
Expand All @@ -143,7 +143,7 @@ Testing the function

2. Click **Create** to save the test event.
3. Click **Test** to test the function.
4. the Execution Result window is displayed on the right.
4. The Execution Result window is displayed on the right.
You can check whether the function is executed successfully.

.. image:: ./scratch_event_function_test.png
Expand Down
6 changes: 3 additions & 3 deletions doc/source/devguide/event_function/trigger_events/_index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ invoked whenever the corresponding event is detected.

For instructions on triggering and using the distributed messaging Kafka, please refer to:

- Use :ref:`Kafka triggers <devguide_event_function_trigger_events_dms4kafka>`.
- Using :ref:`Kafka triggers <devguide_event_function_trigger_events_dms4kafka>`.
- Using :ref:`open-source Kafka triggers <devguide_event_function_trigger_events_kafkaopensource>`

* - Log Tank Service (LTS)
Expand Down Expand Up @@ -129,7 +129,7 @@ For example, to use the Timer Event trigger, you can use following composer.json
"Makefile",
"resources/**",
"vendor/opentelekomcloud-community",
"!vendor/opentelekomcloud-community/fg_events/fg-events/fg-timer-event/src"
"!vendor/opentelekomcloud-community/otc-functiongraph-php-runtime/fg-events/fg-timer-event/src"
]
},
"config": {
Expand All @@ -145,7 +145,7 @@ Then, you can import the Timer Event class in your code:
<?php
require_once __DIR__ . '/../vendor/autoload.php';

use fg_events\fg_timer_event\TimerEvent;
use OTC\fg_timer_event\TimerEvent;



Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Parameter description
- Description
* - time
- Int
- (Epoch timestamp in milliseconds)
- Epoch timestamp in milliseconds
* - user
- Map
- Information about the user who initiated this request
Expand Down
8 changes: 4 additions & 4 deletions doc/source/devguide/http_function/container/creating.rst
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ Test the image either using **curl** or the Makefile target **test_local**:

.. code-block:: shell

curl -X GET localhost:8000/search?name=John
curl -X GET localhost:8000/search?name=John

.. tab:: using Makefile target "test_local"
Run the following command in a new terminal to test the image:
Expand Down Expand Up @@ -218,7 +218,7 @@ To upload the container image to SWR, following values are needed:
- Description
* - OTC_SDK_PROJECTNAME
- | Your project name.
| To obtain this, see: :api_usage:`Obtaining a Project ID<guidelines/calling_apis/obtaining_required_information.html>`
| To obtain this, see: :api_usage:`Obtaining a Project ID<guidelines/calling_apis/obtaining_required_information.html#obtaining-a-project-id>`
in API usage guide but use the **project name** instead of the project ID.
* - OTC_SDK_AK
- Your Access Key
Expand Down Expand Up @@ -427,7 +427,7 @@ For **post_json** test event the output should be:
"body": "eyJoZWxsbyI6IlQgQ2xvdWQgUHVibGljIiwiQUsiOiJubyBhZ2VuY3kvaW5jbHVkZSBrZXlzIn0=",
"headers": {
"Content-Length": [
"56"
"101"
],
"Content-Type": [
"application/json"
Expand All @@ -453,4 +453,4 @@ After decoding, you will get the string:

.. code-block:: json

{"hello":"T Cloud Public","AK":"no agency/include keys"}
{"hello":"T Cloud Public","AK":"no agency/include keys","USER_DATA_ENVVAR_1":"","SECRET_ENVVAR_1":""}
23 changes: 19 additions & 4 deletions doc/source/devguide/invoke/invoke_api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,13 @@ in FunctionGraph API reference for more details about synchronous invocation.
:caption: :github_repo_master:`samples-doc/invoke-fg/guzzle/composer.json <samples-doc/invoke-fg/guzzle/composer.json>`
:tab-width: 2

To install the dependencies, run the following command in the terminal
in folder ``samples-doc/invoke-fg/guzzle``:

.. code-block:: bash

composer install

To execute the sample code, run the following command in the terminal
in folder ``samples-doc/invoke-fg/guzzle``:

Expand All @@ -75,6 +82,13 @@ in FunctionGraph API reference for more details about synchronous invocation.
:caption: :github_repo_master:`samples-doc/invoke-fg/curl/composer.json <samples-doc/invoke-fg/curl/composer.json>`
:tab-width: 2

To install the dependencies, run the following command in the terminal
in folder ``samples-doc/invoke-fg/curl``:

.. code-block:: bash

composer install

To execute the sample code, run the following command in the terminal
in folder ``samples-doc/invoke-fg/curl``:

Expand All @@ -87,10 +101,10 @@ in FunctionGraph API reference for more details about synchronous invocation.
.. code-block:: bash
:caption: Sample output of synchronous invocation using AK/SK

Result: {"statusCode":200,"headers":{"Content-Type":"application/json"},"isBase64Encoded":false,"body":"{\"key\":\"Hello World\"}"}
Log: 2026-03-17T10:13:22Z Start invoke request '960d089c-c812-4fe7-9997-a72f773e4bcb', version: latest
Status: 200
Result: {"statusCode":200,"headers":{"Content-Type":"application/json"},"isBase64Encoded":false,"body":"{\"key\":\"Hello T-Cloud Public World - SYNC\"}"}
Log: 2026-03-17T10:13:22Z Start invoke request '960d089c-c812-4fe7-9997-a72f773e4bcb', version: latest
2026-03-17T10:13:22Z 960d089c-c812-4fe7-9997-a72f773e4bcb INFO Function name: php-sample-invoke-function
2026-03-17T10:13:22Z 960d089c-c812-4fe7-9997-a72f773e4bcb INFO Key value from event: Hello World
2026-03-17T10:13:22Z Finish invoke request '960d089c-c812-4fe7-9997-a72f773e4bcb', duration: 2.049ms, billing duration: 3ms, memory used: 36.535MB, billing memory: 128MB, cpu used: 0.300U, storage used: 0.039MB


Expand Down Expand Up @@ -148,4 +162,5 @@ In both cases, you should see an output similar to the following in the terminal
.. code-block:: bash
:caption: Sample output of asynchronous invocation using AK/SK

Response: {"request_id": "3d1a4f5a-b4e2-4429-80c8-3d82d2fe8791"}
Status: 202
Response Body: {"request_id": "3d1a4f5a-b4e2-4429-80c8-3d82d2fe8791"}
2 changes: 1 addition & 1 deletion doc/source/devguide/invoke/invoke_fg_aksk.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ This page demonstrates how to call a FunctionGraph implemented
in PHP from another FunctionGraph function using API calls and
**temporary security credentials** (SecurityAccessKey/SecurityKey/SecurityToken)
provided by an agency of `Agency Type` **Cloud Service**
for `Cloud Service` **FunctionGraph Service** with permission to invoke FunctionGraph.
for `Cloud Service` **FunctionGraph Service** with permission to invoke FunctionGraph
for authentication.

Using temporary credentials the request has to be signed using the
Expand Down
2 changes: 1 addition & 1 deletion doc/source/devguide/invoke/invoke_fg_token.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Invoke FunctionGraph Function from FunctionGraph using Token
This page demonstrates how to call a FunctionGraph implemented
in PHP from another FunctionGraph function using API calls and
**token** provided by an agency of `Agency Type` **Cloud Service**
for `Cloud Service` **FunctionGraph Service** with permission to invoke FunctionGraph.
for `Cloud Service` **FunctionGraph Service** with permission to invoke FunctionGraph
for authentication.

See: :ref:`invoke_functiongraph_function_api` for more details on
Expand Down
2 changes: 1 addition & 1 deletion samples-doc/deploy-from-obs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ This sample demonstrates how to deploy FunctionGraph with **code from OBS** usin

This approach is used, if your unpacked FunctionGraph deployment package is **greater than 40MB**.

For details see [Developer Documentation](https://opentelekomcloud-community.github.io/otc-functiongraph-php-runtime/devguide/deployment/terraform/deploy_from_zip/_index).
For details see [Developer Documentation](https://opentelekomcloud-community.github.io/otc-functiongraph-php-runtime/devguide/deployment/terraform/deploy_from_obs/_index).
2 changes: 1 addition & 1 deletion samples-doc/deploy-from-zip/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ This sample demonstrates how to deploy FunctionGraph with **code from ZIP** usin

This approach is used, if your unpacked FunctionGraph deployment package is **less than 40MB**.

For details see [Developer Documentation](https://opentelekomcloud-community.github.io/otc-functiongraph-php-runtime/devguide/deployment/terraform/deploy-from-zip/_index).
For details see [Developer Documentation](https://opentelekomcloud-community.github.io/otc-functiongraph-php-runtime/devguide/deployment/terraform/deploy_from_zip/_index).
2 changes: 1 addition & 1 deletion samples-doc/invoke-fg2fg/curl_AKSK/composer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "opentelekomcloud-community/invoke-fg2fg-curl_AKSK",
"name": "opentelekomcloud-community/invoke-fg2fg-curl_aksk",
"description": "Samples on how to invoke FunctionGraph from FunctionGraph functions using AK,SK and cURL",
"license": "Apache-2.0",
"type": "project",
Expand Down
2 changes: 1 addition & 1 deletion samples-doc/invoke-fg2fg/guzzle_AKSK/composer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "opentelekomcloud-community/invoke-fg2fg-guzzle_AKSK",
"name": "opentelekomcloud-community/invoke-fg2fg-guzzle_aksk",
"description": "Samples on how to invoke FunctionGraph from FunctionGraph functions using AK,SK and Guzzle",
"license": "Apache-2.0",
"type": "project",
Expand Down
Loading