Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-SMF
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenXG
OpenXG-SMF
Commits
5e1a149f
Commit
5e1a149f
authored
Jul 29, 2022
by
ferrerod
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update event notification for report fields
parent
05d0579c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
282 additions
and
0 deletions
+282
-0
src/api-server/model/EventNotification.cpp
src/api-server/model/EventNotification.cpp
+190
-0
src/api-server/model/EventNotification.h
src/api-server/model/EventNotification.h
+92
-0
No files found.
src/api-server/model/EventNotification.cpp
View file @
5e1a149f
...
...
@@ -51,6 +51,26 @@ EventNotification::EventNotification() {
m_DddStatusIsSet
=
false
;
m_MaxWaitTime
=
""
;
m_MaxWaitTimeIsSet
=
false
;
// QoS Monitoring (Usage Report)
m_SEndID
=
0
;
m_SEndIDIsSet
=
false
;
m_urSeqN
=
0
;
m_urSeqNIsSet
=
false
;
m_duration
=
0
;
m_durationIsSet
=
false
;
m_totNoP
=
0
;
m_totNoPIsSet
=
false
;
m_ulNoP
=
0
;
m_ulNoPIsSet
=
false
;
m_dlNoP
=
0
;
m_dlNoPIsSet
=
false
;
m_totVol
=
0
;
m_totVolIsSet
=
false
;
m_ulVol
=
0
;
m_ulVolIsSet
=
false
;
m_dlVol
=
0
;
m_dlVolIsSet
=
false
;
}
EventNotification
::~
EventNotification
()
{}
...
...
@@ -86,6 +106,17 @@ void to_json(nlohmann::json& j, const EventNotification& o) {
if
(
o
.
pduSeIdIsSet
())
j
[
"pduSeId"
]
=
o
.
m_PduSeId
;
if
(
o
.
dddStatusIsSet
())
j
[
"dddStatus"
]
=
o
.
m_DddStatus
;
if
(
o
.
maxWaitTimeIsSet
())
j
[
"maxWaitTime"
]
=
o
.
m_MaxWaitTime
;
// QoS Monitoring (Usage Report)
if
(
o
.
SEndIDIsSet
())
j
[
"SEndID"
]
=
o
.
m_SEndID
;
if
(
o
.
urSeqNIsSet
())
j
[
"urSeqN"
]
=
o
.
m_urSeqN
;
if
(
o
.
durationIsSet
())
j
[
"duration"
]
=
o
.
m_duration
;
if
(
o
.
totNoPIsSet
())
j
[
"totNoP"
]
=
o
.
m_totNoP
;
if
(
o
.
ulNoPIsSet
())
j
[
"ulNoP"
]
=
o
.
m_ulNoP
;
if
(
o
.
dlNoPIsSet
())
j
[
"dlNoP"
]
=
o
.
m_dlNoP
;
if
(
o
.
totVolIsSet
())
j
[
"totVol"
]
=
o
.
m_totVol
;
if
(
o
.
ulVolIsSet
())
j
[
"ulVol"
]
=
o
.
m_ulVol
;
if
(
o
.
dlVolIsSet
())
j
[
"dlVol"
]
=
o
.
m_dlVol
;
}
void
from_json
(
const
nlohmann
::
json
&
j
,
EventNotification
&
o
)
{
...
...
@@ -175,6 +206,44 @@ void from_json(const nlohmann::json& j, EventNotification& o) {
j
.
at
(
"maxWaitTime"
).
get_to
(
o
.
m_MaxWaitTime
);
o
.
m_MaxWaitTimeIsSet
=
true
;
}
// Qos Monitoring (Usage Report)
if
(
j
.
find
(
"SEndID"
)
!=
j
.
end
())
{
j
.
at
(
"SEndID"
).
get_to
(
o
.
m_SEndID
);
o
.
m_SEndIDIsSet
=
true
;
}
if
(
j
.
find
(
"urSeqN"
)
!=
j
.
end
())
{
j
.
at
(
"urSeqN"
).
get_to
(
o
.
m_urSeqN
);
o
.
m_urSeqNIsSet
=
true
;
}
if
(
j
.
find
(
"duration"
)
!=
j
.
end
())
{
j
.
at
(
"duration"
).
get_to
(
o
.
m_duration
);
o
.
m_durationIsSet
=
true
;
}
if
(
j
.
find
(
"totNoP"
)
!=
j
.
end
())
{
j
.
at
(
"totNoP"
).
get_to
(
o
.
m_totNoP
);
o
.
m_totNoPIsSet
=
true
;
}
if
(
j
.
find
(
"ulNoP"
)
!=
j
.
end
())
{
j
.
at
(
"ulNoP"
).
get_to
(
o
.
m_ulNoP
);
o
.
m_ulNoPIsSet
=
true
;
}
if
(
j
.
find
(
"dlNoP"
)
!=
j
.
end
())
{
j
.
at
(
"dlNoP"
).
get_to
(
o
.
m_dlNoP
);
o
.
m_dlNoPIsSet
=
true
;
}
if
(
j
.
find
(
"totVol"
)
!=
j
.
end
())
{
j
.
at
(
"totVol"
).
get_to
(
o
.
m_totVol
);
o
.
m_totVolIsSet
=
true
;
}
if
(
j
.
find
(
"ulVol"
)
!=
j
.
end
())
{
j
.
at
(
"ulVol"
).
get_to
(
o
.
m_ulVol
);
o
.
m_ulVolIsSet
=
true
;
}
if
(
j
.
find
(
"dlVol"
)
!=
j
.
end
())
{
j
.
at
(
"dlVol"
).
get_to
(
o
.
m_dlVol
);
o
.
m_dlVolIsSet
=
true
;
}
}
SmfEvent
EventNotification
::
getEvent
()
const
{
...
...
@@ -463,6 +532,127 @@ void EventNotification::unsetMaxWaitTime() {
m_MaxWaitTimeIsSet
=
false
;
}
// QoS Monitoring (Usage Report)
int64_t
EventNotification
::
getSEndID
()
const
{
return
m_SEndID
;
}
void
EventNotification
::
setSEndID
(
int64_t
const
&
value
)
{
m_SEndID
=
value
;
m_SEndIDIsSet
=
true
;
}
bool
EventNotification
::
SEndIDIsSet
()
const
{
return
m_SEndIDIsSet
;
}
void
EventNotification
::
unsetSEndID
()
{
m_SEndIDIsSet
=
false
;
}
int32_t
EventNotification
::
geturSeqN
()
const
{
return
m_urSeqN
;
}
void
EventNotification
::
seturSeqN
(
int32_t
const
&
value
)
{
m_urSeqN
=
value
;
m_urSeqNIsSet
=
true
;
}
bool
EventNotification
::
urSeqNIsSet
()
const
{
return
m_urSeqNIsSet
;
}
void
EventNotification
::
unseturSeqN
()
{
m_urSeqNIsSet
=
false
;
}
int32_t
EventNotification
::
getDuration
()
const
{
return
m_duration
;
}
void
EventNotification
::
setDuration
(
int32_t
const
&
value
)
{
m_duration
=
value
;
m_durationIsSet
=
true
;
}
bool
EventNotification
::
durationIsSet
()
const
{
return
m_durationIsSet
;
}
void
EventNotification
::
unsetDuration
()
{
m_durationIsSet
=
false
;
}
int64_t
EventNotification
::
getTotNoP
()
const
{
return
m_totNoP
;
}
void
EventNotification
::
setTotNoP
(
int64_t
const
&
value
)
{
m_totNoP
=
value
;
m_totNoPIsSet
=
true
;
}
bool
EventNotification
::
totNoPIsSet
()
const
{
return
m_totNoPIsSet
;
}
void
EventNotification
::
unsetTotNoP
()
{
m_totNoPIsSet
=
false
;
}
int64_t
EventNotification
::
getUlNoP
()
const
{
return
m_ulNoP
;
}
void
EventNotification
::
setUlNoP
(
int64_t
const
&
value
)
{
m_ulNoP
=
value
;
m_ulNoPIsSet
=
true
;
}
bool
EventNotification
::
ulNoPIsSet
()
const
{
return
m_ulNoPIsSet
;
}
void
EventNotification
::
unsetUlNoP
()
{
m_ulNoPIsSet
=
false
;
}
int64_t
EventNotification
::
getDlNoP
()
const
{
return
m_dlNoP
;
}
void
EventNotification
::
setDlNoP
(
int64_t
const
&
value
)
{
m_dlNoP
=
value
;
m_dlNoPIsSet
=
true
;
}
bool
EventNotification
::
dlNoPIsSet
()
const
{
return
m_dlNoPIsSet
;
}
void
EventNotification
::
unsetDlNoP
()
{
m_dlNoPIsSet
=
false
;
}
int64_t
EventNotification
::
getTotVol
()
const
{
return
m_totVol
;
}
void
EventNotification
::
setTotVol
(
int64_t
const
&
value
)
{
m_totVol
=
value
;
m_totVolIsSet
=
true
;
}
bool
EventNotification
::
totVolIsSet
()
const
{
return
m_totVolIsSet
;
}
void
EventNotification
::
unsetTotVol
()
{
m_totVolIsSet
=
false
;
}
int64_t
EventNotification
::
getUlVol
()
const
{
return
m_ulVol
;
}
void
EventNotification
::
setUlVol
(
int64_t
const
&
value
)
{
m_ulVol
=
value
;
m_ulVolIsSet
=
true
;
}
bool
EventNotification
::
ulVolIsSet
()
const
{
return
m_ulVolIsSet
;
}
void
EventNotification
::
unsetUlVol
()
{
m_ulVolIsSet
=
false
;
}
int64_t
EventNotification
::
getDlVol
()
const
{
return
m_dlVol
;
}
void
EventNotification
::
setDlVol
(
int64_t
const
&
value
)
{
m_dlVol
=
value
;
m_dlVolIsSet
=
true
;
}
bool
EventNotification
::
dlVolIsSet
()
const
{
return
m_dlVolIsSet
;
}
void
EventNotification
::
unsetDlVol
()
{
m_dlVolIsSet
=
false
;
}
}
// namespace model
}
// namespace smf_server
}
// namespace oai
src/api-server/model/EventNotification.h
View file @
5e1a149f
...
...
@@ -204,6 +204,78 @@ class EventNotification {
bool
maxWaitTimeIsSet
()
const
;
void
unsetMaxWaitTime
();
/// <summary>
///
/// </summary>
int64_t
getSEndID
()
const
;
void
setSEndID
(
int64_t
const
&
value
);
bool
SEndIDIsSet
()
const
;
void
unsetSEndID
();
/// <summary>
///
/// </summary>
int32_t
geturSeqN
()
const
;
void
seturSeqN
(
int32_t
const
&
value
);
bool
urSeqNIsSet
()
const
;
void
unseturSeqN
();
/// <summary>
///
/// </summary>
int32_t
getDuration
()
const
;
void
setDuration
(
int32_t
const
&
value
);
bool
durationIsSet
()
const
;
void
unsetDuration
();
/// <summary>
///
/// </summary>
int64_t
getTotNoP
()
const
;
void
setTotNoP
(
int64_t
const
&
value
);
bool
totNoPIsSet
()
const
;
void
unsetTotNoP
();
/// <summary>
///
/// </summary>
int64_t
getUlNoP
()
const
;
void
setUlNoP
(
int64_t
const
&
value
);
bool
ulNoPIsSet
()
const
;
void
unsetUlNoP
();
/// <summary>
///
/// </summary>
int64_t
getDlNoP
()
const
;
void
setDlNoP
(
int64_t
const
&
value
);
bool
dlNoPIsSet
()
const
;
void
unsetDlNoP
();
/// <summary>
///
/// </summary>
int64_t
getTotVol
()
const
;
void
setTotVol
(
int64_t
const
&
value
);
bool
totVolIsSet
()
const
;
void
unsetTotVol
();
/// <summary>
///
/// </summary>
int64_t
getUlVol
()
const
;
void
setUlVol
(
int64_t
const
&
value
);
bool
ulVolIsSet
()
const
;
void
unsetUlVol
();
/// <summary>
///
/// </summary>
int64_t
getDlVol
()
const
;
void
setDlVol
(
int64_t
const
&
value
);
bool
dlVolIsSet
()
const
;
void
unsetDlVol
();
friend
void
to_json
(
nlohmann
::
json
&
j
,
const
EventNotification
&
o
);
friend
void
from_json
(
const
nlohmann
::
json
&
j
,
EventNotification
&
o
);
...
...
@@ -254,6 +326,26 @@ class EventNotification {
bool
m_DddStatusIsSet
;
std
::
string
m_MaxWaitTime
;
bool
m_MaxWaitTimeIsSet
;
// QoS Monitoring (Usage Report)
int64_t
m_SEndID
;
bool
m_SEndIDIsSet
;
int32_t
m_urSeqN
;
bool
m_urSeqNIsSet
;
int32_t
m_duration
;
bool
m_durationIsSet
;
int64_t
m_totNoP
;
bool
m_totNoPIsSet
;
int64_t
m_ulNoP
;
bool
m_ulNoPIsSet
;
int64_t
m_dlNoP
;
bool
m_dlNoPIsSet
;
int64_t
m_totVol
;
bool
m_totVolIsSet
;
int64_t
m_ulVol
;
bool
m_ulVolIsSet
;
int64_t
m_dlVol
;
bool
m_dlVolIsSet
;
};
}
// namespace model
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment