Make Network Slicing usecase more user friendly
[demo.git] / tutorials / 5GE2ENetworkSlicing / common / policies / nsi_policies / optimization_nsi_create_new.json
1 {
2     "maximizeCost_{{ service_name }}": {
3         "metadata": {
4             "policy-id": "maximizeCost_{{ service_name }}",
5             "policy-version": 1
6         },
7         "properties": {
8             "geography": [],
9             "identity": "optimization",
10             "goal": "maximize",
11             "operation_function": {
12                 "operator": "sum",
13                 "operands": [
14                     {
15                         "function": "attribute",
16                         "params": {
17                             "attribute": "creation_cost",
18                             "demand": "{{ service_name }}"
19                         }
20                     }
21                 ]
22             },
23             "resources": [
24                 "{{ service_name }}"
25             ],
26             "scope": [
27                 "shared,create_new"
28             ],
29             "services": [
30                 "{{ service_name }}"
31             ]
32         },
33         "type": "onap.policies.optimization.resource.OptimizationPolicy",
34         "type_version": "2.0.0",
35         "version": "1.0.0"
36     }
37 }