-
Notifications
You must be signed in to change notification settings - Fork 60
/
Copy pathconstants.ts
31 lines (29 loc) · 1.15 KB
/
constants.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/*
* SPDX-License-Identifier: Apache-2.0
*
* The OpenSearch Contributors require contributions made to
* this file be licensed under the Apache-2.0 license or a
* compatible open source license.
*
* Modifications Copyright OpenSearch Contributors. See
* GitHub history for details.
*/
export const BASE_NODE_API_PATH = '/api/anomaly_detectors';
export const AD_NODE_API = Object.freeze({
_SEARCH: `${BASE_NODE_API_PATH}/_search`,
_INDICES: `${BASE_NODE_API_PATH}/_indices`,
_ALIASES: `${BASE_NODE_API_PATH}/_aliases`,
_MAPPINGS: `${BASE_NODE_API_PATH}/_mappings`,
DETECTOR: `${BASE_NODE_API_PATH}/detectors`,
CREATE_INDEX: `${BASE_NODE_API_PATH}/create_index`,
BULK: `${BASE_NODE_API_PATH}/bulk`,
DELETE_INDEX: `${BASE_NODE_API_PATH}/delete_index`,
CREATE_SAMPLE_DATA: `${BASE_NODE_API_PATH}/create_sample_data`,
GET_CLUSTERS_INFO: `${BASE_NODE_API_PATH}/_remote/info`,
GET_INDICES_AND_ALIASES: `${BASE_NODE_API_PATH}/_indices_and_aliases`,
});
export const ALERTING_NODE_API = Object.freeze({
_SEARCH: `${BASE_NODE_API_PATH}/monitors/_search`,
ALERTS: `${BASE_NODE_API_PATH}/monitors/alerts`,
MONITORS: `${BASE_NODE_API_PATH}/monitors`,
});