| Description | Get a list of metrics |
URL | /api/metrics |
| HTTP Method | GET |
| Response Formats | json | xml |
Security | None |
Examples
| Use Case | Example Request |
|---|---|
| Get all the metrics from the Sonar Nemo instance | |
| Get the metric 'Lines of Code' (id = ncloc) |
Response Format
JSON
Parameters
Parameter | Description | Required | Default Value | Example Value |
|---|---|---|---|---|
id | id or key of the metric | No. Get all metrics if not set | None | ncloc |
| format | Response format can be set through:
If nothing is set, json is used. | No | None | json |
Labels

