Skip to content

Export



GET /api/v1/service_manage/performance/export

Overview

Synchronously exports the service performance statistics of the current Workspace as CSV.

Before Calling and Usage Steps

After specifying the window to export, send a GET request. On success, the response body is raw CSV text and is not wrapped in code/content JSON. This API exports all services with statistics in the window and does not accept list filters, order, or pagination parameters. Results are organized in descending p99 order. Column headers vary with the Workspace language. Chinese Workspaces output the column order shown in the table below by default. Durations in the CSV are converted and include display units, and error counts include percentages. Check the HTTP status and Content-Type before parsing as CSV; failure responses may still be JSON. The example specifies a local filename via --output.

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 the required 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 statistics window.
Example: 1785427200000
How to obtain or enter: Take the query start time from the console time selector or business record and convert it to a Unix millisecond integer. 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: 1785430800000
How to obtain or enter: Take the Unix millisecond integer for the query end time, for example, the result of JavaScript Date.getTime().

Additional Parameter Notes

Headers can still be returned when there is no data. The API does not provide a fixed Content-Disposition download filename. CSV encloses each value in double quotes; business text containing quotes or line breaks may affect third-party parsing. If strict escaping is required, use the JSON list instead and encode the CSV yourself.

Request Example

curl --get 'https://openapi.guance.com/api/v1/service_manage/performance/export' \
  -H 'DF-API-KEY: <DF-API-KEY>' \
  --data-urlencode start=1785427200000 \
  --data-urlencode end=1785430800000 \
  --output service-performance.csv

Response

HTTP 200, Content-Type: text/csv. The response body is CSV text. The following field table describes the default Chinese columns.

Field Type Description
Service string Name of the collected service.
Total Requests string Total number of requests.
Average Request Rate string Average request frequency, with req/s.
Average Response Time string Formatted average response duration, with units such as ms.
P75 Response Time string P75 response duration, with display units.
P99 Response Time string P99 response duration, with display units.
Errors string Error count and percentage, for example 12(1.0)%.
Team string Team.team in the service configuration; can be empty.
Monitor Count string Number of associated Monitors.
Service Status string Current service status; defaults to ok.
Max Response Time string Longest response duration, with display units.
Language string Registered collection SDK language.
Apdex Satisfaction string Apdex value; can be empty when not provided.
Response Header Type Description
Content-Type string text/csv on success.
"服务","请求总数","平均请求数","平均响应时间","P75响应时间","P99响应时间","错误数","团队","监控器数量","服务状态","最大响应时间","语言","Apdex满意度"
"checkout-api","1200","0.33 req/s","25.0 ms","25.0 ms","120.0 ms","12(1.0)%","","0","ok","150.0 ms","python",""

Error Responses

For authentication, rate limiting, and common request errors, see Common Error Definitions.

Success returns text/csv; authentication, parameter, and query failures use the common JSON error structure.

HTTP Status errorCode Trigger Condition Message or Response Description Handling
406 ft.ParameterValidationFailed Request field missing, or field value violates 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. Reduce the time range and try again. Reduce the time window. Reducing pageSize does not reduce the aggregation budget for all services.
429 ft.KodoServerOverloaded Query service overloaded or busy The current request rate is too high. Try again later. Retry with a backoff interval and reduce the number of simultaneous queries.
500 ft.InternalServerError Statistics service unavailable, connection timeout, or other internal query exceptions not passed through Internal error Try again later or reduce the time window. If the failure persists, provide the traceId and request parameters.
406 ft.KodoRequestDeadlineExceeded Query execution exceeds the time allowed by the backend Data query timed out. This may be caused by the following reasons: too much data, network latency, or high server load. You can resolve this issue in the following ways:
1. Add filter conditions or reduce the time range, then query again.
2. Wait a while, then try the query again.
Reduce the export time window and try again. If the failure persists, provide the traceId and request parameters.
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, then query again. Reduce the export time window and try again. If the failure persists, provide the traceId and request parameters.

Feedback

Is this page helpful?