kibana/x-pack/plugins/event_log/generated
Patrick Mueller cc6a64514d
[alerting][actions] add task scheduled date and delay to event log - 2 (#103172)
resolves #98634

This adds a new object property to the event log kibana object named
task, with two properties to track the time the task was scheduled to
run, and the delay between when it was supposed to run and when it
actually started. This task property is only added to the appropriate
events.

	task: schema.maybe(
	  schema.object({
	    scheduled: ecsDate(),
	    schedule_delay: ecsNumber(),
	  })
	),

Note that these changes were previously merged to master in https://github.com/elastic/kibana/pull/102252 which had to be reverted - this PR contains the same commits, plus some additional ones to resolve the tests that were broken during the bad merge.
2021-06-24 10:06:01 -04:00
..
mappings.json [alerting][actions] add task scheduled date and delay to event log - 2 (#103172) 2021-06-24 10:06:01 -04:00
README.md
schemas.ts [alerting][actions] add task scheduled date and delay to event log - 2 (#103172) 2021-06-24 10:06:01 -04:00

Generating event schema

The files in this directory were generated by manually running the script ../scripts/create-schemas.js from the root directory of the repository.

These files should not be edited by hand.

Please follow the following steps:

  1. Clone the ECS repo locally so that it resides along side your kibana repo, and checkout the ECS version you wish to support (for example, the 1.8 branch, for version 1.8).

  2. In the x-pack/plugins/event_log/scripts/mappings.js file you'll want to make the following changes:

    • Update EcsCustomPropertyMappings to include the mapping of the custom fields you wish to add.
    • Update EcsPropertiesToGenerate to include the fields in the generated mappings.json.
    • Make sure to list all array fields in EcsEventLogMultiValuedProperties.
  3. Cd to the kibana root folder and run:

    node ./x-pack/plugins/event_log/scripts/create_schemas.js