Renamed the status field in the stored watch
was renamed to `_status` so it'll distinct from the other "formal" fields of the watch and also be aligned with the `_status` field that is returned by the Get API. Also updated the installation docs Original commit: elastic/x-pack-elasticsearch@1081b75d13
This commit is contained in:
parent
9cb7232075
commit
39f9f53a0a
|
@ -43,7 +43,7 @@
|
|||
watcher.ack_watch:
|
||||
watch_id: "my_watch"
|
||||
|
||||
- match: { "status.actions.test_index.ack.state" : "awaits_successful_execution" }
|
||||
- match: { "_status.actions.test_index.ack.state" : "awaits_successful_execution" }
|
||||
|
||||
- do:
|
||||
watcher.delete_watch:
|
||||
|
|
|
@ -44,7 +44,7 @@
|
|||
watch_id: "my_watch"
|
||||
action_id: "test_index"
|
||||
|
||||
- match: { "status.actions.test_index.ack.state" : "awaits_successful_execution" }
|
||||
- match: { "_status.actions.test_index.ack.state" : "awaits_successful_execution" }
|
||||
|
||||
- do:
|
||||
watcher.delete_watch:
|
||||
|
|
|
@ -358,6 +358,6 @@ public class Watch implements TriggerEngine.Job, ToXContent {
|
|||
ParseField TRANSFORM = new ParseField("transform");
|
||||
ParseField THROTTLE_PERIOD = new ParseField("throttle_period");
|
||||
ParseField METADATA = new ParseField("metadata");
|
||||
ParseField STATUS = new ParseField("status");
|
||||
ParseField STATUS = new ParseField("_status");
|
||||
}
|
||||
}
|
||||
|
|
|
@ -12,6 +12,11 @@
|
|||
"enabled" : false
|
||||
},
|
||||
"properties": {
|
||||
"_status": {
|
||||
"type": "object",
|
||||
"enabled" : false,
|
||||
"dynamic" : true
|
||||
},
|
||||
"trigger" : {
|
||||
"type": "object",
|
||||
"enabled" : false,
|
||||
|
@ -27,11 +32,6 @@
|
|||
"enabled" : false,
|
||||
"dynamic" : true
|
||||
},
|
||||
"status": {
|
||||
"type": "object",
|
||||
"enabled" : false,
|
||||
"dynamic" : true
|
||||
},
|
||||
"throttle_period": {
|
||||
"type": "string",
|
||||
"index" : "no"
|
||||
|
|
Loading…
Reference in New Issue