-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clarification for initialEvent use in documentation #237
base: main
Are you sure you want to change the base?
Changes from 4 commits
f4a330b
56002e7
83b8717
ec2ded6
db63c35
a281b70
f981ae0
beb0fcb
9941900
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,6 +44,26 @@ info: | |
- the Access Token `sinkCredential` (optionally set by the requester) expiration time has been reached | ||
- the API server has to stop sending notification prematurely | ||
|
||
**Note on combined usage of ``initialEvent`` and ``subscriptionMaxEvents``**: | ||
|
||
If an event is triggered following ``initialEvent`` set to true, | ||
this event will be counted towards ``subscriptionMaxEvents`` (if provided). | ||
|
||
|
||
**Clarification on ``initialEvent`` & ``event-type`` behaviour:** | ||
|
||
Following table illustrate behaviour regarding event triggering depending on **initial** reachability state of the device: | ||
|
||
| subscrived event-type | device reachability status at subscription time | event send if ``initialEvent`` set to true | | ||
| ----------------------| ------------- | --------------- | | ||
| reachability-data | OK for data usage | Yes | | ||
| reachability-data | disconnected or only SMS | No | | ||
| reachability-sms | OK for data usage | No | | ||
| reachability-sms | only SMS | Yes | | ||
| reachability-sms | disconnected | No | | ||
| reachability-disconnected | OK for Data or SMS usage | No | | ||
| reachability-disconnected | disconnected | Yes | | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I am afraid that table is not coming nicely on the swagger editor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
### Notifications callback | ||
|
||
This endpoint describes the event notification received on subscription listener side when the event occurred. | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,6 +46,44 @@ info: | |
- the Access Token `sinkCredential` (optionally set by the requester) expiration time has been reached | ||
- the API server has to stop sending notification prematurely | ||
|
||
**Note on combined usage of ``initialEvent`` and ``subscriptionMaxEvents``**: | ||
|
||
If an event is triggered following ``initialEvent`` set to true, | ||
this event will be counted towards ``subscriptionMaxEvents`` (if provided). | ||
|
||
**Clarification on ``initialEvent`` & ``event-type`` behaviour:** | ||
|
||
Following table illustrate behaviour regarding event triggering depending on **initial** roaming state of the device: | ||
|
||
| subscrived event-type | device roaming status at subscription time | event send if ``initialEvent`` set to true | | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. minor typos in table header: |
||
| ----------------------| ------------- | --------------- | | ||
| roaming-status | Roaming On | Yes | | ||
| roaming-status | Roaming Off | Yes | | ||
| roaming-on | Roaming On | Yes | | ||
| roaming-on | Roaming Off | No | | ||
| roaming-off | Roaming On | No | | ||
| roaming-off | Roaming Off | Yes | | ||
| roaming-change-country | Roaming Off | No(*) | | ||
| roaming-change-country | Roaming On | No(*) | | ||
|
||
(*) Use of ``initialEvent`` has no impact on roaming-change-country event-type. | ||
|
||
**Clarification on ``roaming-change-country`` event-type:** | ||
|
||
``roaming-change-country`` event is send only when the device stays in roaming situation and change country. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. event is 'sent' |
||
Suppose a device from Germany & all event types subscribed: | ||
|
||
- Device moves from Germany to France: | ||
- triggered: roaming-status & roaming-on | ||
- not triggered: roaming-change-country & roaming-off | ||
- Device moves from France to Belgium: | ||
- triggered: roaming-change-country | ||
- not triggered: roaming-status, roaming-on & roaming-off | ||
- Device moves from Belgium back to Germany | ||
- triggered: roaming-status & roaming-off | ||
- not triggered: roaming-on & roaming-change-country | ||
|
||
|
||
### Notifications callback | ||
|
||
This endpoint describes the event notification received on subscription listener side when the event occurred. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor typos in table header:
subscrived --> subscribed
event send --> event sent