List¶
GET /api/v1/service_manage/performance/list
Overview¶
List service performance statistics for the Workspace to which the current API Key belongs within a time window.
Before Calling and Usage Steps¶
First determine the query window, and use the service field and collection tags to build filter conditions. By default, sort by p99 in descending order and place services favorited by the current identity first; when order is specified explicitly, paginate according to that sorting. The default values are pageIndex=1 and pageSize=50. Use content.pageInfo.totalCount and the current page count to determine whether to continue. Use content.buckets[].service to request Service Performance Details. The returned max_* values cover all services in the window, and these global comparison upper limits remain after filters are added; when there is no index or statistical data, max_* can be omitted. loading=true indicates that additional service status may still be loading; request again later.
Request Headers¶
| Parameter Name | Type | Required | Description |
|---|---|---|---|
| DF-API-KEY | string | Y | OpenAPI authentication credential for the Workspace. Example: <DF-API-KEY>How to obtain or enter: Obtain an OpenAPI Key with this operation permission from API Key Management in the target Workspace. |
Query Request Parameters¶
| Parameter Name | Type | Required | Description |
|---|---|---|---|
| start | integer | Y | Query start time, in Unix milliseconds. It is recommended to use it together with end to form the actual required statistical window. Example: 1785427200000How to obtain or enter: Take the query start time from the console time picker or a business record, and convert it to an integer in Unix milliseconds. Replace the example time with your own query window. |
| end | integer | Y | Query end time, in Unix milliseconds. Use the same time basis as start. Example: 1785430800000How to obtain or enter: Take the query end time as an integer in Unix milliseconds, for example, the result of JavaScript Date.getTime(). |
| filters | json | Filter JSON. You can use an object containing a tags array or a condition array. name is the collection field, such as service, env, or version. operation or the compatible op specifies the operation, value is an array, and condition or the compatible logic specifies and/or; the default is and. Child filters arrays form nested conditions. Example: {"tags": [{"name": "service", "operation": "in", "value": ["checkout-api"], "condition": "and"}]}How to obtain or enter: Select the service name, environment, and version from items returned by Service Performance List, or use actual collection tag fields. Pass the JSON string via --data-urlencode. |
|
| order | string | Default p99 descending. Allowed fields: key, total_count, avg_resp_time, avg_per_second, error_count, error_rate, sum_resp_time, max_duration, p50, p75, p90, p95, p99; only the first object in the array is used. Example: [{"p99":"desc"}]How to obtain or enter: Choose one of the allowed fields, and select asc or desc as needed. Pass a single-element JSON array string. |
|
| pageIndex | integer | Page number, default 1. Null allowed: False $minValue: 1 Example: 1How to obtain or enter: Start from 1, and increment the page number in subsequent requests while keeping filters and the time window consistent. |
|
| pageSize | integer | Number per page, default 50. Null allowed: False $minValue: 1 $maxValue: 100 Example: 50How to obtain or enter: Enter an integer from 1 to 100 as needed. |
Additional Parameter Notes¶
Pass filters examples in their original JSON structure and URL-encode them. order must be a non-empty JSON array whose first item is a sorting object; malformed shapes and filter items missing name, operation, or value may trigger a generic internal error. Organize the request according to the structures above before sending it.
Request Example¶
curl --get 'https://openapi.guance.com/api/v1/service_manage/performance/list' \
-H 'DF-API-KEY: <DF-API-KEY>' \
--data-urlencode start=1785427200000 \
--data-urlencode end=1785430800000 \
--data-urlencode 'filters={"tags":[{"name":"service","operation":"in","value":["checkout-api"],"condition":"and"}]}' \
--data-urlencode pageIndex=1 \
--data-urlencode pageSize=50
Response¶
HTTP 200, application/json. The example below shows the main fields that can be read directly.
| Field | Type | Description |
|---|---|---|
| content.max_duration | number | Upper limit of the longest response duration across all services, in microseconds. |
| content.max_total_count | integer | Maximum total request count among all services. |
| content.max_per_second | number | Maximum requests per second among all services, in req/s. |
| content.max_avg_duration | number | Maximum average response duration among all services, in microseconds. |
| content.max_sum_duration | number | Maximum cumulative response duration among all services, in microseconds. |
| content.max_p50 | number | Maximum P50 response duration among all services, in microseconds. |
| content.max_p75 | number | Maximum P75 response duration among all services, in microseconds. |
| content.max_p90 | number | Maximum P90 response duration among all services, in microseconds. |
| content.max_p95 | number | Maximum P95 response duration among all services, in microseconds. |
| content.max_p99 | number | Maximum P99 response duration among all services, in microseconds. |
| content.buckets | array<object> |
Service statistics for the current page. Statistical fields are provided based on available data. |
| content.buckets[].key | string | Grouped service name, usually the same as service. |
| content.buckets[].service | string | Service name in the collected data; also the serviceName for single-service queries. |
| content.buckets[].source_type | string | Collected service source type. |
| content.buckets[].type | string | Compatibility field, same as source_type. |
| content.buckets[].version | string | Service version; returned when this statistical dimension exists. |
| content.buckets[].env | string | Service environment; returned when this statistical dimension exists. |
| content.buckets[].total_count | integer | Number of requests in the statistical window. |
| content.buckets[].avg_per_second | number | Average requests per second, in req/s. |
| content.buckets[].avg_resp_time | number | Average response time, in microseconds; divide by 1000 to convert to milliseconds. |
| content.buckets[].sum_resp_time | number | Cumulative request response duration, in microseconds. |
| content.buckets[].max_duration | number | Longest request response duration, in microseconds. |
| content.buckets[].p50 | number | 50th percentile response time, in microseconds. |
| content.buckets[].p75 | number | 75th percentile response time, in microseconds. |
| content.buckets[].p90 | number | 90th percentile response time, in microseconds. |
| content.buckets[].p95 | number | 95th percentile response time, in microseconds. |
| content.buckets[].p99 | number | 99th percentile response time, in microseconds. |
| content.buckets[].error_count | integer | Number of error requests. |
| content.buckets[].error_rate | number | Error rate, from 0 to 1; multiply by 100 when displaying as a percentage. |
| content.buckets[].apdex | number or string | Apdex satisfaction score returned when provided by the backend. |
| content.buckets[].serviceCatelog | object | Object converted from the TOML service configuration of a registered service. The spelling is retained as serviceCatelog; the structure is the same as the parsed structure of the serviceCatelog TOML string in Create Service Configuration; the create parameter remains a TOML string. See that page for field meanings and sources. Empty object when unregistered. |
| content.buckets[].serviceCatelog.Team.team | string | Responsible team name when the configuration exists. Other service configuration fields can be read together with the service configuration details. |
| content.buckets[].checkerInfo | array<object> |
List of associated Monitors. |
| content.buckets[].checkerInfo[].name | string | Monitor name. |
| content.buckets[].checkerInfo[].uuid | string | Monitor UUID. |
| content.buckets[].checkerInfo[].type | string | Monitor type. |
| content.buckets[].dfStatus | string | Current event status of the service, such as ok or critical; ok when no status record exists. |
| content.buckets[].__docid | string | Event document ID corresponding to the service status; empty string when no corresponding event exists. |
| content.buckets[].isFavorite | integer or null | Favorite flag of the current calling identity. 0 or 1 for registered services; may be null when no corresponding service configuration exists. |
| content.buckets[].uuid | string | UUID of the registered service configuration. Can be an empty string for unregistered services. |
| content.buckets[].language | string | Registered collection SDK language; can be empty when unregistered. |
| content.pageInfo | object | Pagination information is inside content. |
| content.pageInfo.pageIndex | integer | Current page number. |
| content.pageInfo.pageSize | integer | Number per page. |
| content.pageInfo.count | integer | Actual number of items on the current page. |
| content.pageInfo.totalCount | integer | Total number of matching services. |
| content.loading | boolean | Whether additional status is still loading asynchronously. |
| content.declaration | object or null | Common Workspace declaration. |
{
"code": 200,
"content": {
"max_duration": 150000,
"max_total_count": 1200,
"max_per_second": 0.333333,
"max_avg_duration": 25000,
"max_sum_duration": 30000000,
"max_p50": 18000,
"max_p75": 25000,
"max_p90": 45000,
"max_p95": 70000,
"max_p99": 120000,
"buckets": [
{
"key": "checkout-api",
"service": "checkout-api",
"source_type": "web",
"type": "web",
"version": "1.0.0",
"env": "production",
"total_count": 1200,
"avg_per_second": 0.333333,
"avg_resp_time": 25000,
"sum_resp_time": 30000000,
"max_duration": 150000,
"p50": 18000,
"p75": 25000,
"p90": 45000,
"p95": 70000,
"p99": 120000,
"error_count": 12,
"error_rate": 0.01,
"serviceCatelog": {},
"checkerInfo": [],
"dfStatus": "ok",
"__docid": "",
"isFavorite": 0,
"uuid": "sman_example",
"language": "python"
}
],
"pageInfo": {
"pageIndex": 1,
"pageSize": 50,
"count": 1,
"totalCount": 1
},
"loading": false,
"declaration": {}
},
"errorCode": "",
"message": "",
"success": true,
"traceId": "TRACE-EXAMPLE"
}
Error Response¶
For authentication, rate limiting, and common request errors, see Common Error Definitions.
When there is no matching trace data, the list returns empty buckets, and a single service returns an empty object; a "service does not exist" error is usually not returned. Other 4xx query errors returned by the backend are returned with the actual errorCode and message.
| HTTP Status | errorCode | Trigger Condition | Message or Response Description | Handling |
|---|---|---|---|---|
| 406 | ft.ParameterValidationFailed | Request field missing, or field value violates the declared validation conditions | Parameter parsing failed | Check the parameter location, field name, type, and value. |
| 422 | ft.KodoAPMSummaryRowBudgetExceeded | Service statistics aggregation scan budget exceeded | The APM service summary data volume exceeds the processing limit. Narrow the time range and try again. | Narrow the time window. Reducing pageSize does not lower the aggregation budget for all services. |
| 429 | ft.KodoServerOverloaded | Query service overloaded or busy | Requests are currently too frequent; try again later. | Retry with backoff intervals and reduce the number of concurrent queries. |
| 500 | ft.InternalServerError | Statistics service unavailable, connection timeout, or other internal query exceptions not passed through | Internal error | Try again later or narrow the time window. If the failure persists, provide traceId and request parameters. |
| 406 | ft.KodoRequestDeadlineExceeded | Query execution exceeds the time allowed by the backend | Data query timed out, possibly due to excessive data volume, network latency, or high server load. You can resolve this issue in the following ways: 1. Add filter conditions or narrow the time range, then query again. 2. Wait for a while, then try the query again. |
Narrow the time range and add filter conditions, then try again. |
| 406 | ft.KodoTooManyRows | Query data volume exceeds the backend limit | The queried data volume exceeds the maximum limit. Add filter conditions or reduce the time range and query again. | Narrow the time range or reduce matching services and try again. |
| 406 | ft.KodoInvalidRegexPattern | The regular expression filter expression used is invalid | The provided regular expression pattern is invalid | Correct the regular expression or use an explicit set of service names. |