Skip to content

Commit 0998b91

Browse files
author
Andrea Spacca
authored
Remove deprecated corpora.generator.size in favour of `corpora.gene… (#639)
Remove deprecated `corpora.generator.size` in favour of `corpora.generator.total_events`
1 parent 5740417 commit 0998b91

4 files changed

Lines changed: 7 additions & 9 deletions

File tree

spec/changelog.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
- description: Using non-GA versions of the spec in GA packages produces a filterable validation error instead of a warning.
88
type: enhancement
99
link: https://github.com/elastic/package-spec/pull/627
10+
- description: Remove deprecated `corpora.generator.size` in favour of `corpora.generator.total_events`
11+
type: breaking-change
12+
link: https://github.com/elastic/package-spec/pull/639
1013
- description: Allow to define limits of nested and total number of fields.
1114
type: enhancement
1215
link: https://github.com/elastic/package-spec/pull/641

spec/integration/_dev/benchmark/system.scenario.spec.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -65,17 +65,12 @@ spec:
6565
type: object
6666
additionalProperties: false
6767
required:
68-
- size
68+
- total_events
6969
- template
7070
- config
7171
- fields
7272
properties:
73-
size:
74-
description: A string describing the amount of data to generate.
75-
type: string
76-
example: 10MiB
77-
deprecated: true # as for https://github.com/elastic/elastic-integration-corpus-generator-tool/pull/94
78-
tot_events:
73+
total_events:
7974
description: An integer describing the total number of events to generate.
8075
type: integer
8176
example: 1000

test/packages/integration_benchmarks/_dev/benchmark/rally/rally-benchmark.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
description: Benchmark 20MiB of data ingested
33
data_stream.name: test
44
warmup_time_period: 10s
5-
corpora.generator.size: 20MiB
5+
corpora.generator.total_events: 20000
66
corpora.generator.template.raw: '{"@timestamp": "2016-12-07T10:04:37.000Z", "message": "a message"}'
77
corpora.generator.config.path: ./20mb-track/config.yml
88
corpora.generator.fields.path: ./20mb-track/fields.yml

test/packages/integration_benchmarks/_dev/benchmark/system/tcp-benchmark.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ data_stream.dataset: test
66
data_stream.vars.paths:
77
- "{{SERVICE_LOGS_DIR}}/corpus-*"
88
warmup_time_period: 10s
9-
corpora.generator.size: 20MiB
9+
corpora.generator.total_events: 20000
1010
corpora.generator.template.raw: a template
1111
corpora.generator.config.path: ./tcp-benchmark/config.yml
1212
corpora.generator.fields.path: ./tcp-benchmark/fields.yml

0 commit comments

Comments
 (0)