| /****************************************************************************** |
| * Copyright (c) 2000-2019 Ericsson AB |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License v2.0 |
| * which accompanies this distribution, and is available at |
| * https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.html |
| * |
| * Contributors: |
| * Gabor Szalai - initial implementation and initial documentation |
| ******************************************************************************/ |
| // |
| // File: TS29520_Nnwdaf_EventsSubscription.ttcn |
| // Description: Type definitions for 3GPP TS29520 |
| /////////////////////////////////////////////// |
| module TS29520_Nnwdaf_EventsSubscription { |
| |
| import from TS29571_CommonData all |
| |
| external function f_enc_NnwdafEventsSubscription(in NnwdafEventsSubscription pdu) return octetstring |
| with { extension "prototype(convert) encode(JSON)" } |
| |
| external function f_dec_NnwdafEventsSubscription(in octetstring stream, out NnwdafEventsSubscription pdu) return integer |
| with { extension "prototype(backtrack) decode(JSON)" } |
| |
| |
| type set NnwdafEventsSubscription { |
| set of EventSubscription eventSubscriptions, |
| TS29571_CommonData.Uri notificationURI optional, |
| set of TS29571_CommonData.SupportedFeatures supportedFeatures optional |
| } |
| |
| type set EventSubscription { |
| AnySlice anySlice optional, |
| NwdafEvent event, |
| integer loadLevelThreshold optional, |
| NotificationMethod notificationMethod optional, |
| TS29571_CommonData.DurationSec repetitionPeriod optional, |
| set of TS29571_CommonData.Snssai snssai optional |
| } |
| |
| type set NnwdafEventsSubscriptionNotification { |
| set of EventNotification eventNotifications, |
| charstring subscriptionId |
| } |
| |
| type set EventNotification { |
| NwdafEvent event, |
| SliceLoadLevelInformation sliceLoadLevelInfo |
| } |
| |
| type set SliceLoadLevelInformation { |
| LoadLevelInformation loadLevelInformation, |
| set of TS29571_CommonData.Snssai snssai |
| } |
| |
| type boolean AnySlice |
| |
| type integer LoadLevelInformation |
| |
| type enumerated NotificationMethod_enum { PERIODIC, THRESHOLD} |
| |
| type union NotificationMethod { |
| NotificationMethod_enum enum_val, |
| charstring other_val |
| } with { |
| variant "JSON: as value" |
| } |
| |
| |
| type enumerated NwdafEvent_enum { Slice_Load_Level} |
| |
| type union NwdafEvent { |
| NwdafEvent_enum enum_val, |
| charstring other_val |
| } with { |
| variant "JSON: as value" |
| } |
| |
| |
| |
| |
| |
| |
| } with { |
| encode "JSON" |
| } |