检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
"/apig-event-template", "isBase64Encoded": true } } context context参数包含有关函数的运行时信息。例如:请求ID、临时AK、函数元数据。具体详情请参见开发事件函数。 父主题: 使用指南
15版本。C#(.NET Core 2.1): C#语言2.1版本。C#(.NET Core 3.1): C#语言3.1版本。Custom: 自定义运行时。PHP7.3: Php语言7.3版本。Cangjie1.0:仓颉语言1.0版本。http: HTTP函数。Custom Image: 自定义镜像函数。
15版本。C#(.NET Core 2.1): C#语言2.1版本。C#(.NET Core 3.1): C#语言3.1版本。Custom: 自定义运行时。PHP7.3: Php语言7.3版本。Cangjie1.0:仓颉语言1.0版本。http: HTTP函数。Custom Image: 自定义镜像函数。
pdb”和“HC.Serverless.Function.Common.dll”文件。 将工程打成ZIP包,直接上传到OBS存储桶。 定制运行时 不支持该方式 打ZIP包,必须包含“bootstrap”可执行引导文件。 将工程打成ZIP包,直接上传到OBS存储桶。 Cangjie
11、Go 1.x、C#.NET Core 2.1、C#.NET Core 3.1、Cangjie 1.0、PHP 7.3、Custom: 自定义运行时、http: HTTP函数和Custom Image: 自定义镜像函数。 timeout 函数执行超时时间,超时函数将被强行停止,范围3~900秒。
函数类型:事件函数。 区域:华北-北京四。 函数名称:输入您自定义的函数名称,此处以“upload-file-1”为例。 委托名称:未使用任何委托。 运行时:Python 3.6。 在“代码”页签,复制如下代码替换默认的函数代码,并单击“部署”更新函数。 # -*- coding: utf-8
15版本。C#(.NET Core 2.1): C#语言2.1版本。C#(.NET Core 3.1): C#语言3.1版本。Custom: 自定义运行时。PHP7.3: Php语言7.3版本。Cangjie1.0:仓颉语言1.0版本。http: HTTP函数。Custom Image: 自定义镜像函数。
15版本。C#(.NET Core 2.1): C#语言2.1版本。C#(.NET Core 3.1): C#语言3.1版本。Custom: 自定义运行时。PHP7.3: Php语言7.3版本。Cangjie1.0:仓颉语言1.0版本。http: HTTP函数。Custom Image: 自定义镜像函数。
函数类型:事件函数。 函数名称:输入您自定义的函数名称,此处以“DISDemo”为例。 委托名称:选择准备中创建的“DISDemo”。 运行时语言选择:“Java 8”。 进入函数详情页,配置如下信息。 在“设置 > 常规设置”页签,修改函数执行入口为“com.huawei.cff
函数名称:输入您自定义的函数名称,此处以“fss_examples_image_watermark”为例。 委托名称:选择创建委托中创建的“serverless_trust” 运行时语言:选择“Python3.6” 进入fss_examples_image_watermark函数详情页,在“代码”页签,单击页面最底部
获取测试事件详细信息 show_event 更新测试事件 update_event 查询租户配额 list_quotas 获取指定时间段的函数运行指标 list_function_statistics 租户函数统计信息 list_statistics 更新触发器 update_trigger
本次查询最大返回的数据条数,最大值500,默认值100 缺省值:0 最小长度:0 最大长度:64 runtime 否 String 模板执行运行时 缺省值:all category 否 String 模板类别 缺省值:all 请求参数 表3 请求Header参数 参数 是否必选 参数类型
15版本。C#(.NET Core 2.1): C#语言2.1版本。C#(.NET Core 3.1): C#语言3.1版本。Custom: 自定义运行时。PHP7.3: Php语言7.3版本。Cangjie1.0:仓颉语言1.0版本。http: HTTP函数。Custom Image: 自定义镜像函数。
15版本。C#(.NET Core 2.1): C#语言2.1版本。C#(.NET Core 3.1): C#语言3.1版本。Custom: 自定义运行时。PHP7.3: Php语言7.3版本。Cangjie1.0:仓颉语言1.0版本。http: HTTP函数。Custom Image: 自定义镜像函数。
15版本。C#(.NET Core 2.1): C#语言2.1版本。C#(.NET Core 3.1): C#语言3.1版本。Custom: 自定义运行时。PHP7.3: Php语言7.3版本。Cangjie1.0:仓颉语言1.0版本。http: HTTP函数。Custom Image: 自定义镜像函数。
15版本。C#(.NET Core 2.1): C#语言2.1版本。C#(.NET Core 3.1): C#语言3.1版本。Custom: 自定义运行时。PHP7.3: Php语言7.3版本。Cangjie1.0:仓颉语言1.0版本。http: HTTP函数。Custom Image: 自定义镜像函数。
15版本。C#(.NET Core 2.1): C#语言2.1版本。C#(.NET Core 3.1): C#语言3.1版本。Custom: 自定义运行时。PHP7.3: Php语言7.3版本。Cangjie1.0:仓颉语言1.0版本。http: HTTP函数。Custom Image: 自定义镜像函数。
out.println(event); System.out.println(event.getMessage().getRecords()[0].getRawData()); return "ok"; } public String ltsTest(LTSTriggerEvent
SlaReportsValue objects 错误次数 running_count Array of SlaReportsValue objects 运行中数量 表4 SlaReportsValue 参数 参数类型 描述 timestamp Long 时间戳 value Double 值 状态码:
参数 参数类型 描述 name String 模板名称 description String 模板描述 runtime String 模板执行运行时 category String 模板使用场景 params String 模板参数 image String 模板镜像文件(base64编码)