spec/integration/taskrouter/v1/workspace/worker/worker_statistics_spec.rb in twilio-ruby-5.2.3 vs spec/integration/taskrouter/v1/workspace/worker/worker_statistics_spec.rb in twilio-ruby-5.3.0
- old
+ new
@@ -27,74 +27,57 @@
it "receives fetch responses" do
@holodeck.mock(Twilio::Response.new(
200,
%q[
{
- "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
- "url": "https://taskrouter.twilio.com/v1/Workspaces/WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Workers/WKaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Statistics",
"cumulative": {
+ "reservations_created": 100,
+ "reservations_accepted": 100,
+ "reservations_rejected": 100,
+ "reservations_timed_out": 100,
+ "reservations_canceled": 100,
+ "reservations_rescinded": 100,
"activity_durations": [
{
- "avg": 0.0,
- "friendly_name": "80fa2beb-3a05-11e5-8fc8-98e0d9a1eb73",
"max": 0,
- "min": 0,
+ "min": 900,
"sid": "WAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
- "total": 0
+ "friendly_name": "Offline",
+ "avg": 1080,
+ "total": 5400
},
{
- "avg": 0.0,
- "friendly_name": "817ca1c5-3a05-11e5-9292-98e0d9a1eb73",
"max": 0,
- "min": 0,
+ "min": 900,
"sid": "WAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
- "total": 0
- },
- {
- "avg": 0.0,
"friendly_name": "Busy",
- "max": 0,
- "min": 0,
- "sid": "WAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
- "total": 0
+ "avg": 1012,
+ "total": 8100
},
{
- "avg": 0.0,
- "friendly_name": "Idle",
"max": 0,
"min": 0,
"sid": "WAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
+ "friendly_name": "Idle",
+ "avg": 0,
"total": 0
},
{
- "avg": 0.0,
- "friendly_name": "Offline",
"max": 0,
"min": 0,
"sid": "WAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
- "total": 0
- },
- {
- "avg": 0.0,
"friendly_name": "Reserved",
- "max": 0,
- "min": 0,
- "sid": "WAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
+ "avg": 0,
"total": 0
}
],
- "end_time": "2015-08-18T16:36:19Z",
- "reservations_accepted": 0,
- "reservations_canceled": 0,
- "reservations_created": 0,
- "reservations_rejected": 0,
- "reservations_rescinded": 0,
- "reservations_timed_out": 0,
- "start_time": "2015-08-18T16:21:19Z",
- "tasks_assigned": 0
+ "start_time": "2008-01-02T00:00:00Z",
+ "end_time": "2008-01-02T00:00:00Z"
},
+ "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
+ "workspace_sid": "WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"worker_sid": "WKaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
- "workspace_sid": "WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
+ "url": "https://taskrouter.twilio.com/v1/Workspaces/WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Workers/WKaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Statistics"
}
]
))
actual = @client.taskrouter.v1.workspaces("WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
\ No newline at end of file