55
66
77class 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+ """
944 pass
1045
1146
@@ -16,11 +51,12 @@ class Events(NextGenListResource):
1651 def list (self , ** kwargs ):
1752 """
1853 Returns a page of :class:`Event` resources as a list. For paging
19- information see :class:`NextGenListResource`
54+ information see :class:`NextGenListResource`
55+
2056 :param minutes: (Optional, Default=15) Definition of the interval in
21- minutes prior to now.
57+ minutes prior to now.
2258 :param start_date: (Optional, Default=15 minutes prior) Filter events
23- by a start date.
59+ by a start date.
2460 :param end_date: (Optional, Default=Now) Filter events by an end date.
2561 :param resource_sid: (Optional) Sid of the event resource.
2662 :param event_type: (Optional) The type of event to filter by.
@@ -32,6 +68,7 @@ def get_instances(self, params):
3268 Query the list resource for a list of InstanceResources.
3369 Raises a :exc:`~twilio.TwilioRestException` if requesting a page of
3470 results that does not exist.
71+
3572 :param dict params: List of URL parameters to be included in request
3673 :param str page_token: Token of the page of results to retrieve
3774 :param int page_size: The number of results to be returned.
0 commit comments