NFVManoPerformanceManagementNotification.yaml 14.6 KB
Newer Older
1
2
3
openapi: 3.0.2
info:
  version: 1.0.0-impl:etsi.org:ETSI_NFV_OpenAPI:1
4
  title: SOL009 - NFV-MANO Performance Management Notification Operation
5
  description: >
6
    SOL009 - NFV-MANO Performance Management Notification Operation
7
8
9
10
11
12
13
14
15
16
17
18

    IMPORTANT: Please note that this file might be not aligned to the current
    version of the ETSI Group Specification it refers to and has not been
    approved by the ETSI NFV ISG. In case of discrepancies the published ETSI
    Group Specification takes precedence.
    Please report bugs to https://forge.etsi.org/bugzilla/buglist.cgi?component=Nfv-Openapis
  license:
    name: ETSI Forge copyright notice
    url: https://forge.etsi.org/etsi-forge-copyright-notice.txt
  contact:
    name: NFV-SOL WG
externalDocs:
19
20
  description: ETSI GS NFV-SOL 009 V3.5.1
  url: https://www.etsi.org/deliver/etsi_gs/NFV-SOL/001_099/009/03.05.01_60/gs_NFV-SOL009v030501p.pdf
21
22
23
24
25
26
27
28
29
30

servers:
  - url: http://0.0.0.0/callback/v1
    description: >
      API HTTP Server
  - url: https://0.0.0.0/callback/v1
    description: >
      API HTTPS Server

paths:
31
  /URI_is_provided_by_the_client_when_creating_the_subscription-PerformanceInformationNotification:
32
33
34
    description: >
      This resource represents a notification endpoint for NFV-MANO performance management. 
      The API producer can use this resource to send notifications related to performance 
35
36
      management events to an API consumer, which has provided the URI of this
      resource during the PM jobor threshold creation process.
37
38
39
40
    post:
      description: >
        The POST method delivers a notification regarding a performance management event
        from the API producer to an API consumer. The API consumer shall have previously 
41
        created an " Individual PM job resource" or "Individual threshold resource". See clause 6.5.10.3.1.
42
43
44
45
46
      parameters:
        - $ref: "../components/SOL009_params.yaml#/components/parameters/Version"
        - $ref: "../components/SOL009_params.yaml#/components/parameters/Accept"
        - $ref: "../components/SOL009_params.yaml#/components/parameters/Authorization"
      requestBody:
47
        $ref: "#/components/requestBodies/PerfomanceInfoNotification"
48
49
50
51
      responses:
        "204": 
          $ref: "#/components/responses/notification.post.204"
        "400":
Giacomo Bernini's avatar
Giacomo Bernini committed
52
          $ref: ../components/SOL009_resp.yaml#/components/responses/400
53
        "401":
Giacomo Bernini's avatar
Giacomo Bernini committed
54
          $ref: ../components/SOL009_resp.yaml#/components/responses/401
55
        "403":
Giacomo Bernini's avatar
Giacomo Bernini committed
56
          $ref: ../components/SOL009_resp.yaml#/components/responses/403
57
        "404":
Giacomo Bernini's avatar
Giacomo Bernini committed
58
          $ref: ../components/SOL009_resp.yaml#/components/responses/404
59
        "405":
Giacomo Bernini's avatar
Giacomo Bernini committed
60
          $ref: ../components/SOL009_resp.yaml#/components/responses/405
61
        "406":
Giacomo Bernini's avatar
Giacomo Bernini committed
62
          $ref: ../components/SOL009_resp.yaml#/components/responses/406
63
        "422":
Giacomo Bernini's avatar
Giacomo Bernini committed
64
          $ref: ../components/SOL009_resp.yaml#/components/responses/422
65
        "500":
Giacomo Bernini's avatar
Giacomo Bernini committed
66
          $ref: ../components/SOL009_resp.yaml#/components/responses/500
67
        "503":
Giacomo Bernini's avatar
Giacomo Bernini committed
68
          $ref: ../components/SOL009_resp.yaml#/components/responses/503
69
        "504":
Giacomo Bernini's avatar
Giacomo Bernini committed
70
          $ref: ../components/SOL009_resp.yaml#/components/responses/504
71
72
73
74

    get:
      description: >
        The GET method allows the server to test the notification endpoint that is 
75
        provided by the client, e.g. during creation of the PM job or threshold. See clause 6.5.10.3.2.
76
77
78
79
80
81
82
83
      parameters:
        - $ref: "../components/SOL009_params.yaml#/components/parameters/Version"
        - $ref: "../components/SOL009_params.yaml#/components/parameters/Accept"
        - $ref: "../components/SOL009_params.yaml#/components/parameters/Authorization"
      responses:
        "204": 
          $ref: "#/components/responses/notification.get.204"
        "400":
Giacomo Bernini's avatar
Giacomo Bernini committed
84
          $ref: ../components/SOL009_resp.yaml#/components/responses/400
85
        "401":
Giacomo Bernini's avatar
Giacomo Bernini committed
86
          $ref: ../components/SOL009_resp.yaml#/components/responses/401
87
        "403":
Giacomo Bernini's avatar
Giacomo Bernini committed
88
          $ref: ../components/SOL009_resp.yaml#/components/responses/403
89
        "404":
Giacomo Bernini's avatar
Giacomo Bernini committed
90
          $ref: ../components/SOL009_resp.yaml#/components/responses/404
91
        "405":
Giacomo Bernini's avatar
Giacomo Bernini committed
92
          $ref: ../components/SOL009_resp.yaml#/components/responses/405
93
        "406":
Giacomo Bernini's avatar
Giacomo Bernini committed
94
          $ref: ../components/SOL009_resp.yaml#/components/responses/406
95
        "422":
Giacomo Bernini's avatar
Giacomo Bernini committed
96
          $ref: ../components/SOL009_resp.yaml#/components/responses/422
97
        "500":
Giacomo Bernini's avatar
Giacomo Bernini committed
98
          $ref: ../components/SOL009_resp.yaml#/components/responses/500
99
        "503":
Giacomo Bernini's avatar
Giacomo Bernini committed
100
          $ref: ../components/SOL009_resp.yaml#/components/responses/503
101
        "504":
Giacomo Bernini's avatar
Giacomo Bernini committed
102
          $ref: ../components/SOL009_resp.yaml#/components/responses/504
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

components:
  responses:
    notification.post.204:
      description: >
        204 NO CONTENT

        Shall be returned when the notification has been delivered successfully.
      headers:
        WWW-Authenticate:
          description: >
            Challenge if the corresponding HTTP request has not provided
            authorization, or error details if the corresponding HTTP
            request has provided an invalid authorization token.
          schema:
            type: string
        Version:
          description: >
            Version of the API used in the response.
          schema:
            type: string

    notification.get.204:
      description: >
        204 NO CONTENT

        Shall be returned to indicate that the notification endpoint has been 
        tested successfully.

        The response body shall be empty.
      headers:
        WWW-Authenticate:
          description: >
            Challenge if the corresponding HTTP request has not provided
            authorization, or error details if the corresponding HTTP
            request has provided an invalid authorization token.
          schema:
            type: string
        Version:
          description: >
            Version of the API used in the response.
          schema:
            type: string

  requestBodies:
148
    PerfomanceInfoNotification:
149
150
151
152
153
154
155
      description: >
        Notification about the avaialbility of a performance information or a threshold
        crossing.
      content:
        application/json:
          schema: 
            oneOf:
156
157
              - $ref: "#/components/schemas/PerformanceInformationAvailableNotification"
              - $ref: "#/components/schemas/ThresholdCrossedNotification"
158
159
      required: true

160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
  schemas:
    ThresholdCrossedNotification:
      description: >
        This type represents a notification that is sent when a threshold has been crossed.

        NOTE:	The timing of sending this notification is determined by the capability of
        the producing entity to evaluate the threshold crossing condition.

        The notification shall be triggered by the NFV-MANO functional entity when
        a threshold has been crossed.
      type: object
      properties:
        id:
          description: >
            Identifier of this notification. If a notification is sent multiple times due
            to multiple subscriptions, the "id" attribute of all these notifications shall
            have the same value.
          $ref: "../components/SOL009_schemas.yaml#/components/schemas/Identifier"
        notificationType:
          description: >
            Discriminator for the different notification types. Shall be set to
            "ThresholdCrossedNotification" for this notification type.
          $ref: "../components/SOL009_schemas.yaml#/components/schemas/String"
        timeStamp:
          description: >
            Date and time of the generation of the notification.
          $ref: "../components/SOL009_schemas.yaml#/components/schemas/DateTime"
        thresholdId:
          description: >
            Identifier of the threshold which has been crossed.
          $ref: "../components/SOL009_schemas.yaml#/components/schemas/Identifier"
        crossingDirection:
          description: >
            An indication of whether the threshold was crossed in upward or downward direction.
          $ref: "../components/SOL009_schemas.yaml#/components/schemas/CrossingDirectionType"
        objectType:
          description: >
            Type of measured object.The applicable measured object type for a measurement
            is defined in clause 8.2 of ETSI GS NFV-IFA 031.
          $ref: "../components/SOL009_schemas.yaml#/components/schemas/String"
        objectInstanceId:
          description: >
            Identifier of the measured object instance. This attribute shall contain the
            identifier of the instance of the measure object according to their type.
            See also definitions in clause 8.2 of ETSI GS NFV-IFA 031
          $ref: "../components/SOL009_schemas.yaml#/components/schemas/Identifier"
        subObjectInstanceId:
          description: >
            Identifier of the sub-object of the measured object to which the measurement
            applies. Shall be present if this is required in clause 8.2 of ETSI GS NFV-IFA 031
            for the related measured object type. Shall be absent otherwise.
          $ref: "../components/SOL009_schemas.yaml#/components/schemas/IdentifierInManoEntity"
        performanceMetric:
          description: >
            Performance metric associated with the threshold.
            This attribute shall contain the related "Measurement Name" value as defined
            in clause 8.4 of ETSI GS NFV-IFA 031
          $ref: "../components/SOL009_schemas.yaml#/components/schemas/String"
        performanceValue:
          description: >
            Value of the metric that resulted in threshold crossing.
            The type of this attribute shall correspond to the related "Measurement Unit"
            as defined in clause 8.4 of ETSI GS NFV-IFA 031.
        context:
          description: >-
            Measurement context information related to the measured value. The set of applicable keys is defined per
            measurement in clause 8.4 of ETSI GS NFV-IFA 031.
          $ref: "../components/SOL009_schemas.yaml#/components/schemas/KeyValuePairs"
        _links:
          description: >
            Links to resources related to this notification.
          type: object
          properties:
            objectInstance:
              description: >
                Link to the resource representing the measured object instance to which
                the notified change applies. Shall be present if the measured object
                instance information is accessible as a resource.
              $ref: "../components/SOL009_schemas.yaml#/components/schemas/NotificationLink"
            threshold:
              description: >
                Link to the resource that represents the threshold that was crossed.
              $ref: "../components/SOL009_schemas.yaml#/components/schemas/NotificationLink"
          required:
            - objectInstance
      required:
        - id
        - notificationType
        - timeStamp
        - thresholdId
        - crossingDirection
        - objectType
        - objectInstanceId
        - performanceMetric
        - performanceValue
        - _links

    PerformanceInformationAvailableNotification:
      description: >
        This notification informs the receiver that performance information is available.
      type: object
      properties:
        id:
          description: >
            Identifier of this notification. If a notification is sent multiple times due
            to multiple subscriptions, the "id" attribute of all these notifications shall
            have the same value.
          $ref: "../components/SOL009_schemas.yaml#/components/schemas/Identifier"
        notificationType:
          description: >
            Discriminator for the different notification types.
            Shall be set to "PerformanceInformationAvailableNotification" for this
            notification type.
          $ref: "../components/SOL009_schemas.yaml#/components/schemas/String"
        timeStamp:
          description: >
            Date and time of the generation of the notification.
          $ref: "../components/SOL009_schemas.yaml#/components/schemas/DateTime"
278
279
280
281
        pmJobId:
          description: >
            Identifier of the PM job for which performance information is available.
          $ref: "../components/SOL009_schemas.yaml#/components/schemas/Identifier"
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
        objectType:
          description: >
            Type of measured object.
            The applicable measured object type for a measurement is defined in clause 8.2
            of ETSI GS NFV-IFA 031.
          $ref: "../components/SOL009_schemas.yaml#/components/schemas/String"
        objectInstanceId:
          description: >
            Type of measured object.
            The applicable measured object type for a measurement is defined in clause 8.2
            of ETSI GS NFV-IFA 031
          $ref: "../components/SOL009_schemas.yaml#/components/schemas/Identifier"
        subObjectInstanceId:
          description: >
            Identifier of the sub-object of the measured object instance for which the
            measurements have been taken. Shall be present if the related PM job has been
            set up to measure a sub-object instance of the measured object instance and a
            sub-object is defined in clause 8.2 of ETSI GS NFV-IFA 031 for the related
            measured object type. Shall be absent otherwise.
          $ref: "../components/SOL009_schemas.yaml#/components/schemas/IdentifierInManoEntity"
        _links:
          description: >
            Links to resources related to this notification.
          type: object
          properties:
            objectInstance:
              description: >
                Link to the resource representing the measured object instance to which the
                notification applies. Shall be present if the measured object instance
                information is accessible as a resource.
              $ref: "../components/SOL009_schemas.yaml#/components/schemas/NotificationLink"
            pmJob:
              description: >
                Link to the resource that represents the PM job for which performance
                information is available.
              $ref: "../components/SOL009_schemas.yaml#/components/schemas/NotificationLink"
            PerformanceReport:
              description: >
                Link from which the available performance information of data type
                "PerformanceReport" can be obtained.
                This link should point to an "Individual performance report" resource.
              $ref: "../components/SOL009_schemas.yaml#/components/schemas/NotificationLink"
          required:
            - pmJob
            - performanceReport
      required:
        - id
        - notificationType
330
        - pmJobId
331
332
333
334
335
        - timeStamp
        - objectType
        - objectInstanceId
        - _links