Alerts

This page describes the commands to manage Lenses Alerts via the CLI.

View all raised alert notifications

Copy

lenses-cli alerts

View all alert settings

Copy

lenses-cli alert settings

View an alert setting

lenses-cli alert setting --id=2000

Enable or disable an alert setting

Enabling

lenses-cli alert setting --id=1000 --enable

Disabling

lenses-cli alert setting --id=1000 --enable=false

View all conditions that belong to a specific alert setting

Create or update an existing condition for a specific alert setting

Update an existing condition using flags

Create or update a condition from a file

Command line flags are ignored when loading from files.

Delete an existing condition for a specific alert

The value of the `--alert` flag is the Alert ID that the alert setting belongs to whereas the value of the `--condition` flag is the UUID of the condition to delete.

Last updated

Was this helpful?