Skip to content

Commit

Permalink
[8.16] [Entity Analytics] [Entity Store] Add audit logs (#196847) (#1…
Browse files Browse the repository at this point in the history
…98482)

# Backport

This will backport the following commits from `main` to `8.16`:
 - [Entity Analytics] [Entity Store] Add audit logs (#196847) (6c6ae68)

<!--- Backport version: 8.9.8 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Tiago Vila
Verde","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-10-30T22:14:26Z","message":"[Entity
Analytics] [Entity Store] Add audit logs (#196847)\n\n##
Summary\r\n\r\n\r\nThis PR adds audit logs for the different actions
that can be performed\r\non the entity store
engines.","sha":"6c6ae68ded65bf8955d56d8c2007fb9320385411"},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[]}]
BACKPORT-->

---------

Co-authored-by: kibanamachine <[email protected]>
  • Loading branch information
tiansivive and kibanamachine authored Oct 31, 2024
1 parent f842d81 commit 8b0ea6e
Show file tree
Hide file tree
Showing 4 changed files with 171 additions and 47 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/*
* 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.
*/

export const EntityEngineActions = {
INIT: 'init',
START: 'start',
STOP: 'stop',
CREATE: 'create',
DELETE: 'delete',
EXECUTE: 'execute',
} as const;

export type EntityEngineActions = (typeof EntityEngineActions)[keyof typeof EntityEngineActions];
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/*
* 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.
*/

export const EntityStoreResource = {
ENTITY_ENGINE: 'entity_engine',
ENTITY_DEFINITION: 'entity_definition',
ENTITY_INDEX: 'entity_index',
INDEX_COMPONENT_TEMPLATE: 'index_component_template',
PLATFORM_PIPELINE: 'platform_pipeline',
FIELD_RETENTION_ENRICH_POLICY: 'field_retention_enrich_policy',
FIELD_RETENTION_ENRICH_POLICY_TASK: 'field_retention_enrich_policy_task',
} as const;

export type EntityStoreResource = (typeof EntityStoreResource)[keyof typeof EntityStoreResource];
Loading

0 comments on commit 8b0ea6e

Please sign in to comment.