检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
在“/tmp/csharp/release”路径下,执行如下命令,打包test.zip代码库压缩包。 zip -r test.zip ./* 测试示例 在华为云FunctionGraph控制台新建一个C#(.NET 2.1)函数,上传打包好的“test.zip”压缩包,如图1所示。 图1 上传代码包 配置一个测
great security risks. It is recommended that the AK and SK be stored in ciphertext in configuration files or environment variables and decrypted
great security risks. It is recommended that the AK and SK be stored in ciphertext in configuration files or environment variables and decrypted
great security risks. It is recommended that the AK and SK be stored in ciphertext in configuration files or environment variables and decrypted
getLogger() redis_cluster_nodes = context.getUserData( "redis_ip_address") redis_password = context.getUserData( "redis_password")
打包函数代码。 将目录中的“.next”、“public”、“package.json”和“bootstrap”打包成zip压缩包,本案例命名为“nextjs-func-code.zip”作为函数代码备用。 父主题: 使用Next.js项目构建HTTP函数
使用IoTDA触发器 本节介绍如何使用函数工作流控制台创建IoTDA触发器,实现与设备接入服务IoTDA的协同工作。 关于设备接入服务IoTDA触发器事件源的具体介绍,请参见支持的事件源。 约束与限制 IoTDA触发器当前支持“华南-广州”、“华北-乌兰察布二零一”、“华北-北京
使用SMN触发器 本节介绍如何使用函数工作流控制台创建SMN触发器,发布消息并触发函数运行。 关于消息通知服务SMN触发器事件源的具体介绍,请参见支持的事件源。 约束与限制 当前除“华北-乌兰察布一”、“亚太-雅加达”、“中东-利雅得”、“非洲-约翰内斯堡”外,其他区域均支持使用
great security risks. It is recommended that the AK and SK be stored in ciphertext in configuration files or environment variables and decrypted
great security risks. It is recommended that the AK and SK be stored in ciphertext in configuration files or environment variables and decrypted
great security risks. It is recommended that the AK and SK be stored in ciphertext in configuration files or environment variables and decrypted
用户名 必选参数。 填写RabbitMQ实例的用户名。 密码 必选参数。 填写RabbitMQ实例的密码。 虚拟机名称 必选参数。 填写RabbitMQ实例的虚拟机名称。 队列 必选参数。 填写RabbitMQ实例的队列。 单击“确定”,完成EG触发器的创建。 配置EventGrid事件触发函数
使用DDS触发器 本节介绍如何使用函数工作流控制台创建DDS触发器,实现每次更新数据库中的表时,都可以触发函数执行。 关于文档数据库服务DDS触发器事件源的具体介绍,请参见支持的事件源。 约束与限制 DDS触发器当前支持“华北-北京一”、“华北-北京四”、“华北-乌兰察布二零一”
great security risks. It is recommended that the AK and SK be stored in ciphertext in configuration files or environment variables and decrypted
"version": "1.0.0", "description": "An example of a custom container event function", "main": "main.js", "scripts": {}, "keywords": [],
great security risks. It is recommended that the AK and SK be stored in ciphertext in configuration files or environment variables and decrypted
runtime: Node.js14.18 package: default codeType: zip code: codeUri: ./code 父主题: 部署deploy
great security risks. It is recommended that the AK and SK be stored in ciphertext in configuration files or environment variables and decrypted
= context.getLogger() redis_address = context.getUserData("redis_ip_address") redis_host = redis_address.split(":")[0] redis_port
添加事件源 创建LTS触发器 选择准备中创建的日志组和日志主题,创建LTS触发器。LTS触发器配置如图1所示。 LTS日志服务的消费端在日志累积大小或日志累积时间满足条件时消费LTS日志数据,并根据订阅该组LTS日志数据的函数URN触发函数执行。 图1 创建LTS触发器 父主题: