forked from elastic/kibana
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[EEM] Add create and read APIs for v2 type and source definitions (el…
…astic#201470) ## Summary This PR adds: * Some basic features and privileges for the EEM app * A function that sets up an index with a template for the new definitions * 4 API endpoints to read and create entity types and sources * `POST /internal/entities/v2/definitions/types` * `GET /internal/entities/v2/definitions/types` * `POST /internal/entities/v2/definitions/sources` * `GET /internal/entities/v2/definitions/sources` * Some v2 shuffling around of code --------- Co-authored-by: kibanamachine <[email protected]> Co-authored-by: Maxim Palenov <[email protected]>
- Loading branch information
1 parent
169b0c2
commit 7cfdd8c
Showing
32 changed files
with
893 additions
and
336 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0; you may not use this file except in compliance with the Elastic License | ||
* 2.0. | ||
*/ | ||
|
||
// Definitions index | ||
|
||
export const DEFINITIONS_ALIAS = '.kibana-entities-definitions'; | ||
export const TEMPLATE_VERSION = 1; | ||
|
||
// Privileges | ||
|
||
export const CREATE_ENTITY_TYPE_DEFINITION_PRIVILEGE = 'create_entity_type_definition'; | ||
export const CREATE_ENTITY_SOURCE_DEFINITION_PRIVILEGE = 'create_entity_source_definition'; | ||
export const READ_ENTITY_TYPE_DEFINITION_PRIVILEGE = 'read_entity_type_definition'; | ||
export const READ_ENTITY_SOURCE_DEFINITION_PRIVILEGE = 'read_entity_source_definition'; | ||
export const READ_ENTITIES_PRIVILEGE = 'read_entities'; |
Oops, something went wrong.