Skip to main content

Check that a file was added to an S3 bucket in the given time window and is of a reasonable size.

Project description

Check that a filename matching the regex was added to the bucket in the given time window.

Usage

$ check_s3_bucket --help
usage: check_s3_bucket [-h]
                       bucket [prefix] [age_warning_threshold]
                       [age_critical_threshold] [size_warning_threshold]
                       [size_critical_threshold]

Check that a file was added to an S3 bucket in the given time window and is of
a reasonable size.

positional arguments:
  bucket                S3 bucket to check
  prefix                Filter files by this prefix
  age_warning_threshold
                        Warning threshold for the age of the latest file in
                        hours (defaults to 24)
  age_critical_threshold
                        Critical threshold for the age of the latest file in
                        hours (defaults to 48)
  size_warning_threshold
                        Warning threshold for the difference in size between
                        the latest 2 files in percents (default to 25)
  size_critical_threshold
                        Critical threshold for the difference in size between
                        the latest 2 files in percents (default to 50)

optional arguments:
  -h, --help            show this help message and exit

License

This software is licensed under the MIT license (see the LICENSE.txt file).

Author

Nimrod Adar, contact me or visit my website. Patches are welcome via git send-email. The repository is located at: https://www.shore.co.il/git/.

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

check_s3_bucket-0.2.3-py2.py3-none-any.whl (4.6 kB view details)

Uploaded Python 2Python 3

File details

Details for the file check_s3_bucket-0.2.3-py2.py3-none-any.whl.

File metadata

  • Download URL: check_s3_bucket-0.2.3-py2.py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3

File hashes

Hashes for check_s3_bucket-0.2.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 46ad14e9e11b24ce042b8c19f17977abdd4d5e3cf6716e8807b18d85a8904f52
MD5 b0e129ab5f7a70fb03e4baf83f3bb632
BLAKE2b-256 68eac8aecaef75ea766f7fcb807c72b565344856ca25a53d537c63fb42591ef2

See more details on using hashes here.

Supported by

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