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

[ML] Changes interval to fixed_interval in aggregations in created jobs #36759

Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ export function SingleMetricJobServiceProvider() {
buckets: {
date_histogram: {
field: formConfig.timeField,
interval: interval
fixed_interval: interval
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will this include units or just be a bare number? I just realised not specifying any units is also deprecated in 7.2, so if there are currently no units it should append "ms".

Same in the other places in this file.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed in 105d2ea

},
aggregations: {
[formConfig.timeField]: {
Expand All @@ -237,7 +237,7 @@ export function SingleMetricJobServiceProvider() {
buckets: {
date_histogram: {
field: formConfig.timeField,
interval: ((interval / 100) * 10) // use 10% of bucketSpan to allow for better sampling
fixed_interval: ((interval / 100) * 10) // use 10% of bucketSpan to allow for better sampling
},
aggregations: {
[dtr.field_name]: {
Expand All @@ -261,7 +261,7 @@ export function SingleMetricJobServiceProvider() {
buckets: {
date_histogram: {
field: formConfig.timeField,
interval: interval
fixed_interval: interval
},
aggregations: {
[formConfig.timeField]: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"buckets": {
"date_histogram": {
"field": "@timestamp",
"interval": 900000,
"fixed_interval": 900000,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"15m" would be nicer.

Same in the other 3 modules.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed in 105d2ea

"offset": 0,
"order": {
"_key": "asc"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"buckets": {
"date_histogram": {
"field": "@timestamp",
"interval": 900000,
"fixed_interval": 900000,
"offset": 0,
"order": {
"_key": "asc"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"buckets": {
"date_histogram": {
"field": "@timestamp",
"interval": 900000,
"fixed_interval": 900000,
"offset": 0,
"order": {
"_key": "asc"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"buckets": {
"date_histogram": {
"field": "@timestamp",
"interval": 900000,
"fixed_interval": 900000,
"offset": 0,
"order": {
"_key": "asc"
Expand Down