wazuh-kibana-app/scripts
Jose Sanchez Robles 62940c80fd
New cron jobs handler (#2412)
* Added logic to run the tests

* Added a new class for making API requests

The old monitoring task has a specific logic to obtain data from the agents
of the API.

* Created the structure files of the SchedulerHandler

* Remove a console.log and fixed the return type

* Fixed typo errors in the tests titles

* Finished the first iteration

The logic execute all jobs when the Kibana up.

* Inserted the timestamp field

* Fixed the tests of schedulerJob class

* Refactor getApiObject function

* Adds a setting to change the prefix of the job indexes

* Some request has parameters in the path

To solved it, we modified the code to get the list of the parameters
from another request or an array of strings

* Refactor code

* Create the index pattern if not exists

* Add cron.prefix configuration example to wazuh.yml

* Changes to adapt to Kibana 7.6

* Revert changes in predefined-jobs.js

* Added new log line

* Add logic to add the creation interval subfix

* Change the jobs array to an object

* Refactor code

* Add the Mapping Object to save the data in the document

* Refactor

* Added new error handler

* Added logic to change settings

* Create statistic index-pattern in tenants

* Adapt to api 4.0

* Repaired the broken ApiRequest class tests

* Repaired the broken SchedulerJob class tests

* Repaired the broken SchedulerJob class tests

* Reverse the plugin-helpers version
2020-08-04 09:40:10 +02:00
..
jest.js New cron jobs handler (#2412) 2020-08-04 09:40:10 +02:00