Alarm gates¶
List of commands:
- Create
- Update alarm
- List alarm gates
Create alarm gate¶
To create a new alarm gate (notifications about opened and closed conditions by devices) use the command:
zdm gate alarm create name workspace_id threshold email tag(s)
where name
is the name of the gate
workspace_id
is the uid of the workspace in which you want to monitor condition
threshold
is a int representing the minimum duration of a condition to be notified
email
is the email where you want to receive notifications
tag(s)
is a list of tags to filter on conditions labels
Update alarm gate¶
To update an alarm gate use the command:
zdm gate alarm update gate_id
you can change gate’s configuration using the following options: ::
* --name
to change the gate’s name
* --tag
(multiple option) to replace gate’s tag array
* --threshold
to change the gate’s threshold
List export gates¶
To see a list of your alarm gates use the command:
zdm gate alarm all workspace_id
where workspace_id
is the uid of the workspace
You also have the possibility to add filters on gates using the following options:
--status active|disabled
to filter on gate’s status