diff --git a/x-pack/plugins/task_manager/task_store.ts b/x-pack/plugins/task_manager/task_store.ts index a6e8c32c3987..dede3c7848bb 100644 --- a/x-pack/plugins/task_manager/task_store.ts +++ b/x-pack/plugins/task_manager/task_store.ts @@ -15,8 +15,6 @@ import { import { Logger } from './lib/logger'; import { ConcreteTaskInstance, ElasticJs, TaskInstance, TaskStatus } from './task'; -const DOC_TYPE = '_doc'; - export interface StoreOpts { callCluster: ElasticJs; getKibanaUuid: () => string; @@ -173,30 +171,28 @@ export class TaskStore { body: { index_patterns: [this.index], mappings: { - [DOC_TYPE]: { - dynamic: false, - properties: { - type: { type: 'keyword' }, - task: { - properties: { - taskType: { type: 'keyword' }, - scheduledAt: { type: 'date' }, - runAt: { type: 'date' }, - interval: { type: 'text' }, - attempts: { type: 'integer' }, - status: { type: 'keyword' }, - params: { type: 'text' }, - state: { type: 'text' }, - user: { type: 'keyword' }, - scope: { type: 'keyword' }, - }, + dynamic: false, + properties: { + type: { type: 'keyword' }, + task: { + properties: { + taskType: { type: 'keyword' }, + scheduledAt: { type: 'date' }, + runAt: { type: 'date' }, + interval: { type: 'text' }, + attempts: { type: 'integer' }, + status: { type: 'keyword' }, + params: { type: 'text' }, + state: { type: 'text' }, + user: { type: 'keyword' }, + scope: { type: 'keyword' }, }, - kibana: { - properties: { - apiVersion: { type: 'integer' }, // 1, 2, 3, etc - uuid: { type: 'keyword' }, // - version: { type: 'integer' }, // 7000099, etc - }, + }, + kibana: { + properties: { + apiVersion: { type: 'integer' }, // 1, 2, 3, etc + uuid: { type: 'keyword' }, // + version: { type: 'integer' }, // 7000099, etc }, }, },