Commit c7f2235a authored by nimrod's avatar nimrod
Browse files

- Initial commit.

parents
Loading
Loading
Loading
Loading

.gitignore

0 → 100644
+32 −0
Original line number Diff line number Diff line
~*
*~
*.sw[op]
*.py[cod]
.DS_Store
__pycache__/
.vagrant/
vendor/
Thumbs.db
*.retry
.svn/
.sass-cache/
*.log
a.out
node-modules/
nbproject/
*.ipynb
.idea/
*.egg-info/
*.o
.classpath
.cache/
bower_components/
*.class
*.jar
secring.*
.*.kate-swp
.swp.*
.directory
.Trash-*
build/
dist/

LICENSE.txt

0 → 100644
+21 −0
Original line number Diff line number Diff line
MIT License

Copyright (c) 2016 Adar Nimrod

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

MANIFEST.in

0 → 100644
+5 −0
Original line number Diff line number Diff line
recursive-include check_s3_bucket *.py
exclude .pre-commit-config.yaml
include *.rst
include VERSION
include *.txt

README.rst

0 → 100644
+39 −0
Original line number Diff line number Diff line
check_s3_bucket
###############

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

Usage
-----

.. code:: shell

    $ check_s3_bucket --help
    usage: check_s3_bucket [-h]
                           bucket [regex] [warning_threshold] [critical_threshold]

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

    positional arguments:
      bucket              S3 bucket to check
      regex               Filename regex to check (defaults to *)
      warning_threshold   Warning threshold in hours (defaults to 25)
      critical_threshold  Critical threshold in hours (defaults to 49)

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

License
-------

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

Author
------

Nimrod Adar, `contact me <nimrod@shore.co.il>`_ or visit my `website
<https://www.shore.co.il/>`_. Patches are welcome via `git send-email
<http://git-scm.com/book/en/v2/Git-Commands-Email>`_. The repository is located
at: https://www.shore.co.il/git/.

VERSION

0 → 100644
+1 −0
Original line number Diff line number Diff line
0.1.0
Loading