summaryrefslogtreecommitdiffstats
path: root/docs/sections/homingspecification.rst
diff options
context:
space:
mode:
authorkrishnaa96 <krishna.moorthy6@wipro.com>2020-05-22 10:32:52 +0530
committerkrishnaa96 <krishna.moorthy6@wipro.com>2020-05-22 15:28:42 +0530
commite15f32576c64949426786eec4291cf799fbf4aec (patch)
tree72b08ab56340eda3ca7f8d6b412151573d9f3f6c /docs/sections/homingspecification.rst
parentab28a63248264004540804d223ea0f50b66a632c (diff)
Add documentation related to slicing
Issue-ID: OPTFRA-759 Signed-off-by: krishnaa96 <krishna.moorthy6@wipro.com> Change-Id: I56d32a585c702b1a88e8f91e691ece44c7162d6b
Diffstat (limited to 'docs/sections/homingspecification.rst')
-rw-r--r--docs/sections/homingspecification.rst47
1 files changed, 47 insertions, 0 deletions
diff --git a/docs/sections/homingspecification.rst b/docs/sections/homingspecification.rst
index 8684ffa..855e0ba 100644
--- a/docs/sections/homingspecification.rst
+++ b/docs/sections/homingspecification.rst
@@ -191,6 +191,7 @@ a *placemark*).
+-----------------------------------+----------------------------------+
**Note:**
+
- A geocoder could be used to convert placemarks to a
latitude/longitude
@@ -923,6 +924,10 @@ Constraint Types
| | specific |
| | location/address. |
+-------------------------------------------+--------------------------+
+| ``threshold`` | Constraint that checks if|
+| | an attribute is within |
+| | the threshold. |
++-------------------------------------------+--------------------------+
*Note: Constraint names marked “Deferred” **will not** be supported in
the current release of HAS.*
@@ -1918,6 +1923,48 @@ environment.
template: http://repository/my/stack_template
environment: http://repository/my/stack_environment
+Threshold
+~~~~~~~~~
+
+Constrain each demand by an attribute which is within a certain
+threshold.
+
+**Schema**
+
++---------------+--------------------------------------------------------+
+| Property | Value |
++===============+========================================================+
+| ``evaluate`` | List of attributes and its threshold |
++---------------+--------------------------------------------------------+
+
++-------------------------+------------------------------------------+
+| Property for evaluation | Value |
++=========================+==========================================+
+| ``attribute`` | Attribute of a candidate |
++-------------------------+------------------------------------------+
+| ``threshold`` | Threshold Value |
++-------------------------+------------------------------------------+
+| ``operator`` | Condition to check. Supported Values are |
+| | ``gte``, ``lte``, ``lt``, ``gt``, ``eq`` |
++-------------------------+------------------------------------------+
+| ``unit`` (optional) | Attribute's unit of measurement |
++-------------------------+------------------------------------------+
+
+.. code:: yaml
+
+ urllc_threshold:
+ type: threshold
+ demands: ['URLLC']
+ properties:
+ evaluate:
+ - attribute: latency
+ operator: lte
+ threshold: 50
+ unit: ms
+ - attribute: reliability
+ operator: gte
+ threshold: 99.99
+
**Note:**
- The status of the constraint support is of Frankfurt release.