summaryrefslogtreecommitdiffstats
path: root/examples/policies/nst_policies/attribute_policy_nst.json
diff options
context:
space:
mode:
Diffstat (limited to 'examples/policies/nst_policies/attribute_policy_nst.json')
-rw-r--r--examples/policies/nst_policies/attribute_policy_nst.json41
1 files changed, 41 insertions, 0 deletions
diff --git a/examples/policies/nst_policies/attribute_policy_nst.json b/examples/policies/nst_policies/attribute_policy_nst.json
new file mode 100644
index 0000000..da2e5fe
--- /dev/null
+++ b/examples/policies/nst_policies/attribute_policy_nst.json
@@ -0,0 +1,41 @@
+{
+ "tosca_definitions_version": "tosca_simple_yaml_1_1_0",
+ "topology_template": {
+ "policies": [
+{
+ "Threshold_nst": {
+ "metadata": {
+ "policy-id": "Threshold_nst",
+ "policy-version": 1
+ },
+ "properties": {
+ "geography": [],
+ "identity": "nst_Threshold",
+ "resources": [
+ "nst"
+ ],
+ "scope": [
+ "OSDF_GUILIN"
+ ],
+ "services": [
+ "nst"
+ ],
+ "thresholdProperties": [
+ {
+ "attribute": "latency",
+ "operator": "lte",
+ "threshold": {
+ "get_param": "latency"
+ },
+ "unit": "ms"
+ }
+ ]
+ },
+ "type": "onap.policies.optimization.resource.ThresholdPolicy",
+ "type_version": "1.0.0",
+ "version": "1.0.0"
+ }
+}
+ ]
+ }
+}