Spec-Zone.ru › Elasticsearch 8
›Elasticsearch Guide [8.17] ›REST API ›API Watcher

Получение настроек индекса Watcher

Новая справка по API

Для получения самых актуальных данных об API, обратитесь к API Watcher.

Этот API позволяет пользователю получить настраиваемые параметры внутреннего индекса Watcher (.watches). Будут показаны только подмножество настроек индекса — те, которые настраиваются пользователем. Это включает:

  • index.auto_expand_replicas
  • index.number_of_replicas

Пример получения настроек Watcher:

resp = client.perform_request(
    "GET",
    "/_watcher/settings",
)
print(resp)
response = client.watcher.get_settings
puts response
const response = await client.transport.request({
  method: "GET",
  path: "/_watcher/settings",
});
console.log(response);
GET /_watcher/settings

Настраиваемые параметры можно изменить с помощью API обновления настроек индекса Watcher.

© 2023-2025 Elasticsearch
As of September 2024, Elasticsearch is available under a choice of three licenses: the Server Side Public License (SSPL), the Elastic License, or the AGPLv3 (OSI approved).
Elasticsearch and the Elasticsearch logo are trademarks of Elasticsearch B.V., registered in the U.S. and in other countries.
https://www.elastic.co/guide/en/elasticsearch/reference/8.17/watcher-api-get-settings.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API