ExCEP. Gateway. SubscriptionManager
(ex_cep v0.1.1)
Copy Markdown
Data Subscription rule engine per CSG CEP TS2.2 Section 8.7 & 8.8.
Implements the exact precedence rules:
- Model-level subscription (
AllDev == "1"): applies to all devices of that model (both existing and newly onboarded), overwriting prior subscriptions for that{model, service_id}. - Device-level subscription (
AllDev == "0"): applies only to the listedDeviceList, overwriting prior subscriptions for each{model, service_id, device_id}.
Summary
Functions
Applies a DataSubs Subs list and returns {updated_manager, resp_subs_list}.
Handles GetDataSubs queries and returns the Subs array for GetDataSubsResp.
Resolves the effective subscription rule for {model, service_id, device_id}.
Returns true if a spontaneous change for data_refer should be uploaded.
Types
Functions
Applies a DataSubs Subs list and returns {updated_manager, resp_subs_list}.
@spec new() :: t()
Handles GetDataSubs queries and returns the Subs array for GetDataSubsResp.
Resolves the effective subscription rule for {model, service_id, device_id}.
Returns true if a spontaneous change for data_refer should be uploaded.