X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=docs%2Fplatform%2Fguardpolicy.rst;h=2b44c468bfc9ad07690573e3ea0c6ac236232cfa;hb=e957a1d9a9fa6bd0f9f8348d1e864c09cfe2cb92;hp=6c72ce6d4da78e1bd17beef9eea37e6029da947e;hpb=c25e4d412eb573de020ba4e5da48f48451217f52;p=policy%2Fengine.git diff --git a/docs/platform/guardpolicy.rst b/docs/platform/guardpolicy.rst index 6c72ce6d4..2b44c468b 100644 --- a/docs/platform/guardpolicy.rst +++ b/docs/platform/guardpolicy.rst @@ -66,6 +66,32 @@ The request should be in the following form for the regular guard policy: } } +The request should be in the following form for the Min/Max guard policy: + +.. code-block:: json + :caption: Min/Max Guard Policy Creation + :linenos: + + { + "policyClass": "Decision", + "policyName": "Test.TestingGUARDMinMaxtest", + "policyDescription": "Testing new Min/Max Guard Policy", + "onapName": "PDPD", + "ruleProvider": "GUARD_MIN_MAX", + "attributes": { + "MATCHING": { + "actor": "SO", + "recipe": "scaleOut", + "targets" : ".*", + "clname" : "test", + "min": "1", + "max": "5", + "guardActiveStart": "05:00:00-05:00", + "guardActiveEnd": "23:59:59-05:00" + } + } + } + The request should be in the following form for blacklist guard policy: .. code-block:: json @@ -117,7 +143,8 @@ The guard_request.json should be in the form of the following: "actor": "APPC", "recipe": "Restart", "target": "test13", - "clname" : "piptest" + "clname" : "piptest", + "vfCount" : "4" }, "onapName": "PDPD" }