Skip to main content

Syncurity Common Util Classes and Functions

Project description

https://badge.fury.io/py/syncurity-utils.svg https://circleci.com/gh/Syncurity/syncurity-utils/tree/master.svg?style=svg&circle-token=8a8847e25e6eed888591abb3fbc40ba165d2417e https://api.codacy.com/project/badge/Grade/878a6906207f44d99f0b746b4e30c55f https://api.codacy.com/project/badge/Coverage/878a6906207f44d99f0b746b4e30c55f

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


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.8.tar.gz (17.7 kB view details)

Uploaded Source

Built Distribution

syncurity_utils-0.3.8-py2.py3-none-any.whl (16.2 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file syncurity_utils-0.3.8.tar.gz.

File metadata

  • Download URL: syncurity_utils-0.3.8.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

Hashes for syncurity_utils-0.3.8.tar.gz
Algorithm Hash digest
SHA256 81d254c24ea9cb1d8f2d75cddae984badc41c8feff8803a399e5ceedf62be950
MD5 6a99a9468627e40234ff46e67410a1cd
BLAKE2b-256 d4b3ff54594f7b467e942ad7e8ff73aa844fd4f84037b531604833dc6c51e113

See more details on using hashes here.

File details

Details for the file syncurity_utils-0.3.8-py2.py3-none-any.whl.

File metadata

  • Download URL: syncurity_utils-0.3.8-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

Hashes for syncurity_utils-0.3.8-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 1bd23e650c9f682d547e965dee3bbea9866825024d11354a36e6cb4613219208
MD5 14f0e0ff5a1b37e527ca6d15012d70a0
BLAKE2b-256 b3355a2199e782e06bbc13fafdeb3227c947b7ecdb8d35ab6b788eaf0607f573

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page