Commit 11b539c5 authored by Francesca Moscatelli's avatar Francesca Moscatelli
Browse files

NFVI CI Interface datatypes

parent bad893e6
Pipeline #3754 failed with stage
in 0 seconds
......@@ -200,13 +200,11 @@ components:
Information about the available, reserved, allocated/used, and total capacity of the NFVI.
If the subscription does specify a resource zone and/or vimId, the information is provided for the resource
zone/vimId where the NFVI capacity has crossed the threshold.
schema:
type: any
type: any
_links:
description: |
Links to resources related to this notification.
schema:
type: any
type: any
NfviCapacityInfoNotificationsFilter:
type: object
......@@ -222,10 +220,9 @@ components:
schema:
type: array
items:
schema:
type: string
enum:
- CapacityShortageNotification
type: string
enum:
- CapacityShortageNotification
CapacityThresholdCriteria:
type: object
......@@ -257,8 +254,7 @@ components:
description: |
Name of the capacity measurement. Different resource types can have different associated capacity measurements,
typically associated to different sub-types of the resource type.
schema:
type: string
type: string
capacityType:
description: |
The type of capacity for the threshold.
......@@ -284,32 +280,28 @@ components:
simpleThresholdDetails:
description: |
Details of a simple threshold. Shall be present if thresholdType="SIMPLE".
schema:
type: array
items:
schema:
type: object
required:
- thresholdValue
- hysteresis
properties:
thresholdValue:
description: |
The threshold value. Shall be represented as a floating point number.
schema:
type: number
hysteresis:
description: |
The hysteresis of the threshold.
Shall be represented as a non-negative floating point number.
A notification with crossing direction "UP" will be generated if the measured value reaches or
exceeds "thresholdValue" + "hysteresis". A notification with crossing direction "DOWN" will be
generated if the measured value reaches or undercuts "thresholdValue" - "hysteresis".
The hysteresis is defined to prevent storms of threshold crossing notifications.
When processing a request to create a threshold, implementations should enforce a suitable minimum
value for this attribute (e.g. override the value or reject the request).
schema:
type: number
type: array
items:
type: object
required:
- thresholdValue
- hysteresis
properties:
thresholdValue:
description: |
The threshold value. Shall be represented as a floating point number.
type: number
hysteresis:
description: |
The hysteresis of the threshold.
Shall be represented as a non-negative floating point number.
A notification with crossing direction "UP" will be generated if the measured value reaches or
exceeds "thresholdValue" + "hysteresis". A notification with crossing direction "DOWN" will be
generated if the measured value reaches or undercuts "thresholdValue" - "hysteresis".
The hysteresis is defined to prevent storms of threshold crossing notifications.
When processing a request to create a threshold, implementations should enforce a suitable minimum
value for this attribute (e.g. override the value or reject the request).
type: number
NfviCapacityInfoPerZone:
type: object
......@@ -326,10 +318,9 @@ components:
capacityMeasurements:
description: |
Capacity measurement on a per resource type basis.
schema:
type: array
items:
$ref: '#/components/schemas/NfviCapacityMeasurement'
type: array
items:
$ref: '#/components/schemas/NfviCapacityMeasurement'
TimeInterval:
type: object
......@@ -372,29 +363,24 @@ components:
description: |
Name of the capacity measurement. Different resource types can have different associated capacity measurements,
typically associated to different sub-types of the resource type.
schema:
type: string
type: string
totalCapacity:
description: |
The total capacity.
schema:
type: any
type: any
allocatedCapacity:
description: |
The allocated/used capacity.
schema:
type: any
type: any
reservedCapacity:
description: |
The reserved capacity. Shall be present if the capacity measurement relates to a resource type and
(and sub-type) that is reservable.
schema:
type: any
type: any
availableCapacity:
description: |
The available capacity.
schema:
type: any
type: any
NfviCapacityResourceTypeEnumeration:
type: string
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment