Subscription and notification service
Mechanisms for subscription and notification may include dynamically changing notification behavior based on notification target status or support access to notification history information.
1. An apparatus comprising:
a processor; and
a memory coupled with the processor, the memory comprising executable instructions that when executed by the processor cause the processor to effectuate operations comprising:
receiving a subscription request from a subscriber device for a first resource being a uniquely addressable element in a Resource Oriented Architecture (ROA) having a representation that can be manipulated via RESTful methods, wherein the subscription request comprises a first condition associated with statistical information;
preparing, upon receiving the subscription request, a first notification criteria for the first resource and a first statistical information for the first resource, wherein the first notification criteria defines when an event notification is to be generated for the first resource;
generating, based on detecting the first notification criteria has been met, a first event notification for the first resource;
transmitting the first event notification to a notification target;
updating the first statistical information based on the first condition after transmitting the first event notification;
receiving a retrieval request to retrieve the first statistical information; and
based on the retrieval request, sending a response, wherein the response comprises the updated first statistical information.
2. The apparatus of claim 1 , wherein the first condition comprises a time window of calculating the statistical information.
3. The apparatus of claim 1 , wherein the first condition comprises a list of notification targets whose notification statistics is to be calculated.
4. The apparatus of claim 1 , wherein the statistical information comprises a number of successfully received notifications by the notification target.
5. The apparatus of claim 1 , wherein the statistical information comprises a number of unsuccessful notifications sent to the notification target.
6. The apparatus of claim 1 , wherein the statistical information comprises a number of successfully received notifications by a notification target in the ROA.
7. The apparatus of claim 1 , wherein the statistical information comprises a number of unsuccessful notifications sent to a notification target in the ROA.
8. The apparatus of claim 1 , wherein the first condition comprises an indication to change notification recording settings for the statistical information.
9. A method comprising:
receiving a subscription request from a subscriber device for a first resource being a uniquely addressable element in a Resource Oriented Architecture (ROA) having a representation that can be manipulated via RESTful methods, wherein the subscription request comprises a first condition associated with statistical information;
preparing, upon receiving the subscription request, a first notification criteria for the first resource and a first statistical information for the first resource, wherein the first notification criteria defines when an event notification is to be generated for the first resource;
generating, based on detecting the first notification criteria has been met, a first event notification for the first resource;
transmitting the first event notification to a notification target;
updating the first statistical information based on the first condition after transmitting the first event notification;
receiving a retrieval request to retrieve the first statistical information; and
based on the retrieval request, sending a response, wherein the response comprises the updated first statistical information.
10. The method of claim 9 , wherein the statistical information comprises a number of successfully received notifications by a notification target in the ROA.
11. The method of claim 9 , wherein the statistical information comprises a number of unsuccessful notifications sent to a notification target in the ROA.
12. The method of claim 11 , the method further comprising receiving a request to stop recording notifications or change notifications recording settings.
13. The method of claim 11 , the method further comprising authorizing if one of the subscriber device, the notification target and other entities have access to recorded notifications according to access control policies.
14. The method of claim 9 , wherein the first condition comprises a time window of calculating the statistical information.
15. The method of claim 9 , wherein the first condition comprises a list of notification targets whose notification statistics is to be calculated.
16. The method of claim 9 , wherein the first condition comprises an indication to change notification recording settings for the statistical information.