Aller au contenu

Tag Matching

Ce contenu n’est pas encore disponible dans votre langue.

If you tagged your URLs, they’re not going to be notified unless you explicitly reference them with —tag= (or -g). You can always check to see what URLs have been loaded using the all tag directive paired with —dry-run:

If you have access to the Apprise CLI (installed via pip install apprise) then you can easily trace what aligns with different tag combinations. The --dry-run will cause apprise to not perform any action, but merely list what matches to the terminal.

This simply lists all entries found in the apprise.txt file whether they have a tag or not:

Terminal window
apprise --dry-run --tag=all \
--config=/my/path/to/my/config/apprise.txt

Without a --tag specified, you’ll only match URLs that have no tag associated with them:

Terminal window
# List notifications that would otherwise be triggered without a tag specified:
apprise --dry-run \
--config=/my/path/to/my/config/apprise.txt

Now we can list all defined URLs that have the tag devops assigned to them:

Terminal window
apprise --dry-run --tag=devops \
--config=/my/path/to/my/config/apprise.txt

Once you have identified your tagging issue in your configuration to the point it lists correctly using the above commands above, you can send your notification by removing the --dry-run switch and add the --body (-b) at a minimum to send your notification(s).

General filter expressions follow:

FilterSelected services
--tag TagAMatch TagA
--tag TagA,TagBMatch TagA AND TagB (Strict)
--tag 'TagA' --tag 'TagBMatch TagA OR TagB (Union)
--tag 'TagA,TagC --tag TagBMatch ( TagA AND TagC) OR TagB. This is a mix of Strict and Union
--tag allMatch ALL services (tagged and untagged).
(Omitted)Notify untagged services only.
Questions or Feedback?

Documentation

Notice a typo or an error? Report it or contribute a fix .

Technical Issues

Having trouble with the code? Open an issue on GitHub:

Made with love from Canada