-
Notifications
You must be signed in to change notification settings - Fork 8.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Entity Analytics] [Entity Store] Refactor entity store enablement (server side) #199638
base: main
Are you sure you want to change the base?
Conversation
return { engines, succeeded: true }; | ||
} | ||
|
||
public async status(): Promise<GetEntityStoreStatusResponse> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this the correct way to compute the status?
What should we do in those "in between" states, where, for example, not all engines are stopped?
Maybe worry about it later if we ever decide allowing individual engine setup?
Pinging @elastic/security-entity-analytics (Team:Entity Analytics) |
💔 Build Failed
Failed CI StepsHistory
|
Summary
This PR adds 2 new endpoints regarding enablement of the Entity Store:
api/entity_store/enable
, which initializes entity engines for bothuser
andhost
entitiesapi/entity_store/status
, which computes a global store status based on the individual engine statusIn addition, running initialization of multiple engines in parallel is now allowed.
How to test
POST kbn:/api/entity_store/enable
installing
by callingGET kbn:/api/entity_store/status
status
endpoint. Once initialization finishes, the status should switch torunning