Quality-of-service-on-Demand (QoD) notification details

On this page, you will find the JSON schema for QoD notifications, which purpose is to monitor changes made to sessionId, qosStatus and statusInfo. Underneath the JSON schema, there is a table with further information on the specific keyword values.

Remember that the string values represented below are just examples that can be used. So, they should contain your real QoD session values.

QoD notification JSON schema

{
   "id":"string",
   "source":"string",
   "type":"org.camaraproject.qod.v0.qos-status-changed",
   "specversion":"1.0",
   "datacontenttype":"application/json",
   "time":"2024-04-30T13:05:29.189Z",
   "event":{
      "eventType":"QOS_STATUS_CHANGED",
      "eventTime":"string",
      "eventDetail":{
         "sessionId":"string",
         "qosStatus":"AVAILABLE",
         "statusInfo":"DURATION_EXPIRED"
      }
   },
   "data":{
      "sessionId":"string",
      "qosStatus":"AVAILABLE",
      "statusInfo":"DURATION_EXPIRED"
   }
}
QoD-keyword valuesDescription
idA string value with the event subscription identifier.
sourceA string value that identifies the source where the event happened. It contains the Network as Code API implementation and subscription ID.
typeA string value returned by the API with different statuses.
specversionA string representing the specification version.
datacontenttypeIt indicates the mediat type for the event payload encoding. It must be "application/json" in the context of CAMARA APIs
timeA string value with the time the event occurred. Date and time are specified in ISO 8601 format, e.g.: 2023-08-20T21:01:02.345Z.
eventAn object, which contains other objects or strings with further details on the event.
eventTypeA string value containing the different status you want to check. This value should always be "QOS_STATUS_CHANGED". So, the notifications relate to the changes in QoD sessions, such as ID, QoS status and expiration changes.
eventTimeA string value with the time the event occurred. Date and time are specified in ISO 8601 format, e.g.: 2023-08-20T21:01:02.345Z.
eventDetailAn object that contains three other string types, which are sessionId, qosStatus and statusInfo. The different JSON schemas for these strings are exemplified above.
sessionIdA string value containing the session resource ID. It can be a session name or number, which is attributed when you create a session.
qosStatusA string value with the QoS profile status, whether it is REQUESTED, AVAILABLE, UNAVAILABLE.
statusInfoAn optional string value providing information on the QoD session expiration or termination due to the network. The accepted values are: DURATION_EXPIRED, NETWORK_TERMINATED or it can also be empty (null).

Last updated on May 23, 2024