Spec-Zone.ru › Elasticsearch 8
›Elasticsearch Guide [8.17] ›REST APIs ›Behavioral Analytics APIs

List Analytics Collections

This functionality is in beta and is subject to change. The design and code is less mature than official GA features and is being provided as-is with no warranties. Beta features are not subject to the support SLA of official GA features.

New API reference

For the most up-to-date API details, refer to Behavioral analytics APIs.

Returns information about Behavioral Analytics Collections.

Request

GET _application/analytics/<criteria>

Prerequisites

Requires the manage_behavioral_analytics cluster privilege.

Path parameters

<criteria>
(optional, string) Criteria is used to find a matching analytics collection. This could be the name of the collection or a pattern to match multiple. If not specified, will return all analytics collections.

Response codes

404
Criteria does not match any Analytics Collections.

Response codes

Examples

The following example lists all configured Analytics Collections:

resp = client.search_application.get_behavioral_analytics()
print(resp)
const response = await client.searchApplication.getBehavioralAnalytics();
console.log(response);
GET _application/analytics/

A sample response:

{
  "my_analytics_collection": {
      "event_data_stream": {
          "name": "behavioral_analytics-events-my_analytics_collection"
      }
  },
  "my_analytics_collection2": {
      "event_data_stream": {
          "name": "behavioral_analytics-events-my_analytics_collection2"
      }
  }
}

The following example returns the Analytics Collection that matches my_analytics_collection:

resp = client.search_application.get_behavioral_analytics(
    name="my_analytics_collection",
)
print(resp)
const response = await client.searchApplication.getBehavioralAnalytics({
  name: "my_analytics_collection",
});
console.log(response);
GET _application/analytics/my_analytics_collection

A sample response:

{
  "my_analytics_collection": {
      "event_data_stream": {
          "name": "behavioral_analytics-events-my_analytics_collection"
      }
  }
}

The following example returns all Analytics Collections prefixed with my:

resp = client.search_application.get_behavioral_analytics(
    name="my*",
)
print(resp)
const response = await client.searchApplication.getBehavioralAnalytics({
  name: "my*",
});
console.log(response);
GET _application/analytics/my*

A sample response:

{
  "my_analytics_collection": {
      "event_data_stream": {
          "name": "behavioral_analytics-events-my_analytics_collection"
      }
  },
  "my_analytics_collection2": {
      "event_data_stream": {
          "name": "behavioral_analytics-events-my_analytics_collection2"
      }
  }
}

© 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/list-analytics-collection.html

Spec-Zone.ru

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