BroadbandForum / obuspa

OB-USP-AGENT is a system daemon providing a User Services Platform (USP) Agent. https://github.com/BroadbandForum/obuspa/wiki
BSD 3-Clause "New" or "Revised" License
93 stars 62 forks source link

Periodic! Event for basic statistics collection periodically #71

Closed shanthakumarks closed 1 year ago

shanthakumarks commented 1 year ago

Hi,

Can the"Device.LocalAgent.Periodic!" event still be used for sending parameter and value pair along with the event to the USP controller for collecting some basic statistics like how Periodic Inform is used in TR069 ? If yes, is there any mechanism available today to add list of parameters while subscribing for the Periodic! event from the USP Controller ? or If Periodic! event is not designed for statistics collection purpose, is Bulkdata collection mechanism the only option to collect periodic data collection ?

Provided a sample Periodic Event with empty params. Looking for option to add parameter and value pairs in the "params" block in the event notify message. { "header": { "msgId": "Event-2023-02-02T22:08:15Z-24", "msgType": "NOTIFY" }, "body": { "request": {{ " "notify": { "subscriptionId": "periodic-1", "sendResp": false, "event": { "objPath": "Device.LocalAgent.", "eventName": "Periodic!", "params": { } } } } } }

holme-r commented 1 year ago

The controller could get the stats, in response to receiving the Periodic! event. Alternatively you could use Bulk Data Collection and the Push! event for stats collection.

shanthakumarks commented 1 year ago

Do you mean perform GET operation on the required parameters in response to receiving the Periodic! event ?

holme-r commented 1 year ago

Yes

shanthakumarks commented 1 year ago

Thanks for the clarification.

jswalls commented 1 year ago

@shanthakumarks There is also the Periodic Statistics object that lets you get notified periodically with sampled data: https://usp-data-models.broadband-forum.org/tr-181-2-15-1-usp.html#T.D.Device:2.Device.PeriodicStatistics.