[Task Manager] Provide "include_type_name: true" in put template (#30261)
* [Task Manager] Provide "include_type_name: true" in put template * fix for 7.0+
This commit is contained in:
parent
9ce8a7d131
commit
3bca5c03fc
|
@ -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
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue