Skip to content

Commit 667214b

Browse files
committed
summary endpoint
request and response examples
1 parent ef51894 commit 667214b

File tree

1 file changed

+35
-3
lines changed

1 file changed

+35
-3
lines changed

source/includes/_activity.md

Lines changed: 35 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,12 +123,44 @@ form_url | URL to view this form | string
123123

124124
## Summary
125125

126+
126127
**Summary Metrics**
127128

128-
Description: count of objects handled, count of objects responded to, average response time, longest response time, count of objects that exceeded the SLA period.
129+
Access the summary metrics that are used to power the big number metrics you can see in Activity. This includes the number of objects handled, response count, average response time, agent handle time and a few others.
130+
131+
**
129132

130133
Request: summary
131134

135+
```json
136+
curl -H "Content-Type: application/json" -H "Auth-Api-Token: 12345678-1234-1234-1234-123456789" https://api.lexer.io/v1/activity/reports -d '
137+
{
138+
"type": "summary",
139+
"date_from": "2018-04-01T00:00:00+11:00",
140+
"date_to": "2018-04-30T23:59:59+11:00"
141+
}'
142+
```
143+
**Type:** summary
144+
145+
```json
146+
{
147+
"total_volume": 7526,
148+
"avg_response_time": 1315.27098046203,
149+
"min_response_time": 50.702796,
150+
"max_response_time": 200663.392234,
151+
"avg_action_response_time": 509.337687048021,
152+
"min_action_response_time": 4.908278,
153+
"max_action_response_time": 199826.523834,
154+
"total_responded_to": 3582,
155+
"broke_sla": 166,
156+
"broke_action_sla": 45,
157+
"avg_response_time_min": 21.9211830077005,
158+
"avg_action_response_time_min": 8.48896145080035
159+
}
160+
```
161+
162+
163+
132164
**Summary Volume**
133165

134166
Description: daily volume of objects in each workflow state.
@@ -202,6 +234,6 @@ Request:
202234

203235
The API may rate limit requests made by your application. Our rate limits are managed by an allowed number of requests per time window. A single request could be to retrieve a list of users, or query a particular chart endpoint.
204236

205-
The rate limit is *100 requests per 5 minutes per API Token.*
237+
The rate limit is **100 requests per 5 minutes per API Token.**
206238

207-
In the case you are rate limited a "429 Rate limited exceeded" response will be returned. We suggest waiting a few minutes and trying again.
239+
In the case you are rate limited a "429 Rate limited exceeded" response will be returned.

0 commit comments

Comments
 (0)