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 to a first resource, wherein the first resource is a uniquely addressable element in a Resource Oriented Architecture (ROA) having a representation that can be manipulated via RESTful methods;
detecting, based on receiving the subscription request, an event notification criteria has been met for the first resource, wherein the event notification criteria defines when a notification event is to be generated;
detecting, based on receiving the subscription request, instruction which statistical information about the notification events should be calculated and maintained;
generating an event notification for the first resource;
transmitting a notification message to a notification target;
calculating and recording notification statistical information based on the detected instruction;
receiving a retrieval request to retrieve the notification statistical information; and
based on the retrieval request, sending a response, wherein the response comprises the recorded notification statistical information.
2. The apparatus of claim 1 , wherein the subscription request comprises a time window of calculating the notification statistical information.
3. The apparatus of claim 1 , wherein the subscription request 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 a notification target.
5. The apparatus of claim 4 , wherein the statistical information further comprises a number of unsuccessful notifications sent to a notification target.
6. The apparatus of claim 1 , the operations further comprising:
obtaining a request from the subscriber to adjust notification targets; and
sending a response to the subscriber that comprises the result of the adjustment.
7. The apparatus of claim 1 , wherein the statistical information comprises a number of successfully received notifications by a notification target in the ROA.
8. The apparatus of claim 7 , wherein the statistical information further comprises a number of unsuccessful notifications sent to a notification target in the ROA.
9. A method comprising:
receiving a subscription request from a subscriber device to a first resource, wherein the first resource is a uniquely addressable element in a Resource Oriented Architecture (ROA) having a representation that can be manipulated via RESTful methods;
detecting, upon receiving the subscription request, an event notification criteria has been met for the first resource, wherein the event notification criteria defines when a notification event is to be generated;
detecting, upon receiving the subscription request, instruction which statistical information about the notification events should be calculated and maintained;
generating an event notification for the first resource;
transmitting a notification message to a notification target;
calculating and recording notification statistical information based on the detected instruction;
receiving a retrieval request to retrieve the notification statistical information; and
based on the retrieval request, sending a response, wherein the response comprises the recorded notification 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 10 , wherein the statistical information further 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. A method comprising:
sending a subscription request for a first resource, the 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:
an event notification criteria that defines when a subscription and a notification service is to generate notification events, and
instructions on which statistical information about the notification events should be calculated and maintained;
sending a retrieval request to retrieve the notification statistical information; and
receiving a response comprising the requested notification statistical information.
15. The method of claim 14 , the method further comprising:
based on the received notification statistical information, determining an adjustment to notification targets; and
sending a request to adjust notification targets.
16. The method of claim 14 , wherein the statistical information comprises a number of successfully received notifications by a notification target in the ROA.
17. The method of claim 16 , wherein the statistical information further comprises a number of unsuccessful notifications sent to a notification target in the ROA.
18. The method of claim 17 , the method further comprising:
receiving a request to stop recording notifications or change notifications recording settings.
19. The method of claim 17 , 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.