Skip to content

WIP: adding alarm configuration #10

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added docs/rsrc/portal/alarms.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
50 changes: 49 additions & 1 deletion docs/tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ curl -iX PUT \
This request will update the value for the field `entity_type` for the service
group with apikey `T3JjaGVzdHJhQ2l0aWVzOi9XYXN0ZU1hbmFnZW1lbnQ6V2FzdGVDb250YWluZXI6MQ==` for the specified `Fiware-Service` and `Fiware-ServicePath`.

##### 3. Delete
##### 5.3.1.1.3. Delete

Similarly, to delete a Device Group:

Expand Down Expand Up @@ -685,6 +685,54 @@ historical context data, refer to the official
or its
[step-by-step tutorial](https://fiware-tutorials.readthedocs.io/en/latest/time-series-data/index.html).

### 5.4.4 Monitoring data injection

OrchestraCities' Portal can be used to monitor data injection, i.e. verify
that entities are updated with a given frequency in the Orion Context
Broker API and/or in the QuantumLeap API.
This is accomplished using Alarms, which can be set in the Portal to trigger
when an entity or entities under a given Service Type has/have not been updated
with new data within a given period of time.

The Alarms page can be accessed directly from the navigation bar under
"Data Management", or by clicking on the small bell icon next to an entity
listed in the Entities page.

![Alarms Page](rsrc/portal/alarms.png "Alarms Page")

When creating a new Alarm, it needs to include:

- Alarm Type: This choses whether the Alarm will observe either a specific
Entity, or all entities under a given Service Path.
- Entity: The ID of the Entity to be observed, if the Alarm is of Type Entity.
- Entity Type: Optional Entity Type. This is required to differentiate between
multiple Entities with the same ID but different types.
- Notification Channel: How the notifications will be sent when the Alarm is
triggered (e.g. via email)
- Channel Destination: Where the notifications will be sent when the Alarm is
triggered (e.g. the email address)
- Max time since last Entity update: The amount of time that needs to pass
between updates to the Entity before the alarm is triggered. For example,
if set to 30 minutes, the alarm is triggered if between the time of the last
data sent to Orion/Quantum Leap and the current time at least 30 minutes
have passed.
- Time Unit: The unit to use for the above time (seconds, minutes, hours, ...)
- Minimum time interval between notifications: The amount of time that should
pass between notifications sent out by this Alarm. For example, if set to 1
hour, at least 1 hour needs to pass between one notification and another.
- Alarm frequency time unit: The unit to use for the above time (seconds, minutes, hours, ...)

Alarms can be activated or de-activated from the Alarms page by clicking on the
corresponding button to the right.

Currently, the notification channels available are the following:

- Email: Alarms will send out an email as notification when triggered. The email
contains information about which Alarm was triggered, which Entity/Entities it
refers to, the amount of time passed since the last bit of data was received,
and potential issues that may have occurred in Orion or Quantum Leap if data
couldn't be retrieved.

## 5.5 Importing data from external source

As early mentioned, the entry point for any data management activity is
Expand Down