Skip to content

Commit e71b0f2

Browse files
author
spalger
committed
[aggConfig] restore use of @timestamp
1 parent 0e11c22 commit e71b0f2

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

src/ui/public/agg_response/tabify/__tests__/_response_writer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ describe('ResponseWriter class', function () {
5151

5252
it('collects the aggConfigs from each column in aggStack', function () {
5353
let aggs = [
54-
{ type: 'date_histogram', schema: 'segment', params: { field: 'time' } },
54+
{ type: 'date_histogram', schema: 'segment', params: { field: '@timestamp' } },
5555
{ type: 'terms', schema: 'segment', params: { field: 'extension' } },
5656
{ type: 'avg', schema: 'metric', params: { field: 'bytes' } }
5757
];

src/ui/public/vis/__tests__/_agg_config.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ describe('AggConfig', function () {
197197
{
198198
type: 'count',
199199
schema: 'metric',
200-
params: {field: 'time'}
200+
params: {field: '@timestamp'}
201201
}
202202
]
203203
}, {
@@ -295,7 +295,7 @@ describe('AggConfig', function () {
295295
{
296296
type: 'count',
297297
schema: 'metric',
298-
params: {field: 'time'}
298+
params: {field: '@timestamp'}
299299
}
300300
]
301301
},
@@ -305,7 +305,7 @@ describe('AggConfig', function () {
305305
{
306306
type: 'count',
307307
schema: 'metric',
308-
params: {field: 'time'}
308+
params: {field: '@timestamp'}
309309
},
310310
{
311311
type: 'date_histogram',
@@ -421,7 +421,7 @@ describe('AggConfig', function () {
421421
{
422422
type: 'date_histogram',
423423
schema: 'segment',
424-
params: { field: 'time' }
424+
params: { field: '@timestamp' }
425425
}
426426
]
427427
});
@@ -433,7 +433,7 @@ describe('AggConfig', function () {
433433
{
434434
type: 'count',
435435
schema: 'metric',
436-
params: { field: 'time' }
436+
params: { field: '@timestamp' }
437437
}
438438
]
439439
});
@@ -447,7 +447,7 @@ describe('AggConfig', function () {
447447
{
448448
type: 'date_histogram',
449449
schema: 'segment',
450-
params: { field: 'time' }
450+
params: { field: '@timestamp' }
451451
}
452452
]
453453
});
@@ -464,7 +464,7 @@ describe('AggConfig', function () {
464464
{
465465
type: 'date_histogram',
466466
schema: 'segment',
467-
params: { field: 'time' }
467+
params: { field: '@timestamp' }
468468
}
469469
]
470470
});

0 commit comments

Comments
 (0)