[APM] Migrate deprecated date_histogram parameter (#39886) (#40521)

* [APM] Migrate deprecated date_histogram parameter

Closes #39584.

Replaces 'interval' with 'fixed_interval'

* Update snapshot
This commit is contained in:
Dario Gieselaar 2019-07-08 20:19:29 +02:00 committed by GitHub
parent 31907a6ef6
commit 306b47c42a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 8 additions and 8 deletions

View file

@ -12,7 +12,7 @@ export function getMetricsDateHistogramParams(start: number, end: number) {
field: '@timestamp',
// ensure minimum bucket size of 30s since this is the default resolution for metric data
interval: `${Math.max(bucketSize, 30)}s`,
fixed_interval: `${Math.max(bucketSize, 30)}s`,
min_doc_count: 0,
extended_bounds: { min: start, max: end }

View file

@ -30,7 +30,7 @@ Array [
"min": 90000,
},
"field": "timestamp",
"interval": "myInterval",
"fixed_interval": "myInterval",
"min_doc_count": 0,
},
},

View file

@ -56,7 +56,7 @@ export async function anomalySeriesFetcher({
ml_avg_response_times: {
date_histogram: {
field: 'timestamp',
interval: intervalString,
fixed_interval: intervalString,
min_doc_count: 0,
extended_bounds: {
min: newStart,

View file

@ -34,7 +34,7 @@ Array [
"min": 1528113600000,
},
"field": "@timestamp",
"interval": "10800s",
"fixed_interval": "10800s",
"min_doc_count": 0,
},
},
@ -47,7 +47,7 @@ Array [
"min": 1528113600000,
},
"field": "@timestamp",
"interval": "10800s",
"fixed_interval": "10800s",
"min_doc_count": 0,
},
},

View file

@ -58,7 +58,7 @@ export function timeseriesFetcher({
response_times: {
date_histogram: {
field: '@timestamp',
interval: intervalString,
fixed_interval: intervalString,
min_doc_count: 0,
extended_bounds: { min: start, max: end }
},
@ -76,7 +76,7 @@ export function timeseriesFetcher({
timeseries: {
date_histogram: {
field: '@timestamp',
interval: intervalString,
fixed_interval: intervalString,
min_doc_count: 0,
extended_bounds: { min: start, max: end }
}

View file

@ -54,7 +54,7 @@ export function bucketFetcher(
distribution: {
histogram: {
field: TRANSACTION_DURATION,
interval: bucketSize,
fixed_interval: bucketSize,
min_doc_count: 0,
extended_bounds: {
min: 0,