Skip to main content

Notification statistic collector

Project description

Stats collector

Notification event collector

Instalation

Install with pip:

$ pip install notifstats

API

capture_event receives two arguments:

data : Analytic data to be captured. See Usage section. is_production: Default to True. If False, the data will be sent to staging BigQuery.

Usage

from datetime import datetime
from notifstats import capture_event


if __name__ == "__main__":
    data = {
        "notification_id": "test-12345",
        "event_type": "sent_to_slackbot",
        "object_id": "test-67890",
        "taxonomy_id": "test-2345",
        "created_at": datetime.now().isoformat(),
        "notification_type": "segmented",
    }

    capture_event(data=data, is_production=False)

License

MIT

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

notifstats-0.0.4.tar.gz (2.3 kB view hashes)

Uploaded Source

Built Distribution

notifstats-0.0.4-py2.py3-none-any.whl (3.6 kB view hashes)

Uploaded Python 2 Python 3

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