Skip to content

Commit

Permalink
doc(readme): fix command sample design
Browse files Browse the repository at this point in the history
  • Loading branch information
macrat committed Jun 26, 2022
1 parent c68dce7 commit 749d0ee
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,17 +73,17 @@ Ayd check the target specified as URLs if alive or not, and report to the alert
A command to start Ayd looks like below.

``` plain text
$ ayd -a exec:/path/to/alert.sh 10m ping:192.168.1.1 http://example.com
────────────┬──────────── ─┬─ ───────────────┬───────────────────
Target URLs
Check if 192.168.1.1 is responding to ping,
and if http://example.com is serving.
Schedule
Check targets every 10 minutes.
Alert URL
Execute /path/to/alert.sh if the target status changed.
$ ayd -a exec:/path/to/alert.sh 10m ping:192.168.1.1 http://example.com
────────────┬────────────┘└─┬─┘└───────────────┬───────────────────
Target URLs
Check if 192.168.1.1 is responding to ping,
and if http://example.com is serving.
Schedule
Check targets every 10 minutes.
Alert URL
Execute /path/to/alert.sh if the target status changed.
```

The [common schemes](#url-scheme) for target URL or alrt URL, are supported by Ayd itself.
Expand Down

0 comments on commit 749d0ee

Please sign in to comment.