Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagetext
titleThreshold Policy Model
collapsetrue
{
   "tosca_definitions_version":"tosca_simple_yaml_1_0_0",
   "policy_types":{
      "onap.policies.Optimization":{
         "derived_from":"tosca.policies.Root",
         "version":"1.0.0",
         "description":"a base policy type for all policies that govern optimization"
      },
      "onap.policies.optimization.ThresholdPolicy":{
         "derived_from":"onap.policies.Optimization",
         "properties":{
            "scope":{
               "type":"list",
               "description":"scope where the policy is applicable",
               "required":true,
               "matchable":true,
               "entry_schema":{
                  "type":"string"
               }
            },
            "policyType":{
               "type":"list",
               "description":"type of a policy",
               "required":true,
               "matchable":true,
               "entry_schema":{
                  "type":"string",
                  "consraints":[
                     {
                        "valid_values":[
                           "thresholdPolicy"
                        ]
                     }
                  ]
               }
            },
            "identity":{
               "type":"string",
               "required":true
            },
            "resources":{
               "type":"list",
               "required":true,
               "entry_schema":{
                  "type":"string"
               }
            },
            "thresholdProperties":{
               "type":"list",
               "required":true,
               "entry_schema":{
				   "type":"policy.data.thresholdProperties_properties"
				}
            }
         }
      }
   },
   "data_types":{
      "policy.data.thresholdProperties_properties":{
         "derived_from":"tosca.nodes.Root",
         "properties":{
            "attribute":{
               "type":"string",
               "required":true
            },
            "operator":{
               "type":"string",
               "required":true
            },
            "threshold":{
               "type":"float",
               "required":true
            },
            "unit":{
               "type":"string",
               "required":false
            }
         }
      }
   }
}

...