Commit Graph

8 Commits

Author SHA1 Message Date
Desvelao
c7ac570f45
Fix and update API info:
- Fix generate script with missing body parameters without exported name
  - Update API info
2020-10-14 17:31:47 +02:00
Desvelao
b2a9b2adc8
Update generate API endpoints info:
- adapted script
  - generated new API endpoints info json
2020-10-08 16:31:57 +02:00
Desvelao
a00a506a19
Update API reference endpoints documentation links:
- Removed old documentation links
  - Updated generate API 4.0 script
  - Updated API endpoints documentations links
2020-10-02 15:38:31 +02:00
Desvelao
b3cb338abb
Fix generate API 4.0 info:
- The request body with type as object were missing
2020-09-29 16:00:37 +02:00
Desvelao
2609b45e81
Fix Dev tools generate info script
- Removed head and patch methods
2020-09-29 15:21:41 +02:00
Desvelao
d6c14724f4
Fix generate API 4.0 info script:
- Some mapping parameters references to his information were missing
2020-09-29 13:41:14 +02:00
Desvelao
221f36d8e4
Added an script to generate Wazuh API 4.0:
- Added script
  - Added sh script to remove the result json file and replace the current file in Wazuh app
  - Added a file with previous documentation link mapped with the endpoints
  - Added a script to package.json to run the task
2020-09-29 08:53:11 +02:00
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