functiongraph__ShowTenantMetric
Retrieve FunctionGraph function-flow metrics such as invocation count, errors, runtime, running instances, and rejected requests for a specified project and time range.
Instructions
[FUNCTIONGRAPH] 获取函数流指标
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"project_id": "<project_id>"
},
"name": "functiongraph__ShowTenantMetric"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| period | No | 时间段,单位为分钟 | |
| end_time | No | 结束时间,精确到ms的时间戳 | |
| project_id | Yes | 项目ID。 | |
| start_time | No | 开始时间,精确到ms的时间戳 | |
| metric_type | No | 指标类型,为空或不在取值范围内时,查询所有指标。取值范围:totalCount 调用次数;errorCount 错误次数; averageDuration 运行时间;running 运行中个数;rejectCount 拒绝个数。 |