listMetrics method
Written by
Updated at June 11, 2024
Returns a list of metrics.
HTTP request
GET https://monitoring.api.cloud.yandex.net/monitoring/v2/metrics
Query parameters
Parameter | Description |
---|---|
folderId | This is a required field. ID of the folder that the metric belongs to. The maximum string length is 50 characters. |
selectors | Metric selectors to search by label. |
Response
HTTP Code: 200 - OK
{
"metrics": [
{
"name": "string",
"labels": "object",
"type": "string"
}
]
}
Field | Description |
---|---|
metrics[] | object List of metrics. |
metrics[]. name |
string Metric name. |
metrics[]. labels |
object List of metric labels in |
metrics[]. type |
string Type of metric.
|