{"base_path":null,"components":null,"consumes":"[\"application/json\"]","definitions":{"ErrorResp":{"properties":{"error_code":{"description":"错误码","type":"string"},"error_msg":{"description":"错误信息","type":"string"}}},"ShowFunctionMetricsResponseBody":{"description":"函数指标","properties":{"concurrency_num":{"description":"并发数","items":{"$ref":"#/definitions/SlaReportsValue"},"type":"array"},"count":{"description":"调用次数","items":{"$ref":"#/definitions/SlaReportsValue"},"type":"array"},"duration":{"description":"平均时延,单位毫秒","items":{"$ref":"#/definitions/SlaReportsValue"},"type":"array"},"fail_count":{"description":"错误次数","items":{"$ref":"#/definitions/SlaReportsValue"},"type":"array"},"function_error_count":{"description":"函数错误次数","items":{"$ref":"#/definitions/SlaReportsValue"},"type":"array"},"instance_num":{"description":"弹性实例数","items":{"$ref":"#/definitions/SlaReportsValue"},"type":"array"},"max_duration":{"description":"最大时延,单位毫秒","items":{"$ref":"#/definitions/SlaReportsValue"},"type":"array"},"min_duration":{"description":"最小时延,单位毫秒","items":{"$ref":"#/definitions/SlaReportsValue"},"type":"array"},"reject_count":{"description":"被拒绝次数","items":{"$ref":"#/definitions/SlaReportsValue"},"type":"array"},"reserved_instance_num":{"description":"预留实例数","items":{"$ref":"#/definitions/SlaReportsValue"},"type":"array"},"system_error_count":{"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":"92a466e1450b4243b56383eccc5455f5","info_version":"v2","method":"get","name":"ShowFunctionMetrics","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}/slareports/{period}":{"get":{"description":"查询函数流量指标。","operationId":"ShowFunctionMetrics","parameters":[{"$ref":"#/parameters/project_id"},{"$ref":"#/parameters/func_urn"},{"description":"时间间隔(单位:min)","in":"path","name":"period","required":true,"type":"string","x-enums":["5","15","60"],"x-example":"15"},{"$ref":"#/parameters/X-Auth-Token"},{"$ref":"#/parameters/Content-Type"}],"responses":{"200":{"description":"ok","examples":{"application/json":{"concurrency_num":[{"timestamp":1596679200000,"value":-1},{"timestamp":1596682800000,"value":2}],"count":[{"timestamp":1596679200000,"value":-1},{"timestamp":1596682800000,"value":950}],"duration":[{"timestamp":1596679200000,"value":-1},{"timestamp":1596682800000,"value":950}],"fail_count":[{"timestamp":1596679200000,"value":-1},{"timestamp":1596682800000,"value":950}],"function_error_count":[{"timestamp":1596679200000,"value":-1},{"timestamp":1596682800000,"value":950}],"instance_num":[{"timestamp":1596679200000,"value":-1},{"timestamp":1596682800000,"value":950}],"max_duration":[{"timestamp":1596679200000,"value":-1},{"timestamp":1596682800000,"value":950}],"min_duration":[{"timestamp":1596679200000,"value":-1},{"timestamp":1596682800000,"value":950}],"reject_count":[{"timestamp":1596679200000,"value":-1},{"timestamp":1596682800000,"value":950}],"reserved_instance_num":[{"timestamp":1596679200000,"value":-1},{"timestamp":1596682800000,"value":950}],"system_error_count":[{"timestamp":1596679200000,"value":-1},{"timestamp":1596682800000,"value":950}]}},"schema":{"$ref":"#/definitions/ShowFunctionMetricsResponseBody"}},"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}/slareports/{period}","x-support-sdk":"Y"}}},"product_short":"FunctionGraph","region_id":"cn-north-4","schemes":["HTTPS"],"security_definitions":null,"summary":"查询函数实例流量指标","tags":"函数指标","uri":null,"version":"2.0"}