From 168a34352bfa376e7842a752bfb4e1c346bb070a Mon Sep 17 00:00:00 2001 From: Christophe Varoqui Date: Sun, 24 Nov 2019 10:55:45 +0100 Subject: [PATCH] Tweak the POST /objet_monitor handler doc --- lib/handlerPostObjectMonitor.py | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/lib/handlerPostObjectMonitor.py b/lib/handlerPostObjectMonitor.py index 94b9c7527b..4c6bb31d9d 100644 --- a/lib/handlerPostObjectMonitor.py +++ b/lib/handlerPostObjectMonitor.py @@ -9,6 +9,7 @@ class Handler(handler.Handler): """ Set or unset properties of an object instance monitor. + These properties are used by the monitor in the orchestration policies and object management by target state. """ routes = ( ("POST", "object_monitor"), @@ -23,13 +24,18 @@ class Handler(handler.Handler): }, { "name": "local_expect", - "desc": "The expected object instance state on node.", + "desc": "The expected object instance state on node. If 'started', the resource restart orchestration is active. A 'avail up' instance has local_expect set to 'started' automatically.", "required": False, + "candidates": [ + "started", + "unset", + ], "format": "string", + "strict_candidates": False, }, { "name": "global_expect", - "desc": "The expected object state clusterwide.", + "desc": "The expected object state clusterwide. This is the property used for object target state orchestration.", "required": False, "format": "string", "candidates": [ @@ -48,10 +54,11 @@ class Handler(handler.Handler): "scaled", "unset", ], + "strict_candidates": False, }, { "name": "status", - "desc": "The current object instance state on node.", + "desc": "The current object instance monitor state on node. This is where the current running action, the last action failures are stored. The normal state is 'idle'.", "required": False, "format": "string", },