mirror of
https://github.com/elastic/kibana.git
synced 2025-04-25 10:23:14 -04:00
apply prettier styles
This commit is contained in:
parent
64ad4f3f92
commit
bf04235dae
7130 changed files with 31393 additions and 37163 deletions
|
@ -10,7 +10,7 @@ import { IIndexPattern } from '../../../../../../src/plugins/data/common';
|
|||
import { APMConfig } from '../..';
|
||||
import {
|
||||
getApmIndices,
|
||||
ApmIndicesConfig
|
||||
ApmIndicesConfig,
|
||||
} from '../settings/apm_indices/get_apm_indices';
|
||||
import { ESFilter } from '../../../typings/elasticsearch';
|
||||
import { ESClient } from './es_client';
|
||||
|
@ -76,13 +76,13 @@ export async function setupRequest<TParams extends SetupRequestParams>(
|
|||
|
||||
const indices = await getApmIndices({
|
||||
savedObjectsClient: context.core.savedObjects.client,
|
||||
config
|
||||
config,
|
||||
});
|
||||
|
||||
const dynamicIndexPattern = await getDynamicIndexPattern({
|
||||
context,
|
||||
indices,
|
||||
processorEvent: query.processorEvent
|
||||
processorEvent: query.processorEvent,
|
||||
});
|
||||
|
||||
const uiFiltersES = decodeUiFilters(dynamicIndexPattern, query.uiFilters);
|
||||
|
@ -91,16 +91,16 @@ export async function setupRequest<TParams extends SetupRequestParams>(
|
|||
indices,
|
||||
client: getESClient(context, request, { clientAsInternalUser: false }),
|
||||
internalClient: getESClient(context, request, {
|
||||
clientAsInternalUser: true
|
||||
clientAsInternalUser: true,
|
||||
}),
|
||||
config,
|
||||
dynamicIndexPattern
|
||||
dynamicIndexPattern,
|
||||
};
|
||||
|
||||
return {
|
||||
...('start' in query ? { start: moment.utc(query.start).valueOf() } : {}),
|
||||
...('end' in query ? { end: moment.utc(query.end).valueOf() } : {}),
|
||||
...('uiFilters' in query ? { uiFiltersES } : {}),
|
||||
...coreSetupRequest
|
||||
...coreSetupRequest,
|
||||
} as InferSetup<TParams>;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue