import Limitry from '@limitry/sdk';const client = new Limitry({ apiKey: process.env['LIMITRY_API_KEY'], // This is the default and can be omitted});const response = await client.events.getSummary({ endDate: '2019-12-27T18:11:19.117Z', startDate: '2019-12-27T18:11:19.117Z',});console.log(response.totalEvents);
Copy
{ "totalEvents": 123, "values": {}}
Events
Get events summary
Retrieve aggregated metrics for events within a date range.
GET
/
events
/
summary
JavaScript
Copy
import Limitry from '@limitry/sdk';const client = new Limitry({ apiKey: process.env['LIMITRY_API_KEY'], // This is the default and can be omitted});const response = await client.events.getSummary({ endDate: '2019-12-27T18:11:19.117Z', startDate: '2019-12-27T18:11:19.117Z',});console.log(response.totalEvents);