This plugin reads how many events of defined type were triggered within defined time.
Project description
Plugin documentation
Input
Plugin takes input (as arg payload).
Input template/example:
{
"eventType": "page-view",
"timeSpan": "-15m"
}
"eventType"
value should be a string containing type of event that user wants
to count.
"timeSpan"
should be a string containing time span which user wants to search in,
for example using "-1h30min"
as "timeSpan"
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 instance of Result class, with "payload"
as port
and an integer representing number of
events with selected type found in given "timeSpan"
, assigned to Result's value
parameter.
Example:
port='payload'
value=39
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for tracardi-event-counter-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7811c96d2f7400f82e6efdc9ae22a8f3e862dcc5c1c6d362a46fe65784876814 |
|
MD5 | 58dcfc1d1fd9e8ec696f62960c4f9141 |
|
BLAKE2b-256 | 67b463399a4f3510bea4c4d1608c07a21ac316e076e305267fb2fd0d0da7dc3b |
Hashes for tracardi_event_counter-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d8a72ccc1ff8118350b05dcf39db64c42507e0bdea7ebd423ec2563def368460 |
|
MD5 | 5b861bec69aa7ab98e28471aaa97dc10 |
|
BLAKE2b-256 | 51714cfa0aa97637767b97dc361fdfbbd2c494749c3d9031b5163b443e4c25f0 |