mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
* [Task Manager] Provide "include_type_name: true" in put template * fix for 7.0+
This commit is contained in:
parent
729ccf40df
commit
dcd0179ad1
1 changed files with 21 additions and 25 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue