Skip to content

Commit

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


This PR adds audit logs for the different actions that can be performed
on the entity store engines.
  • Loading branch information
tiansivive authored Oct 30, 2024
1 parent 950ee16 commit 6c6ae68
Show file tree
Hide file tree
Showing 4 changed files with 173 additions and 44 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 6c6ae68

Please sign in to comment.