huawei-cloud-api-definitions-FunctionGraph 0.1.20250124

Huawei Cloud API definitions, generated from OpenAPI spec
Documentation
1
{"base_path":null,"components":null,"consumes":"[\"application/json\"]","definitions":{"ErrorResp":{"properties":{"error_code":{"description":"错误码","type":"string"},"error_msg":{"description":"错误信息","type":"string"}}},"ShowFuncReservedInstanceMetricsResponseBody":{"description":"函数指标","properties":{"instanceNum":{"description":"弹性实例指标","items":{"$ref":"#/definitions/SlaReportsValue"},"type":"array"},"reservedInstanceNum":{"description":"预留实例指标","items":{"$ref":"#/definitions/SlaReportsValue"},"type":"array"}}},"SlaReportsValue":{"properties":{"timestamp":{"description":"时间戳","format":"int64","type":"integer"},"value":{"description":"值","format":"double","type":"number"}}}},"description":null,"group_id":"cb46b925a4eb40a192520da4fc33b990","host":"functiongraph.cn-north-4.myhuaweicloud.com","id":"f2fbf1ca80014fde94255cd5d189921e","info_version":"v2","method":"get","name":"ShowFuncReservedInstanceMetrics","parameters":{"Content-Type":{"default":"application/json","description":"消息体的类型(格式)","in":"header","name":"Content-Type","required":true,"type":"string","x-example":"application/json"},"X-Auth-Token":{"description":"用户Token。\n\n通过调用IAM服务获取用户Token接口获取(响应消息头中X-Subject-Token的值)。","in":"header","name":"X-Auth-Token","required":true,"type":"string","x-example":"MIIDkgYJKoZIhvcNAQcCoIIDgzCCXXXXX..."},"func_urn":{"description":"函数的URN,详细解释见FunctionGraph函数模型的描述。","in":"path","name":"func_urn","required":true,"type":"string","x-example":"urn:fss:{region}:46b6f338fc3445b8846c71dfb1fbxxxx:function:csharp:test2-0:latest"},"project_id":{"description":"租户项目 ID,获取方式请参见[获取项目ID](functiongraph_06_0260.xml)。","in":"path","name":"project_id","required":true,"type":"string","x-example":"46b6f338fc3445b8846c71dfb1fbd9e8"}},"paths":{"/v2/{project_id}/fgs/functions/{func_urn}/instancereports":{"get":{"description":"查询函数实例使用情况指标。\n\n- 指标单位为分钟:\n    当查询时间范围小于1小时,指标周期为1分钟\n    当查询时间范围小于1天,指标周期为30分钟\n    当查询时间范围大于1天,指标周期为180分钟\n- 指标分为如下几类:reservedinstancenum(预留实例使用)、concurrency(实例使用/并发)","operationId":"ShowFuncReservedInstanceMetrics","parameters":[{"default":0,"description":"本次查询起始位置,默认值0","in":"query","maxLength":64,"minLength":0,"name":"marker","type":"string"},{"default":100,"description":"本次查询最大返回的数据条数,最大值500,默认值100","in":"query","maxLength":64,"minLength":0,"name":"limit","type":"string"},{"$ref":"#/parameters/project_id"},{"$ref":"#/parameters/func_urn"},{"$ref":"#/parameters/X-Auth-Token"},{"$ref":"#/parameters/Content-Type"}],"responses":{"200":{"description":"ok","examples":{"application/json":{"instanceNum":[{"timestamp":1596679200000,"value":-1},{"timestamp":1596682800000,"value":2},{"timestamp":1596686400000,"value":-1}],"reservedInstanceNum":[{"timestamp":1596679200000,"value":-1},{"timestamp":1596682800000,"value":950},{"timestamp":1596686400000,"value":-1}]}},"schema":{"$ref":"#/definitions/ShowFuncReservedInstanceMetricsResponseBody"}},"500":{"description":"Internal Server Error 服务内部错误。","schema":{"$ref":"#/definitions/ErrorResp"}}},"summary":"查询函数实例使用情况指标","tags":["函数指标"],"x-is-registered":"Y","x-request-examples-description-1":"查询函数实例使用情况指标。","x-request-examples-url-1":"GET /v2/{project_id}/fgs/functions/{func_urn}/instancereports","x-support-sdk":"Y"}}},"product_short":"FunctionGraph","region_id":"cn-north-4","schemes":["HTTPS"],"security_definitions":null,"summary":"查询函数实例使用情况指标","tags":"函数指标","uri":null,"version":"2.0"}