summaryrefslogtreecommitdiffstats
path: root/dpo/tosca_models
diff options
context:
space:
mode:
authorVidyashree Rama <vidyashree.rama@huawei.com>2019-08-05 10:13:16 +0530
committerVidyashree Rama <vidyashree.rama@huawei.com>2019-08-13 16:38:17 +0530
commit39702ee1cc74842ec7228ebd7dda86eb6116db94 (patch)
tree03b91874a6298501f042c6ca1339e252fcebefed /dpo/tosca_models
parent33616b4b657a305b03e95fc649c5247e0aa5b28d (diff)
RestConf - Policy model support
Adding policy model for restconf collector Change-Id: I6e8c8a3d5211436bb464dc725c828269ff2aa431 Issue-ID: DCAEGEN2-1584 Signed-off-by: Vidyashree Rama <vidyashree.rama@huawei.com>
Diffstat (limited to 'dpo/tosca_models')
-rw-r--r--dpo/tosca_models/policy.yaml120
1 files changed, 120 insertions, 0 deletions
diff --git a/dpo/tosca_models/policy.yaml b/dpo/tosca_models/policy.yaml
new file mode 100644
index 0000000..474ec4f
--- /dev/null
+++ b/dpo/tosca_models/policy.yaml
@@ -0,0 +1,120 @@
+data_types:
+ onap.datatypes.monitoring.rcc_policy:
+ derived_from: tosca.datatypes.Root
+ properties:
+ controller_name:
+ type: string
+ description: Name of controller
+ required: true
+ controller_restapiUrl:
+ type: string
+ description: Controller's ip and port
+ required: true
+ controller_restapiUser:
+ type: string
+ description: Controller's username
+ required: true
+ controller_restapiPassword:
+ type: string
+ description: Controller's password
+ required: true
+ controller_accessTokenUrl:
+ type: string
+ description: URL to get access token
+ required: true
+ controller_accessTokenFile:
+ type: string
+ description: Access token file path
+ required: true
+ controller_accessTokenMethod:
+ type: string
+ description: Access token method POST/GET/PUT etc
+ required: true
+ constraints:
+ - valid_values: [ post, get, put]
+ controller_subsMethod:
+ type: string
+ description: Subscription method POST/GET/PUT etc
+ required: true
+ default: post
+ constraints:
+ - valid_values: [ post, get, put]
+ controller_subscriptionUrl:
+ type: string
+ description: URL to establish subscription
+ required: true
+ controller_disableSsl:
+ type: boolean
+ description: Option to disable ssl
+ required: true
+ default: true
+ event_details:
+ type: list
+ description: event details
+ required: true
+ entry_schema:
+ type : onap.datatypes.monitoring.rcc_event_details
+
+ onap.datatypes.monitoring.rcc_event_details:
+ derived_from: tosca.datatypes.Root
+ properties:
+ event_name:
+ type: string
+ description: event name
+ required: true
+ event_description:
+ type: string
+ description: description of event
+ required: false
+ event_sseventUrlEmbed:
+ type: boolean
+ description: Whether SSE url is embedded in subscription response
+ required: true
+ default: true
+ event_sseventsField:
+ type: string
+ description: Field name to access SSE url in subscription response
+ required: true
+ event_sseventsUrl:
+ type: string
+ description: Explicit SSE url
+ required: true
+ event_subscriptionTemplate:
+ type: string
+ description: Subscription template file path
+ required: true
+ event_unSubscriptionTemplate:
+ type: string
+ description: Unsubscription template file path
+ required: false
+ event_ruleId:
+ type: integer
+ description: Rule Id
+ required: false
+ modifyData:
+ type: boolean
+ description: Whether to modify the received SSE event
+ required: true
+ default: false
+ modifyMethod:
+ type: string
+ description: The java method name to modify data
+ required: false
+ userData:
+ type: string
+ description: The user specific data
+ required: false
+
+policy_types:
+ onap.policies.Monitoring:
+ derived_from: tosca.policies.Root
+ description: A base policy type for all policies that governs monitoring provisioning
+ onap.policy.monitoring.dcae-restconfcollector:
+ derived_from: onap.policies.Monitoring
+ version: 1.0.0
+ properties:
+ rcc_policy:
+ type: list
+ description: RCC Policy JSON
+ entry_schema:
+ type: onap.datatypes.monitoring.rcc_policy