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.
Requirements
When using syncurity-utils in Stackstorm, you must install GCC.
On Centos7, run the following command to install GCC:
$ sudo yum -y install gcc
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]))
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.7.tar.gz
(17.7 kB
view hashes)
Built Distribution
Close
Hashes for syncurity_utils-0.3.7-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 862773e3160a85c778124e22c027a1e0ae97534fb4d92b29d06975afa9310145 |
|
MD5 | b41d119788699a676ca2162055cf6b3e |
|
BLAKE2b-256 | 88e8b7f3a2e5af215f6392c35d957409c2869d4b6c5b9461f725fede8a80d772 |