diff --git a/x-pack/plugins/infra/server/lib/metrics/constants.ts b/x-pack/plugins/infra/server/lib/metrics/constants.ts index 590eaf5605c7..dcff96ed155d 100644 --- a/x-pack/plugins/infra/server/lib/metrics/constants.ts +++ b/x-pack/plugins/infra/server/lib/metrics/constants.ts @@ -4,13 +4,6 @@ * you may not use this file except in compliance with the Elastic License. */ export const EMPTY_RESPONSE = { - series: [ - { - id: '*', - keys: ['*'], - columns: [], - rows: [], - }, - ], + series: [], info: { total: 0, afterKey: null, interval: 0 }, }; diff --git a/x-pack/test/api_integration/apis/metrics_ui/metrics_explorer.ts b/x-pack/test/api_integration/apis/metrics_ui/metrics_explorer.ts index 16809fba8c8d..bd10a854d006 100644 --- a/x-pack/test/api_integration/apis/metrics_ui/metrics_explorer.ts +++ b/x-pack/test/api_integration/apis/metrics_ui/metrics_explorer.ts @@ -239,13 +239,7 @@ export default function ({ getService }: FtrProviderContext) { .send(postBody) .expect(200); const body = decodeOrThrow(metricsExplorerResponseRT)(response.body); - expect(body.series).length(1); - expect(body.series[0]!).to.have.property('rows'); - expect(body.series[0]!.rows).length(0); - expect(body.pageInfo).to.eql({ - afterKey: null, - total: 0, - }); + expect(body.series).length(0); }); it('should work when there is no data with groupBy', async () => { const postBody = {