Skip to main content

Backwork plug-in for HTTP notifications.

Project description

backwork-notifier-http

Support for HTTP notifications on backwork.

Installing

You can use pip to install this plug-in directly:

$ pip install backwork-notifier-http

Using

After installing the plug-in you will be able to use the -n http argument on backwork commands.

$ backwork --help
usage: backwork [-h] [-n NOTIFIERS] [--http-notifier-url HTTP_NOTIFIER_URL]
                [--http-notifier-bearer HTTP_NOTIFIER_BEARER]
                [--http-notifier-basic-user HTTP_NOTIFIER_BASIC_USER]
                [--http-notifier-basic-pass HTTP_NOTIFIER_BASIC_PASS]
                [--http-notifier-method HTTP_NOTIFIER_METHOD]
                [--http-notifier-data HTTP_NOTIFIER_DATA]
                [--http-notifier-params HTTP_NOTIFIER_PARAMS]
                [--http-notifier-add-headers HTTP_NOTIFIER_ADD_HEADERS]
                [--http-notifier-key HTTP_NOTIFIER_KEY]
                {backup,restore,upload,show,download} ...

positional arguments:
  {backup,restore,upload,show,download}

optional arguments:
  -h, --help            show this help message and exit
  -n NOTIFIERS, --notify NOTIFIERS
                        enable a notifier, it can be used multiple times
  --http-notifier-url HTTP_NOTIFIER_URL
                        The URL to be targeted as the HTTP request endpoint
  --http-notifier-bearer HTTP_NOTIFIER_BEARER
                        If set, backwork will use this token value for the HTTP
                        request authorization header.
  --http-notifier-basic-user HTTP_NOTIFIER_BASIC_USER
                        If set, backwork will use this value (along with --http-
                        notifier-basic-pass) for the HTTP request basic
                        authorization.
  --http-notifier-basic-pass HTTP_NOTIFIER_BASIC_PASS
                        If set, backwork will use this value (along with --http-
                        notifier-basic-user) for the HTTP request basic
                        authorization.
  --http-notifier-method HTTP_NOTIFIER_METHOD
                        The method to be used for the HTTP request. Default is
                        'POST'.
  --http-notifier-data HTTP_NOTIFIER_DATA
                        Data (JSON string) sent with the HTTP request
  --http-notifier-params HTTP_NOTIFIER_PARAMS
                        HTTP params (JSON string) to be sent with a GET request
  --http-notifier-add-headers HTTP_NOTIFIER_ADD_HEADERS
                        JSON String with additional headers to be sent with the
                        HTTP request. For authorization, use --http-notifier-bearer
                        or --http-notifier-basic-user & --http-notifier-basic-pass.
  --http-notifier-key HTTP_NOTIFIER_KEY
                        The key name for the error message (from backwork) that is
                        appended to the 'data' (--http-notifier-data) object. Use
                        '.' to traverse the JSON tree (up to 5 levels deep). For
                        example, --http-notifier-key="data.error.message" is 3
                        levels deep. By default, if no key is specified the error
                        message will not be appended.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

backwork-notifier-http-0.1.0.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

backwork_notifier_http-0.1.0-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

Details for the file backwork-notifier-http-0.1.0.tar.gz.

File metadata

  • Download URL: backwork-notifier-http-0.1.0.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.8.2

File hashes

Hashes for backwork-notifier-http-0.1.0.tar.gz
Algorithm Hash digest
SHA256 7f1c803a7f0bcc4e527180bb4279c1cbdb7cde4083ef53b320088af7c4ce6846
MD5 c7c1ee070b7916e044ed8cf3c9a4fae1
BLAKE2b-256 ef41b97bfc9aa60803485038072e4ab477978dc01dfeb7b9d081c9e895382648

See more details on using hashes here.

File details

Details for the file backwork_notifier_http-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: backwork_notifier_http-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.8.2

File hashes

Hashes for backwork_notifier_http-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8785446b744e9b2ee6f8dab45b7e41b4ec1a6bfaf28f10d6b51ab1c89dc0fa34
MD5 b7bf9bf3df106702d21b47daa2dc97c9
BLAKE2b-256 7cb55f8b116b613990f78a82ac8bc0305adcaf2163da7ea7905274ef97e8a185

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page