Skip to content
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

Specify static output format for event.duration #425

Merged
merged 1 commit into from
Apr 15, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions generated/beats/fields.ecs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -613,6 +613,8 @@
type: long
format: duration
input_format: nanoseconds
output_format: asMilliseconds
output_precision: 1
description: 'Duration of the event in nanoseconds.

If event.start and event.end are known this value should be the difference
Expand Down
2 changes: 2 additions & 0 deletions generated/ecs/ecs_flat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -800,6 +800,8 @@ event.duration:
level: core
name: duration
order: 11
output_format: asMilliseconds
output_precision: 1
short: Duration of the event in nanoseconds.
type: long
event.end:
Expand Down
2 changes: 2 additions & 0 deletions generated/ecs/ecs_nested.yml
Original file line number Diff line number Diff line change
Expand Up @@ -974,6 +974,8 @@ event:
level: core
name: duration
order: 11
output_format: asMilliseconds
output_precision: 1
short: Duration of the event in nanoseconds.
type: long
end:
Expand Down
2 changes: 2 additions & 0 deletions schemas/event.yml
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,8 @@
type: long
format: duration
input_format: nanoseconds
output_format: asMilliseconds
output_precision: 1
short: Duration of the event in nanoseconds.
description: >
Duration of the event in nanoseconds.
Expand Down
2 changes: 1 addition & 1 deletion scripts/generators/beats.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def generate(ecs_nested, ecs_version):
def fieldset_field_array(source_fields):
allowed_keys = ['name', 'level', 'required', 'type', 'object_type',
'ignore_above', 'multi_fields', 'format', 'input_format',
'description', 'example']
'output_format', 'output_precision', 'description', 'example']
fields = []
for nested_field_name in source_fields:
ecs_field = source_fields[nested_field_name]
Expand Down