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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file syncurity_utils-0.4.1.tar.gz.
File metadata
- Download URL: syncurity_utils-0.4.1.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 |
b43f865efd2bc2ba63eb30424c8680d001e7c88a01ffef89ef6de128487a8300
|
|
| MD5 |
86a86a481b1c2ac834850a5cee80f543
|
|
| BLAKE2b-256 |
7e433a048133e2ca7437cfedbdc20a255b0437d7cbcc711ab0e6c682f56c5d5a
|
File details
Details for the file syncurity_utils-0.4.1-py2.py3-none-any.whl.
File metadata
- Download URL: syncurity_utils-0.4.1-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 |
511718520020b4a1bec8e1c52a90585599116237042aaeba7d0f7b9f74b84571
|
|
| MD5 |
1fbf2b2c60a3f23b0b67dc777dbe8a90
|
|
| BLAKE2b-256 |
560cc0c53d6a28aec0a2435c9196f12ac0a229025b9366a4cf484c45cb14205a
|