listLabelValues method
Written by
Updated at September 19, 2024
Returns a list of values for the specified label key.
HTTP request
GET https://monitoring.api.cloud.yandex.net/monitoring/v2/metrics/labels/{labelKey}/values
Path parameters
Parameter | Description |
---|---|
labelKey | This is a required field. Label key that a search is performed by. |
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. |
valueFilter | Substring text used for filtering by label value. |
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
{
"values": [
"string"
],
"metricsCount": "string",
"absent": true,
"nextPageToken": "string"
}
Field | Description |
---|---|
values[] | string List of label values by the specified key. |
metricsCount | string (int64) Number of metrics found by the specified selectors. |
absent | boolean (boolean) Indicates that a selection contains metrics without the specified label. |
nextPageToken | string Token to get the next page of results in a response. |