X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=examples%2Fpolicies%2Fnst_policies%2Fattribute_policy_nst.json;fp=examples%2Fpolicies%2Fnst_policies%2Fattribute_policy_nst.json;h=da2e5fe1df778d91b4767eed36c074a5895e7fdc;hb=93997d04f30539b8947f3084d2397b34d9d75e27;hp=0000000000000000000000000000000000000000;hpb=a578dbb1e5ce1afd1fccbff42048eb320cd69e20;p=optf%2Fosdf.git 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" + } +} + ] + } +}