list_metrics
Retrieve metric definitions for a database connection, including name, display name, SQL aggregate, and dimensions. View reusable KPIs configured for your connection.
Instructions
List the metric definitions for a connection.
Returns each metric's name, display name, SQL aggregate expression, and dimensions. Metrics are named, reusable KPIs. Add with add_metric; for phrase-to-SQL term mappings see list_glossary. Read-only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| connection | Yes | Target database connection — its name or id (case-insensitive). List the available connections with list_connections. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |