Skip to main content

A python client for sending events to lucos_loganne

Project description

lucos_loganne_pythonclient

A python client for sending events to lucos_loganne.

Environment Variables

The following environment variables must be set for the package to function:

  • SYSTEM: A unique identifier for the system or service sending the events. This is used as the User-Agent in the HTTP request and the source field in the loganne event.
  • LOGANNE_ENDPOINT: The full URL of the /events endpoint of a running lucos_loganne instance.

API

The package exposes a single function:

updateLoganne(type, humanReadable, url=None)

Sends an event to the Loganne service.

  • type (str, required): The type of event being logged.
  • humanReadable (str, required): A description of the event that is easy for humans to understand.
  • url (str, optional): A link to a human-readable page regarding the item the event pertains to. Defaults to None.

Usage

from loganne import updateLoganne

# Ensure SYSTEM and LOGANNE_ENDPOINT env vars are set
updateLoganne(
    type="contactUpdated",
    humanReadable="The Contact \"John Doe\" has been updated",
    url="https://contacts.example.com/contact/123456"
)

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

lucos_loganne_pythonclient-1.0.15.tar.gz (2.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lucos_loganne_pythonclient-1.0.15-py3-none-any.whl (2.4 kB view details)

Uploaded Python 3

File details

Details for the file lucos_loganne_pythonclient-1.0.15.tar.gz.

File metadata

File hashes

Hashes for lucos_loganne_pythonclient-1.0.15.tar.gz
Algorithm Hash digest
SHA256 3187424c2027df8a7009bc058cafb356952f949a5c71f5981207a14053bb0315
MD5 66b50e1a30f3f7d17361cc1bcc8400b6
BLAKE2b-256 37ab354df40a9a3e6d7db513fa355deeda3d8e82251a445da420b68eb3c1775e

See more details on using hashes here.

File details

Details for the file lucos_loganne_pythonclient-1.0.15-py3-none-any.whl.

File metadata

File hashes

Hashes for lucos_loganne_pythonclient-1.0.15-py3-none-any.whl
Algorithm Hash digest
SHA256 7a3653871f1a29c594e805e1113e380323f77e7fa2380e69288c4b21e62ca307
MD5 3a9866b9f3bd868147dc5c13284ade89
BLAKE2b-256 314a5b010e78fddb2a29ddcb379e2c11246f8d6f99ef3c7411d673c29362123c

See more details on using hashes here.

Supported by

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