Event statistics report aggregate counts of events broken out by outcome
(success, failure, or error). Event statistics can be grouped by
arbitrary lead data and the resulting "row" represents events counted by
the combination of the specified lead data fields. Statistics can also
be bucketed into intervals (minutely, hourly, daily, weekly, monthly,
yearly) and doing so adds the start
and end
properties to the results
and the counts represent the events that occurred during the time frame
defined by the start
and end
timestamps.
The /events/stats
resource is used to count events, broken out by outcome (success, failure, error) . The event count can be grouped by any field collected with the lead or appended to the lead during flow processing. The API also supports returning results in JSON or CSV using the appropriate MIME type in the Accept
header.
OK
curl -i -X GET \ 'https://app.leadconduit.com/events/stats?type=string&id=string&lhv=lead.state&op=is%20equal%20to&rhv=TX&rule_set=%5Bobject%20Object%5D&group_by=string&interval=string&timezone=0&start=2019-08-24T14%3A15%3A22Z&end=2019-08-24T14%3A15%3A22Z&outcome=string&column=string&by_lead=true'
[- {
- "start": "2019-08-24T14:15:22Z"
}
]