检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
__": # The AK and SK used for authentication are hard-coded or stored in plaintext, which has great security risks.
__": # The AK and SK used for authentication are hard-coded or stored in plaintext, which has great security risks.
on_failure FuncDestinationConfig object 当函数执行失败(系统错误或函数内部错误)时,函数计算将调用该配置对应的目标。
枚举值: v1 v2 fail_count Integer 函数最近1天内执行失败的次数。
users/ serverless.yml # Contains 4 functions that do Users CRUD operations and the Users database posts/ serverless.yml # Contains 4 functions
X-Domain-ID:账号ID。 对于获取用户Token接口,由于不需要认证,所以只添加“Content-Type”即可,添加消息头后的请求如下所示。
__": # The AK and SK used for authentication are hard-coded or stored in plaintext, which has great security risks.
<descriptorRef>jar-with-dependencies</descriptorRef> </descriptorRefs> <archive> <manifest> <mainClass
are hard-coded or stored in plaintext, which has great security risks.
[initializer名] 示例:实现initializer接口时指定的Initializer入口为main.my_initializer,那么FunctionGraph会去加载main.py中定义的my_initializer函数。
external_global_domain_name 外部全局域名。 请填写“myhuaweicloud.com”。 步骤三:调用函数 在父函数的函数详情页,单击“测试”,弹出“配置测试事件”弹窗,单击“创建”使用默认空白模板创建测试事件。
为函数挂载文件系统时,报“failed to mount exist system path” FunctionGraph如何实现域名解析? FunctionGraph如何通过域名访问专享版APIG中注册的接口?
__": # The AK and SK used for authentication are hard-coded or stored in plaintext, which has great security risks.
代码示例: const Koa = require("koa"); const app = new Koa(); const main = (ctx) = >{ if (ctx.request.path == ("/koa")) { ctx.response.type
若不配置委托,在触发函数时,执行结果会返回如下: Failed to access other services because no temporary AK, SK, or token has been obtained. Please set an agency.
": { "name": "domainname" } } } }, "scope": {
表1 函数告警监控指标说明表 指标名称 显示名 描述 单位 上限值 下限值 建议阈值 值类型 所属维度 count 调用次数 该指标用于统计函数调用次数 次 - 0 - int package-functionname failcount 错误次数 该指标用于统计函数调用错误次数
__": # The AK and SK used for authentication are hard-coded or stored in plaintext, which has great security risks.
memorySize: 256 timeout: 60 userData: key1: value1 key2: value2 encryptedUserData: '{"nonce": "ZEUOREFaiahRbMz
>com.example.YourServiceMainClass</mainClass> </configuration> <executions> <execution>