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.4.0.tar.gz
(17.6 kB
view details)
Built Distribution
File details
Details for the file syncurity_utils-0.4.0.tar.gz
.
File metadata
- Download URL: syncurity_utils-0.4.0.tar.gz
- Upload date:
- Size: 17.6 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 | f7d2d6c6586f1946e41d99fadd5a0c94d7ce4eb9cbd24b6a76060ab498c66db7 |
|
MD5 | 794dd15891e89f3eaddedde8e0866737 |
|
BLAKE2b-256 | dcb1f42fdf26830d20b178fc9e353bba7e33d7b2cfcd4bf4ba505d0a6e24c0d2 |
File details
Details for the file syncurity_utils-0.4.0-py2.py3-none-any.whl
.
File metadata
- Download URL: syncurity_utils-0.4.0-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 | 36edbc6bb3f34260affc8a3839c595d636344b14dae98383590181a4e5730890 |
|
MD5 | 1c7533df374f7256ecf71c65be9f2c1d |
|
BLAKE2b-256 | cbd4bd4ea0c699ec9e38b6af8dd680409d320ac2cfb24a1ff8201889ea0ffe3f |