Skip to content

Instantly share code, notes, and snippets.

Created July 19, 2016 14:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/790feba7f403d2afea7aa2bbb60d1d5e to your computer and use it in GitHub Desktop.
Save anonymous/790feba7f403d2afea7aa2bbb60d1d5e to your computer and use it in GitHub Desktop.
Watch history and pre-vs-post-delete diff
"watch_history" : {
"order" : 2147483647,
"template" : ".watch_history*",
"settings" : {
"index" : {
"mapper" : {
"dynamic" : "false"
},
"number_of_shards" : "1"
}
},
"mappings" : {
"watch_record" : {
"dynamic" : "strict",
"dynamic_templates" : [ {
"disabled_payload_fields" : {
"mapping" : {
"enabled" : false,
"type" : "object"
},
"match_pattern" : "regex",
"path_match" : "execution_result\\.((input\\..+)|(actions\\.transform\\..+)|(transform\\..+))\\.payload"
}
}, {
"disabled_search_request_body_fields" : {
"mapping" : {
"enabled" : false,
"type" : "object"
},
"match_pattern" : "regex",
"path_match" : "execution_result\\.((input)|(actions\\.transform.*)|(transform.*))\\.search\\.request\\.(body|template)"
}
} ],
"properties" : {
"message" : {
"type" : "string"
},
"trigger_event" : {
"dynamic" : true,
"properties" : {
"schedule" : {
"dynamic" : true,
"properties" : {
"triggered_time" : {
"type" : "date"
},
"scheduled_time" : {
"type" : "date"
}
},
"type" : "object"
}
},
"type" : "object"
},
"input" : {
"enabled" : false,
"type" : "object"
},
"execution_result" : {
"dynamic" : true,
"properties" : {
"transform" : {
"dynamic" : true,
"properties" : {
"search" : {
"dynamic" : true,
"properties" : {
"indices" : {
"index" : "not_analyzed",
"type" : "string"
},
"types" : {
"index" : "not_analyzed",
"type" : "string"
}
},
"type" : "object"
}
},
"type" : "object"
},
"input" : {
"dynamic" : true,
"properties" : {
"http" : {
"dynamic" : true,
"properties" : {
"request" : {
"dynamic" : true,
"properties" : {
"host" : {
"index" : "not_analyzed",
"type" : "string"
},
"path" : {
"index" : "not_analyzed",
"type" : "string"
}
},
"type" : "object"
}
},
"type" : "object"
},
"search" : {
"dynamic" : true,
"properties" : {
"request" : {
"dynamic" : true,
"properties" : {
"indices" : {
"index" : "not_analyzed",
"type" : "string"
},
"types" : {
"index" : "not_analyzed",
"type" : "string"
},
"search_type" : {
"index" : "not_analyzed",
"type" : "string"
}
},
"type" : "object"
}
},
"type" : "object"
}
},
"type" : "object"
},
"condition" : {
"dynamic" : true,
"properties" : {
"never" : {
"enabled" : false,
"type" : "object"
},
"compare" : {
"enabled" : false,
"type" : "object"
},
"always" : {
"enabled" : false,
"type" : "object"
},
"script" : {
"enabled" : false,
"type" : "object"
}
},
"type" : "object"
},
"execution_time" : {
"type" : "date"
},
"actions" : {
"dynamic" : true,
"include_in_parent" : true,
"properties" : {
"index" : {
"dynamic" : true,
"properties" : {
"response" : {
"dynamic" : true,
"properties" : {
"id" : {
"index" : "not_analyzed",
"type" : "string"
},
"index" : {
"index" : "not_analyzed",
"type" : "string"
},
"type" : {
"index" : "not_analyzed",
"type" : "string"
}
},
"type" : "object"
}
},
"type" : "object"
},
"email" : {
"dynamic" : true,
"properties" : {
"email" : {
"dynamic" : true,
"properties" : {
"to" : {
"index" : "not_analyzed",
"type" : "string"
},
"id" : {
"index" : "not_analyzed",
"type" : "string"
},
"reply_to" : {
"index" : "not_analyzed",
"type" : "string"
},
"bcc" : {
"index" : "not_analyzed",
"type" : "string"
},
"from" : {
"index" : "not_analyzed",
"type" : "string"
},
"cc" : {
"index" : "not_analyzed",
"type" : "string"
}
},
"type" : "object"
}
},
"type" : "object"
},
"webhook" : {
"dynamic" : true,
"properties" : {
"request" : {
"dynamic" : true,
"properties" : {
"host" : {
"index" : "not_analyzed",
"type" : "string"
},
"path" : {
"index" : "not_analyzed",
"type" : "string"
}
},
"type" : "object"
}
},
"type" : "object"
}
},
"type" : "nested"
}
},
"type" : "object"
},
"condition" : {
"enabled" : false,
"type" : "object"
},
"state" : {
"index" : "not_analyzed",
"type" : "string"
},
"watch_id" : {
"index" : "not_analyzed",
"type" : "string"
},
"metadata" : {
"dynamic" : true,
"type" : "object"
}
},
"_all" : {
"enabled" : false
}
}
},
"aliases" : { }
},
70c70
< "path_match" : "execution_result\\.((input\\..+)|(actions\\.transform\\..+)|(transform\\..+))\\.payload"
---
> "path_match" : "result\\.(input|(transform(\\..+)*)|(actions\\.transform(\\..+)*))\\.payload"
79c79
< "path_match" : "execution_result\\.((input)|(actions\\.transform.*)|(transform.*))\\.search\\.request\\.(body|template)"
---
> "path_match" : "result\\.(input|(transform(\\..+)*)|(actions\\.transform(\\..+)*))\\.search\\.request\\.(body|template)"
83,85d82
< "message" : {
< "type" : "string"
< },
88a86,103
> "manual" : {
> "dynamic" : true,
> "properties" : {
> "schedule" : {
> "dynamic" : true,
> "properties" : {
> "scheduled_time" : {
> "type" : "date"
> }
> },
> "type" : "object"
> }
> },
> "type" : "object"
> },
> "triggered_time" : {
> "type" : "date"
> },
92,94d106
< "triggered_time" : {
< "type" : "date"
< },
99a112,115
> },
> "type" : {
> "index" : "not_analyzed",
> "type" : "string"
104,108c120
< "input" : {
< "enabled" : false,
< "type" : "object"
< },
< "execution_result" : {
---
> "result" : {
117,123c129,141
< "indices" : {
< "index" : "not_analyzed",
< "type" : "string"
< },
< "types" : {
< "index" : "not_analyzed",
< "type" : "string"
---
> "request" : {
> "dynamic" : true,
> "properties" : {
> "indices" : {
> "index" : "not_analyzed",
> "type" : "string"
> },
> "types" : {
> "index" : "not_analyzed",
> "type" : "string"
> }
> },
> "type" : "object"
126a145,148
> },
> "type" : {
> "index" : "not_analyzed",
> "type" : "string"
176a199,210
> },
> "status" : {
> "index" : "not_analyzed",
> "type" : "string"
> },
> "payload" : {
> "enabled" : false,
> "type" : "object"
> },
> "type" : {
> "index" : "not_analyzed",
> "type" : "string"
184,186c218,223
< "never" : {
< "enabled" : false,
< "type" : "object"
---
> "met" : {
> "type" : "boolean"
> },
> "status" : {
> "index" : "not_analyzed",
> "type" : "string"
192c229
< "always" : {
---
> "script" : {
196c233,237
< "script" : {
---
> "type" : {
> "index" : "not_analyzed",
> "type" : "string"
> },
> "array_compare" : {
205a247,249
> "execution_duration" : {
> "type" : "long"
> },
209a254,257
> "id" : {
> "index" : "not_analyzed",
> "type" : "string"
> },
237c285
< "email" : {
---
> "message" : {
269a318,325
> "reason" : {
> "index" : "analyzed",
> "type" : "string"
> },
> "status" : {
> "index" : "not_analyzed",
> "type" : "string"
> },
288a345,474
> },
> "type" : {
> "index" : "not_analyzed",
> "type" : "string"
> },
> "slack" : {
> "dynamic" : true,
> "properties" : {
> "sent_messages" : {
> "dynamic" : true,
> "include_in_parent" : true,
> "properties" : {
> "message" : {
> "dynamic" : true,
> "properties" : {
> "icon" : {
> "index" : "not_analyzed",
> "type" : "string"
> },
> "text" : {
> "type" : "string"
> },
> "attachments" : {
> "dynamic" : true,
> "include_in_parent" : true,
> "properties" : {
> "color" : {
> "index" : "not_analyzed",
> "type" : "string"
> }
> },
> "type" : "nested"
> },
> "from" : {
> "type" : "string"
> }
> },
> "type" : "object"
> },
> "to" : {
> "index" : "not_analyzed",
> "type" : "string"
> },
> "response" : {
> "enabled" : false,
> "type" : "object"
> },
> "reason" : {
> "type" : "string"
> },
> "status" : {
> "index" : "not_analyzed",
> "type" : "string"
> },
> "request" : {
> "enabled" : false,
> "type" : "object"
> }
> },
> "type" : "nested"
> },
> "account" : {
> "index" : "not_analyzed",
> "type" : "string"
> }
> },
> "type" : "object"
> },
> "hipchat" : {
> "dynamic" : true,
> "properties" : {
> "sent_messages" : {
> "dynamic" : true,
> "include_in_parent" : true,
> "properties" : {
> "message" : {
> "dynamic" : true,
> "properties" : {
> "message" : {
> "type" : "string"
> },
> "message_format" : {
> "index" : "not_analyzed",
> "type" : "string"
> },
> "color" : {
> "index" : "not_analyzed",
> "type" : "string"
> },
> "notify" : {
> "type" : "boolean"
> },
> "from" : {
> "type" : "string"
> }
> },
> "type" : "object"
> },
> "response" : {
> "enabled" : false,
> "type" : "object"
> },
> "reason" : {
> "type" : "string"
> },
> "status" : {
> "index" : "not_analyzed",
> "type" : "string"
> },
> "request" : {
> "enabled" : false,
> "type" : "object"
> },
> "user" : {
> "index" : "not_analyzed",
> "type" : "string"
> },
> "room" : {
> "index" : "not_analyzed",
> "type" : "string"
> }
> },
> "type" : "nested"
> },
> "account" : {
> "index" : "not_analyzed",
> "type" : "string"
> }
> },
> "type" : "object"
295a482,489
> "vars" : {
> "enabled" : false,
> "type" : "object"
> },
> "input" : {
> "enabled" : false,
> "type" : "object"
> },
307a502,504
> "messages" : {
> "type" : "string"
> },
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment