5
5
6
6
7
7
class Event (NextGenInstanceResource ):
8
- """ A taskrouter event resource """
8
+ """An Event resource representing a state change in a TaskRouter
9
+ Workspace.
10
+
11
+ See the `TaskRouter API reference
12
+ <https://www.twilio.com/docs/taskrouter/events>_`
13
+ for more information.
14
+
15
+ .. attribute:: event_type
16
+
17
+ An identifier for this event.
18
+
19
+ .. attribute:: account_sid
20
+
21
+ The unique ID of the Account that owns this Event.
22
+
23
+ .. attribute:: description
24
+
25
+ A description of the event.
26
+
27
+ .. attribute:: resource_type
28
+
29
+ The type of object this event is most relevant to (:class:`Task`,
30
+ :class:`Reservation`, :class:`Worker`).
31
+
32
+ .. attribute:: resource_sid
33
+
34
+ The unique ID of the object this event is most relevant to.
35
+
36
+ .. attribute:: event_date
37
+
38
+ The time this event was sent, in UTC ISO 8601 format.
39
+
40
+ .. attribute:: event_data
41
+
42
+ Data about this specific Event.
43
+ """
9
44
pass
10
45
11
46
@@ -16,11 +51,12 @@ class Events(NextGenListResource):
16
51
def list (self , ** kwargs ):
17
52
"""
18
53
Returns a page of :class:`Event` resources as a list. For paging
19
- information see :class:`NextGenListResource`
54
+ information see :class:`NextGenListResource`
55
+
20
56
:param minutes: (Optional, Default=15) Definition of the interval in
21
- minutes prior to now.
57
+ minutes prior to now.
22
58
:param start_date: (Optional, Default=15 minutes prior) Filter events
23
- by a start date.
59
+ by a start date.
24
60
:param end_date: (Optional, Default=Now) Filter events by an end date.
25
61
:param resource_sid: (Optional) Sid of the event resource.
26
62
:param event_type: (Optional) The type of event to filter by.
@@ -32,6 +68,7 @@ def get_instances(self, params):
32
68
Query the list resource for a list of InstanceResources.
33
69
Raises a :exc:`~twilio.TwilioRestException` if requesting a page of
34
70
results that does not exist.
71
+
35
72
:param dict params: List of URL parameters to be included in request
36
73
:param str page_token: Token of the page of results to retrieve
37
74
:param int page_size: The number of results to be returned.
0 commit comments