---
title: "获取SQL管控SQL性能洞察图表数据"
method: GET
path: "/v1/projects/{project_name}/sql_performance_insights"
tags: ["SqlInsight"]
---

# 获取SQL管控SQL性能洞察图表数据

`GET /v1/projects/{project_name}/sql_performance_insights`

get sql manage sql performance insights

## Path parameters

- `project_name` string, required

## Query parameters

- `metric_name` 'comprehensive_trend' | 'slow_sql_trend' | 'top_sql_trend' | 'active_session_trend', required
- `start_time` string, required
- `end_time` string, required
- `instance_id` string, required

## Response `200`

OK

## Changes

- **2025-07-21** `d47a4a068592` — 1 info
  - endpoint added
- **2025-06-24** `ea902136997f` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/actiontech/apis/sqle-api-docs/changes/v1/projects/:project_name/sql_performance_insights/get.md)

---

[API](https://skmtc.dev/actiontech/apis/sqle-api-docs.md) · [All operations](https://skmtc.dev/actiontech/apis/sqle-api-docs/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/actiontech/sqle-api-docs/revisions/3e36a0067703/schema)
