Releases: opsview/plugnpy
Releases · opsview/plugnpy
plugnpy-v2.0.14
- Use utf-8 encoding for cache manager keys
plugnpy-v2.0.12
- Support for negative thresholds when using conversion factors
plugnpy-v2.0.8
- Auto convert byte rate units
plugnpy-v2.0.7
- Added set_data method to CacheManagerUtils
- Added unit mapping. e.g. using the unit 'per_second' will display '/s' in the metric output
- host, port and namespace are now CacheManagerUtils attributes
plugnpy-v2.0.6
-
Updated 'make test' target to run tests on py27 and py37 using tox
-
Fixed geventhttpclient dependency issue - setup.py was reading the
version from init.py, but init.py imports cachemanager.py
which tries to import geventhttpclient, which isn't installed -
Fixed/suppressed linting issues
-
Updated examples to use -> /usr/bin/env python3
-
Added helper methods
- Generating cache manager keys
Added CacheManagerUtils.generate_key to help generate keys for
cachemanager, any arguments passed to the method are escaped if
they contain the delimeter and then joined by the delimiter before
a SHA-256 hash is generated. - Dynamic imports
Added dynamic_import and import_modules methods to utils to help
with dynamic imports.
- Generating cache manager keys
plugnpy-v2.0.5
- If an exception was raised inside the 'func' passed into the
get_via_cachemanager, the set_data call would never happen. - This meant that the next call to the cachemanager would not be able
to get the lock, resulting in the call timing out. - Any exceptions that are raised in the func are now caught and the
error message is stored in the cachemanager under the 'error' key.
plugnpy-v2.0.4
- CacheManagerUtils now requires TTL as an explicit parameter.
plugnpy-v2.0.3
Add handling for unit 'per_second' to ensure graphing of data:
- Summary unit '/s'
- Performance unit 'per_second'
plugnpy-v2.0.2
Add cache manager client
- Remove conda artifacts from Makefile
- Add CacheManagerClient with simple interface to get/set data
- Add CacheManagerUtils with helper function to handle get/set
- Add examples/check_disk.py, plugin written using cachemanager
plugnpy-v2.0.1
- Fix inconsistencies:
- exit with code 3 when -h/--help is called
- raname msg_fmt field in check.add_metric to display_format
- refactor conversion implementation
- add support for IEC and SI bytes conversion
- add check.evaluate() and check.convert_value() static helper methods
- add support for custom precision for summary and perf data
- add constants for status codes and units
- README improvements
- Fix encoding error in README
- Fix missing perf data for numbers with type str