Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce 'qosStatus' and corresponding notification event to fix issue #38 #67

Merged
Changes from 4 commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 36 additions & 6 deletions code/API_definitions/qod-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ info:
license:
name: Apache 2.0
url: https://www.apache.org/licenses/LICENSE-2.0.html
version: 0.8.0
version: 0.9.0
externalDocs:
description: Product documentation at Camara
url: https://github.com/camaraproject/
Expand Down Expand Up @@ -224,6 +224,7 @@ components:
- duration
- startedAt
- expiresAt
- qosStatus
emil-cheung marked this conversation as resolved.
Show resolved Hide resolved
properties:
id:
$ref: "#/components/schemas/SessionId"
Expand All @@ -237,6 +238,8 @@ components:
example: 1639566000
description: Timestamp of session expiration if the session was not deleted, in seconds since unix epoch
format: int64
qosStatus:
emil-cheung marked this conversation as resolved.
Show resolved Hide resolved
$ref: "#/components/schemas/QosStatus"
messages:
type: array
items:
Expand Down Expand Up @@ -329,16 +332,32 @@ components:
type: object
required:
- sessionId
- event
- eventReport
properties:
sessionId:
$ref: "#/components/schemas/SessionId"
event:
eventReport:
$ref: "#/components/schemas/SessionEvent"
SessionEvent:
type: string
enum:
- SESSION_TERMINATED
emil-cheung marked this conversation as resolved.
Show resolved Hide resolved
emil-cheung marked this conversation as resolved.
Show resolved Hide resolved
type: object
required:
- event
emil-cheung marked this conversation as resolved.
Show resolved Hide resolved
properties:
event:
emil-cheung marked this conversation as resolved.
Show resolved Hide resolved
type: string
enum:
- QOS_STATUS_CHANGED
emil-cheung marked this conversation as resolved.
Show resolved Hide resolved
qosStatus:
emil-cheung marked this conversation as resolved.
Show resolved Hide resolved
type: object
emil-cheung marked this conversation as resolved.
Show resolved Hide resolved
properties:
status:
$ref: "#/components/schemas/QosStatus"
emil-cheung marked this conversation as resolved.
Show resolved Hide resolved
reason:
type: string
enum:
- DURATION_EXPIRES
- NETWORK_TERMINATES
- UNKNOWN
emil-cheung marked this conversation as resolved.
Show resolved Hide resolved
ErrorInfo:
type: object
required:
Expand Down Expand Up @@ -419,6 +438,17 @@ components:
required:
- severity
- description

QosStatus:
type: string
enum:
- REQUESTED
- AVAILABLE
- UNAVAILABLE
description: |
emil-cheung marked this conversation as resolved.
Show resolved Hide resolved
* `REQUESTED` - QoS has been requested by creating a session
* `AVAILABLE` - The requested QoS has been provided by the network
* `UNAVAILABLE` - The requested QoS cannot fulfil by the network
responses:
Generic400:
description: Invalid input
Expand Down