listMetrics method
Written by
Updated at January 31, 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. |
pageSize | Maximum number of results per request response page. Defaults to 30, meaning that 30 results are displayed per page. The maximum value is 10,000. |
pageToken | Page token. Set pageToken to the nextPageToken returned by a previous request to get the next page of results. |
Response
HTTP Code: 200 - OK
{
"metrics": [
{
"name": "string",
"labels": "object",
"type": "string"
}
],
"nextPageToken": "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.
|
nextPageToken | string Token to get the next page of results in a response. |