Move timeout to _msearch body in TSVB requests (#26510)

* fixing broken tsvb

* removing `ignore: [404]`
This commit is contained in:
Peter Pisljar 2018-12-03 11:28:41 +01:00 committed by Tim Roes
parent a015f031fa
commit 4ddf9c84ab
3 changed files with 9 additions and 12 deletions

View file

@ -39,13 +39,12 @@ export default async (req, panel) => {
bodies.push({ bodies.push({
index: indexPattern, index: indexPattern,
ignore: [404],
timeout: '90s',
requestTimeout: 90000,
ignoreUnavailable: true, ignoreUnavailable: true,
}); });
bodies.push(buildAnnotationRequest(req, panel, annotation)); const body = buildAnnotationRequest(req, panel, annotation);
body.timeout = '90s';
bodies.push(body);
return bodies; return bodies;
}); });

View file

@ -25,12 +25,11 @@ export default (req, panel, series) => {
bodies.push({ bodies.push({
index: indexPattern, index: indexPattern,
ignore: [404],
timeout: '90s',
requestTimeout: 90000,
ignoreUnavailable: true, ignoreUnavailable: true,
}); });
bodies.push(buildRequestBody(req, panel, series)); const body = buildRequestBody(req, panel, series);
body.timeout = '90s';
bodies.push(body);
return bodies; return bodies;
}; };

View file

@ -23,12 +23,11 @@ export default (req, panel, entities) => {
entities.forEach(entity => { entities.forEach(entity => {
bodies.push({ bodies.push({
index: panel.index_pattern, index: panel.index_pattern,
ignore: [404],
timeout: '90s',
requestTimeout: 90000,
ignoreUnavailable: true, ignoreUnavailable: true,
}); });
bodies.push(buildRequestBody(req, panel, entity)); const body = buildRequestBody(req, panel, entity);
body.timeout = '90s';
bodies.push(body);
}); });
return bodies; return bodies;
}; };