-
Notifications
You must be signed in to change notification settings - Fork 4
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
Create UML diagrams for the wazuh-indexer-setup
plugin
#11
Comments
Sequence diagramNote Calls to sequenceDiagram
actor Node
participant SetupPlugin
participant WazuhIndices
participant Client
Node->>SetupPlugin: plugin.onNodeStarted()
activate SetupPlugin
Note over Node,SetupPlugin: Invoked on Node::start()
activate WazuhIndices
SetupPlugin->>WazuhIndices: initialize()
Note over SetupPlugin,WazuhIndices: Create index templates and indices
loop i..n templates
WazuhIndices-)Client: templateExists(i)
Client--)WazuhIndices: response
alt template i does not exist
WazuhIndices-)Client: putTemplate(i)
Client--)WazuhIndices: response
end
end
loop i..n indices
WazuhIndices-)Client: indexExists(i)
Client--)WazuhIndices: response
alt index i does not exist
WazuhIndices-)Client: putIndex(i)
Client--)WazuhIndices: response
end
end
deactivate WazuhIndices
deactivate SetupPlugin
Class diagram---
title: Wazuh Indexer setup plugin
---
classDiagram
direction LR
SetupPlugin"1"-->WazuhIndices
WazuhIndices"1"-->Client
<<service>> Client
SetupPlugin : -WazuhIndices indices
SetupPlugin : +createComponents()
SetupPlugin : +onNodeStarted()
WazuhIndices : -Client client
WazuhIndices : -ClusterService clusterService
WazuhIndices : +WazuhIndices(Client client, ClusterService clusterService)
WazuhIndices : +putTemplate(String template) void
WazuhIndices : +putIndex(String index) void
WazuhIndices : +indexExists(String index) bool
WazuhIndices : +templateExists(String template) bool
WazuhIndices : +initialize() void
Note rev 0.1 - July 10, 2024: Add initial diagrams |
Closing notesHaving diagrammed the plugin, I wonder where it would make more sense to include the loop to create the indices. Creating an index consists of invoking On the other hand, the filenames for these mappings and settings are currently included in the code of the We need to explore how to create index templates (using the Index Management plugin), as a way to overcome the problems stated above. The strategy of creating single indices with mappings and settings only works for that particular index, and won't apply to rotated stream indices. |
OpenSearch Playground has 2 composable index templates. Searching the name |
Description
Create UML diagrams for the proposed design (#3) of the
wazuh-indexer-setup
plugin. We want to complement the new plugins with properly documented designs from the beginning of the development.Tasks
The text was updated successfully, but these errors were encountered: