Skip to main content

skylog-sdk

Release Build status Commit activity License

Python SDK for Skylog Integration

Skylog is a robust service designed for seamless integration with various platforms like Sentry, Telegram, and more, enabling the efficient transmission of logs and rapid identification of issues.

This Python SDK facilitates easy interaction with Skylog services, allowing users to:

  • fire alert
  • stop alert
  • notify

How to install

install from gitlab

pip install skylog-sdk

Setup and Configuration

  • Environment Variables: Configure the following variables in your project environment:

    • DEFAULT_SKY_LOG_ALERTING_TELEGRAM_ALERT_NAME: Default alert name for Telegram
    • DEFAULT_SKY_LOG_ALERTING_PHONE_CALL_ALERT_NAME: Default alert name for phone calls
    • DEFAULT_SKY_LOG_ALERTING_SMS_ALERT_NAME: Default alert name for SMS
    • SKY_LOG_ALERTING_BASE_URL: Base URL for Skylog API calls
    • SKY_LOG_ALERTING_TOKEN: Your Skylog authentication token
  • Proxy Configuration: If using a proxy, include the following additional variables:

    • PROXY_USERNAME
    • PROXY_PASSWORD
    • PROXY_IP
    • PROXY_PORT

Usage Example

from skylog import AlertingSkyLogClient, AlertingProvider

# Initialize the Skylog client with the desired provider (e.g., Telegram)
client = AlertingSkyLogClient(provider=AlertingProvider.telegram)

# Example Operations:
client.fire_alert(description='Issue detected', instance_name='unique_key', provider=AlertingProvider.sms)
client.stop_alert(description='Issue resolved', instance_name='unique_key', provider=AlertingProvider.sms)
client.notify(description='Alert notification', instance_name='unique_key', provider=AlertingProvider.telegram)

Concepts to Understand

Alertname and Instance

  • Alertname: Represents the provider or service. It identifies where Skylog sends alerts.
  • Instance: A unique identifier within a group alert, specifying a particular part of a universal alert.

Alerts Management

  • Firing an Alert: Triggering an alert, resulting in immediate notifications sent to relevant endpoints.
  • Stopping an Alert: Removing a fired alert, resolving it and stopping further notifications.
  • Notifying an Alert: Sending messages to endpoints without adding records to the triggered list.

Metadata

Release files for skylog-sdk 0.1.15

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for skylog-sdk 0.1.15
File Size Uploaded Provenance Actions
skylog_sdk-0.1.15.tar.gz 5.9 kB Without provenance Details for skylog_sdk-0.1.15.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for skylog-sdk 0.1.15
File Interpreter ABI Platform Actions
skylog_sdk-0.1.15-py3-none-any.whl Python 3 none any Details for skylog_sdk-0.1.15-py3-none-any.whl

Total release size: 14.6 kB

Release files / skylog_sdk-0.1.15.tar.gz

Download URL skylog_sdk-0.1.15.tar.gz
Size 5.9 kB
Tags Source
SHA-256 checksum
How to use checksums
9df4abc0e15babf40158e6abb77364edd98d54ffa9e26222e61f3905d21c4f73
BLAKE2b-256 checksum
How to use checksums
dbcceab8dfdad4e3cd869e8283123820902b3148d9a40158bf4b691da340d5b3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.0.1 CPython/3.11.11 Linux/6.8.0-1017-azure

Release files / skylog_sdk-0.1.15-py3-none-any.whl

Download URL skylog_sdk-0.1.15-py3-none-any.whl
Size 8.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
52c8e3f5c4b557c799ee309f70c68a493a5abaefa09cc7dcc020b4f552313429
BLAKE2b-256 checksum
How to use checksums
21f5076bd571f04624ff2390780b4e7c2e2ec2e1d25b2dc92ae6b06032e357a8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.0.1 CPython/3.11.11 Linux/6.8.0-1017-azure

Security for skylog-sdk 0.1.15

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page