Skip to main content

This plugin reads how many events of defined type were triggered within defined time.

Project description

Event counter

This plugin reads how many events of defined type were triggered within defined time.

Configuration

Example

{
 "event_type": "page-view",
 "time_span": "-15m"
}
  • event_type - value should be a string containing type of event that user wants to count.
  • time_span - should be a string containing time span which user wants to search in, for example using "-1h30min" as "time_span" on 1st March 2022, 1:00 (a.m.) results in searching through all events that happened between 28th February 2022, 23:30 and 1st March 2022, 1:00 (a.m.). Presence of "-" sign in timeSpan does not matter, since it is stripped anyway. For more details, visit pytimeparse library documentation.

Output

Plugin outputs number of found events.

Example:

{
    "events" : 39
}

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

tracardi-event-counter-0.6.0.tar.gz (6.2 kB view hashes)

Uploaded Source

Built Distribution

tracardi_event_counter-0.6.0-py3-none-any.whl (6.1 kB view hashes)

Uploaded 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