-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathsla-template-schema.yml
175 lines (173 loc) · 6.91 KB
/
sla-template-schema.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
## Copyright (c) 2015 SONATA-NFV, 2017 5GTANGO
## ALL RIGHTS RESERVED.
##
## Licensed under the Apache License, Version 2.0 (the "License");
## you may not use this file except in compliance with the License.
## You may obtain a copy of the License at
##
## http://www.apache.org/licenses/LICENSE-2.0
##
## Unless required by applicable law or agreed to in writing, software
## distributed under the License is distributed on an "AS IS" BASIS,
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
## See the License for the specific language governing permissions and
## limitations under the License.
##
## Neither the name of the SONATA-NFV, 5GTANGO
## nor the names of its contributors may be used to endorse or promote
## products derived from this software without specific prior written
## permission.
##
## This work has been performed in the framework of the SONATA project,
## funded by the European Commission under Grant number 671517 through
## the Horizon 2020 and 5G-PPP programmes. The authors would like to
## acknowledge the contributions of their colleagues of the SONATA
## partner consortium (www.sonata-nfv.eu).
##
## This work has been performed in the framework of the 5GTANGO project,
## funded by the European Commission under Grant number 761493 through
## the Horizon 2020 and 5G-PPP programmes. The authors would like to
## acknowledge the contributions of their colleagues of the 5GTANGO
## partner consortium (www.5gtango.eu).
---
"$schema": http://json-schema.org/draft-04/schema#
title: "SLA Descriptor Schema"
version: 0.2
description: "The core schema for SONATA SLA descriptors."
##
## The document description.
##
properties:
descriptor_schema:
"$id": "/properties/descriptor_schema"
type: string
name:
"$id": "/properties/name"
type: string
vendor:
"$id": "/properties/vendor"
type: string
version:
"$id": "/properties/version"
type: string
sla_template:
"$id": "/properties/sla_template"
type: object
properties:
offer_date:
"$id": "/properties/sla_template/properties/offer_date"
type: string
expiration_date:
"$id": "/properties/sla_template/properties/expiration_date"
type: string
template_name:
"$id": "/properties/sla_template/properties/template_name"
type: string
provider_name:
"$id": "/properties/sla_template/properties/provider_name"
type: string
template_initiator:
"$id": "/properties/sla_template/properties/template_initiator"
type: string
service:
"$id": "/properties/sla_template/properties/service"
type: object
properties:
ns_uuid:
"$id": "/properties/sla_template/properties/service/properties/ns_uuid"
type: string
ns_name:
"$id": "/properties/sla_template/properties/service/properties/ns_name"
type: string
ns_vendor:
"$id": "/properties/sla_template/properties/service/properties/ns_vendor"
type: string
ns_version:
"$id": "/properties/sla_template/properties/service/properties/ns_version"
type: string
required:
- ns_uuid
guaranteeTerms:
"$id": "/properties/sla_template/properties/guaranteeTerms"
type: array
items:
"$id": "/properties/sla_template/properties/guaranteeTerms/items"
properties:
guaranteeID:
"$id": "/properties/sla_template/properties/guaranteeTerms/items/guaranteeID"
type: string
guarantee_name:
"$id": "/properties/sla_template/properties/guaranteeTerms/items/guarantee_name"
type: string
guarantee_threshold:
"$id": "/properties/sla_template/properties/guaranteeTerms/items/guarantee_threshold"
type: string
guarantee_operator:
"$id": "/properties/sla_template/properties/guaranteeTerms/items/guarantee_operator"
type: string
guarantee_unit:
"$id": "/properties/sla_template/properties/guaranteeTerms/items/guarantee_unit"
type: string
guarantee_period:
"$id": "/properties/sla_template/properties/guaranteeTerms/items/guarantee_period"
type: string
guarantee_definition:
"$id": "/properties/sla_template/properties/guaranteeTerms/items/guarantee_definition"
type: string
target_slo:
"$id": "/properties/sla_template/properties/guaranteeTerms/items/target_slo"
type: array
items:
"$id": "/properties/sla_template/properties/guaranteeTerms/items/target_slo/items"
properties:
target_kpi:
"$id": "/properties/sla_template/properties/guaranteeTerms/items/target_slo/items/target_kpi"
type: string
target_value:
"$id": "/properties/sla_template/properties/guaranteeTerms/items/target_slo/items/target_value"
type: string
target_operator:
"$id": "/properties/sla_template/properties/guaranteeTerms/items/target_slo/items/target_operator"
type: string
target_duration:
"$id": "/properties/sla_template/properties/guaranteeTerms/items/target_slo/items/target_duration"
type: string
target_period:
"$id": "/properties/sla_template/properties/guaranteeTerms/items/target_slo/items/target_period"
type: string
required:
- offer_date
- expiration_date
- template_name
- service
licenses:
"$id": "/properties/sla_template/properties/licensing"
type: object
properties:
service_based:
"$id": "/properties/sla_template/properties/licensing/service_based"
type: object
properties:
service_licence_type:
"$id": "/properties/sla_template/properties/licensing/service_based/service_licence_type"
description: Trial | Private | Public
type: string
allowed_service_instances:
"$id": "/properties/sla_template/properties/licensing/service_based/service_licence_instances"
description: Number of allowed instances
type: string
service_licence_expiration_date:
"$id": "/properties/sla_template/properties/licensing/service_based/service_licence_expiration_date"
type: string
required:
- service_licence_type
- allowed_service_instances
- service_licence_expiration_date
required:
- service_based
required:
- descriptor_schema
- name
- vendor
- version
- sla_template