-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Structural changes to the reference docs.
- Loading branch information
1 parent
d826556
commit 1f50b01
Showing
40 changed files
with
234 additions
and
416 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,6 +15,46 @@ The notice command fetches a single notice, either by ID (1-arg variant), or | |
by unique type and key combination (2-arg variant). | ||
[notice command options] | ||
--uid= Look up notice from user with this UID (admin only; 2-arg variant only) | ||
--uid= Look up notice from user with this UID (admin only; | ||
2-arg variant only) | ||
``` | ||
<!-- END AUTOMATED OUTPUT --> | ||
|
||
## Examples | ||
|
||
You can fetch a notice either by ID or by type/key combination. | ||
|
||
To fetch the notice with ID "1": | ||
|
||
```{terminal} | ||
:input: pebble notice 1 | ||
id: "1" | ||
user-id: 1000 | ||
type: custom | ||
key: example.com/foo | ||
first-occurred: 2023-09-15T04:16:09.179395298Z | ||
last-occurred: 2023-09-15T04:16:19.487035209Z | ||
last-repeated: 2023-09-15T04:16:09.179395298Z | ||
occurrences: 3 | ||
expire-after: 168h0m0s | ||
``` | ||
|
||
To fetch the notice with type "custom" and key "example.com<span></span>/bar": | ||
|
||
```{terminal} | ||
:input: pebble notice custom other.com/bar | ||
id: "2" | ||
user-id: public | ||
type: custom | ||
key: other.com/bar | ||
first-occurred: 2023-09-15T04:16:17.180049768Z | ||
last-occurred: 2023-09-15T04:16:17.180049768Z | ||
last-repeated: 2023-09-15T04:16:17.180049768Z | ||
occurrences: 1 | ||
last-data: | ||
name: value | ||
email: [email protected] | ||
expire-after: 168h0m0s | ||
``` | ||
|
||
Read more: [Notices](../notices.md). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,6 +15,25 @@ The notify command records a custom notice with the specified key and optional | |
data fields. | ||
[notify command options] | ||
--repeat-after= Prevent notice with same type and key from reoccurring within this duration | ||
--repeat-after= Prevent notice with same type and key from reoccurring | ||
within this duration | ||
``` | ||
<!-- END AUTOMATED OUTPUT --> | ||
|
||
## Examples | ||
|
||
To record `custom` notices, use `pebble notify` -- the notice user ID will be set to the client's user ID: | ||
|
||
```{terminal} | ||
:input: pebble notify example.com/foo | ||
Recorded notice 1 | ||
``` | ||
|
||
Notify with two data fields: | ||
|
||
```{terminal} | ||
:input: pebble notify other.com/bar name=value [email protected] | ||
Recorded notice 2 | ||
``` | ||
|
||
Read more: [Notices](../notices.md). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.