Syncurity Common Util Classes and Functions
Project description
The syncurity-utils package enables Automation and Orchestration efforts with the IR-Flow platform, in conjunction with our other python packages.
Usage
Available on PyPI
$ pip install syncurity-utils
Use in your Stackstorm pack like so:
from syncurity_utils import typecheck, find_domain
from syncurity_utils.exceptions import TypecheckException
You can use the integration by doing the following:
from syncurity_utils.db.db import StackstormDB
from syncurity_utils.db.alert import Alert
import time
db = StackstormDB("[user]", "[pass]", "[Database Name]", "[host]", [port])
At this point you can then get access to the helper methods for creating and querying alerts.
example:
db.add_alert(Alert(“{‘message’: ‘test message’}“, time.time(),‘Sensor_ref_name’, [IRFlow Alert Id], [Integration Id], [Tenant Id], [Alert Type Id], [ttl_seconds], [inserted_timestamp], [parent_alert_id]))
db.delete_alert(1)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
syncurity_utils-0.3.9.tar.gz
(17.7 kB
view details)
Built Distribution
File details
Details for the file syncurity_utils-0.3.9.tar.gz
.
File metadata
- Download URL: syncurity_utils-0.3.9.tar.gz
- Upload date:
- Size: 17.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 347e96d6987d88234349b6a1d7149f95c3607b9b48d727d6fe0dd71b7568e9c1 |
|
MD5 | 60e32f5155b7d315a202c5d8f8312ce8 |
|
BLAKE2b-256 | 05842cd56be6de4adf8651d92ac422a36d6b0ed6d10b3167bba2f7a78afd0324 |
File details
Details for the file syncurity_utils-0.3.9-py2.py3-none-any.whl
.
File metadata
- Download URL: syncurity_utils-0.3.9-py2.py3-none-any.whl
- Upload date:
- Size: 16.2 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6e3ebdaa089bc6944df743a1a3872ac7ca1867403e8dd1372d43a6e75dc3297a |
|
MD5 | 22c0a7a0415858d4c7f0c62684eef457 |
|
BLAKE2b-256 | c4059d78d02aba872231c2dec84d4dc2f6acfe193df645a176ad23e5d1a1a067 |