summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--dpo/spec/pmmapper-component-spec.json10
-rw-r--r--dpo/tosca_models/policy.yaml10
2 files changed, 17 insertions, 3 deletions
diff --git a/dpo/spec/pmmapper-component-spec.json b/dpo/spec/pmmapper-component-spec.json
index 53dbd8c..d88c71c 100644
--- a/dpo/spec/pmmapper-component-spec.json
+++ b/dpo/spec/pmmapper-component-spec.json
@@ -137,9 +137,15 @@
"description": "PM mapper filter on measInfo, measInfoId, measType, instanceId",
"designer_editable": true,
"sourced_at_deployment": false,
- "policy_editable": true,
"type": "string",
- "required": true
+ "required": true,
+ "policy_editable": true,
+ "policy_schema": [{
+ "name": "filter configuration",
+ "description": "Filter configuration needs to be applied",
+ "type": "string",
+ "value": ""
+ }]
}
]
} \ No newline at end of file
diff --git a/dpo/tosca_models/policy.yaml b/dpo/tosca_models/policy.yaml
index 349d7f5..8b7f370 100644
--- a/dpo/tosca_models/policy.yaml
+++ b/dpo/tosca_models/policy.yaml
@@ -1,3 +1,10 @@
+data_types:
+ onap.datatypes.monitoring.pm-mapper-filter:
+ properties:
+ filter configuration:
+ type: string
+ description: Filter configuration needs to be applied
+
policy_types:
onap.policies.Monitoring:
derived_from: tosca.policies.Root
@@ -21,4 +28,5 @@ policy_types:
pm-mapper-filter:
type: string
description: PM mapper filter on measInfo, measInfoId, measType, instanceId
-
+ entry_schema:
+ type: onap.datatypes.monitoring.pm-mapper-filter \ No newline at end of file