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
To use the database integration, do 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.
ex. .. code-block:: python
db.add_alert(Alert(“{‘message’: ‘test message’}“, time.time(),‘Sensor_ref_name’, [IRFlow Alert Id], [Integration Id], [Tenant Id], [Alert Type 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.4.tar.gz
(17.4 kB
view hashes)
Built Distribution
Close
Hashes for syncurity_utils-0.3.4-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aff2a2b7d33961667971ccd6ad3d8cc5b9f5aacef3489ccd1cb457e88e0c8bc6 |
|
MD5 | f94d28755ed375bd40daefb301693dc8 |
|
BLAKE2b-256 | 68d881795dbf8538022fef426f1dc7c94a18629b75654f83969537f524aec3d7 |