Skip to content

Commit 2157a31

Browse files
committed
Making the alert command more consistent with the rest of our package
1 parent 2e8bf75 commit 2157a31

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,12 @@ Run `pagertree --help` to see all available commands and options.
8888
| Command | Description |
8989
|---------|-------------|
9090
| `pagertree alerts list` | List all alerts. |
91-
| `pagertree alerts create --title "Out of Memory" --team-ids "01JT13C98M186XA3QTRFC250MT"` | Create a new alert. |
91+
| `pagertree alerts list --status "open"` | List open alerts. |
92+
| `pagertree alerts create --title "Out of Memory" --team-id "01JT13C98M186XA3QTRFC250MT"` | Create a new alert. |
93+
| `pagertree alerts create --title "Out of Memory" --alias "oom" --team-id "01JT13C98M186XA3QTRFC250MT"` | Create a new alert with an alias. |
9294
| `pagertree alerts show "01JT13CYDAMAJDM0G8HR1X8BMY"` | Show details of an alert. |
95+
| `pagertree alerts acknowledge "01JT13CYDAMAJDM0G8HR1X8BMY"` | Acknowledge an alert. |
96+
| `pagertree alerts resolve "01JT13CYDAMAJDM0G8HR1X8BMY"` | Resolve an alert. |
9397
| `pagertree teams list` | List all teams. |
9498
| `pagertree teams current-oncall "01JT13C98M186XA3QTRFC250MT"` | List current on-call users for a team. |
9599

commands/alerts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ def alerts():
99
@alerts.command(name="create")
1010
@click.option("--title", required=True, help="Title of the alert")
1111
@click.option("--description", help="Description of the alert")
12-
@click.option("--team-ids", multiple=True, help="IDs of the teams to notify")
12+
@click.option("--team-id", "team_ids", multiple=True, help="Team IDs to route the alert to")
1313
@click.option("--urgency", type=click.Choice(["silent", "low", "medium", "high", "critical"]), default="medium", help="Priority of the alert")
1414
@click.option("--tags", multiple=True, help="Tags for the alert")
1515
@click.option("--alias", help="Alias for the alert")

0 commit comments

Comments
 (0)