notice command

The notice command is used to fetch a single notice.

Usage

user@host:~$ pebble notice --help
Usage:  pebble notice [notice-OPTIONS] <id-or-type> [<key>] The notice command fetches a single notice, either by ID (1-arg variant), orby 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)

Examples

You can fetch a notice either by ID or by type/key combination.

To fetch the notice with ID “1”:

user@host:~$ pebble notice 1
id: "1"user-id: 1000type: customkey: example.com/foofirst-occurred: 2023-09-15T04:16:09.179395298Zlast-occurred: 2023-09-15T04:16:19.487035209Zlast-repeated: 2023-09-15T04:16:09.179395298Zoccurrences: 3expire-after: 168h0m0s

To fetch the notice with type “custom” and key “example.com/bar”:

user@host:~$ pebble notice custom other.com/bar
id: "2"user-id: publictype: customkey: other.com/barfirst-occurred: 2023-09-15T04:16:17.180049768Zlast-occurred: 2023-09-15T04:16:17.180049768Zlast-repeated: 2023-09-15T04:16:17.180049768Zoccurrences: 1last-data:    name: value    email: john@smith.comexpire-after: 168h0m0s

Read more: Notices.