• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5  margin: 0;
6  padding: 0;
7  border: 0;
8  font-weight: inherit;
9  font-style: inherit;
10  font-size: 100%;
11  font-family: inherit;
12  vertical-align: baseline;
13}
14
15body {
16  font-size: 13px;
17  padding: 1em;
18}
19
20h1 {
21  font-size: 26px;
22  margin-bottom: 1em;
23}
24
25h2 {
26  font-size: 24px;
27  margin-bottom: 1em;
28}
29
30h3 {
31  font-size: 20px;
32  margin-bottom: 1em;
33  margin-top: 1em;
34}
35
36pre, code {
37  line-height: 1.5;
38  font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42  margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46  font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50  border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54  margin-top: 0.5em;
55}
56
57.firstline {
58  margin-left: 2 em;
59}
60
61.method  {
62  margin-top: 1em;
63  border: solid 1px #CCC;
64  padding: 1em;
65  background: #EEE;
66}
67
68.details {
69  font-weight: bold;
70  font-size: 14px;
71}
72
73</style>
74
75<h1><a href="admin_reports_v1.html">Admin Reports API</a> . <a href="admin_reports_v1.activities.html">activities</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78  <code><a href="#list">list(userKey, applicationName, eventName=None, actorIpAddress=None, pageToken=None, filters=None, maxResults=None, startTime=None, endTime=None, customerId=None)</a></code></p>
79<p class="firstline">Retrieves a list of activities for a specific customer and application.</p>
80<p class="toc_element">
81  <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
82<p class="firstline">Retrieves the next page of results.</p>
83<p class="toc_element">
84  <code><a href="#watch">watch(userKey, applicationName, body, startTime=None, filters=None, eventName=None, actorIpAddress=None, pageToken=None, maxResults=None, endTime=None, customerId=None)</a></code></p>
85<p class="firstline">Push changes to activities</p>
86<h3>Method Details</h3>
87<div class="method">
88    <code class="details" id="list">list(userKey, applicationName, eventName=None, actorIpAddress=None, pageToken=None, filters=None, maxResults=None, startTime=None, endTime=None, customerId=None)</code>
89  <pre>Retrieves a list of activities for a specific customer and application.
90
91Args:
92  userKey: string, Represents the profile id or the user email for which the data should be filtered. When 'all' is specified as the userKey, it returns usageReports for all users. (required)
93  applicationName: string, Application name for which the events are to be retrieved. (required)
94  eventName: string, Name of the event being queried.
95  actorIpAddress: string, IP Address of host where the event was performed. Supports both IPv4 and IPv6 addresses.
96  pageToken: string, Token to specify next page.
97  filters: string, Event parameters in the form [parameter1 name][operator][parameter1 value],[parameter2 name][operator][parameter2 value],...
98  maxResults: integer, Number of activity records to be shown in each page.
99  startTime: string, Return events which occurred at or after this time.
100  endTime: string, Return events which occurred at or before this time.
101  customerId: string, Represents the customer for which the data is to be fetched.
102
103Returns:
104  An object of the form:
105
106    { # JSON template for a collection of activites.
107    "nextPageToken": "A String", # Token for retrieving the next page
108    "items": [ # Each record in read response.
109      { # JSON template for the activity resource.
110        "kind": "admin#reports#activity", # Kind of resource this is.
111        "ownerDomain": "A String", # Domain of source customer.
112        "actor": { # User doing the action.
113          "profileId": "A String", # Obfuscated user id of the user.
114          "email": "A String", # Email address of the user.
115          "key": "A String", # For OAuth 2LO API requests, consumer_key of the requestor.
116          "callerType": "A String", # User or OAuth 2LO request.
117        },
118        "id": { # Unique identifier for each activity record.
119          "applicationName": "A String", # Application name to which the event belongs.
120          "uniqueQualifier": "A String", # Unique qualifier if multiple events have the same time.
121          "customerId": "A String", # Obfuscated customer ID of the source customer.
122          "time": "A String", # Time of occurrence of the activity.
123        },
124        "etag": "A String", # ETag of the entry.
125        "ipAddress": "A String", # IP Address of the user doing the action.
126        "events": [ # Activity events.
127          {
128            "type": "A String", # Type of event.
129            "name": "A String", # Name of event.
130            "parameters": [ # Parameter value pairs for various applications.
131              {
132                "name": "A String", # The name of the parameter.
133                "intValue": "A String", # Integral value of the parameter.
134                "value": "A String", # String value of the parameter.
135                "boolValue": True or False, # Boolean value of the parameter.
136                "multiValue": [ # Multi-string value of the parameter.
137                  "A String",
138                ],
139                "multiIntValue": [ # Multi-int value of the parameter.
140                  "A String",
141                ],
142              },
143            ],
144          },
145        ],
146      },
147    ],
148    "kind": "admin#reports#activities", # Kind of list response this is.
149    "etag": "A String", # ETag of the resource.
150  }</pre>
151</div>
152
153<div class="method">
154    <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
155  <pre>Retrieves the next page of results.
156
157Args:
158  previous_request: The request for the previous page. (required)
159  previous_response: The response from the request for the previous page. (required)
160
161Returns:
162  A request object that you can call 'execute()' on to request the next
163  page. Returns None if there are no more items in the collection.
164    </pre>
165</div>
166
167<div class="method">
168    <code class="details" id="watch">watch(userKey, applicationName, body, startTime=None, filters=None, eventName=None, actorIpAddress=None, pageToken=None, maxResults=None, endTime=None, customerId=None)</code>
169  <pre>Push changes to activities
170
171Args:
172  userKey: string, Represents the profile id or the user email for which the data should be filtered. When 'all' is specified as the userKey, it returns usageReports for all users. (required)
173  applicationName: string, Application name for which the events are to be retrieved. (required)
174  body: object, The request body. (required)
175    The object takes the form of:
176
177{ # An notification channel used to watch for resource changes.
178    "resourceUri": "A String", # A version-specific identifier for the watched resource.
179    "kind": "api#channel", # Identifies this as a notification channel used to watch for changes to a resource. Value: the fixed string "api#channel".
180    "resourceId": "A String", # An opaque ID that identifies the resource being watched on this channel. Stable across different API versions.
181    "payload": True or False, # A Boolean value to indicate whether payload is wanted. Optional.
182    "token": "A String", # An arbitrary string delivered to the target address with each notification delivered over this channel. Optional.
183    "params": { # Additional parameters controlling delivery channel behavior. Optional.
184      "a_key": "A String", # Declares a new parameter by name.
185    },
186    "expiration": "A String", # Date and time of notification channel expiration, expressed as a Unix timestamp, in milliseconds. Optional.
187    "address": "A String", # The address where notifications are delivered for this channel.
188    "type": "A String", # The type of delivery mechanism used for this channel.
189    "id": "A String", # A UUID or similar unique string that identifies this channel.
190  }
191
192  startTime: string, Return events which occurred at or after this time.
193  filters: string, Event parameters in the form [parameter1 name][operator][parameter1 value],[parameter2 name][operator][parameter2 value],...
194  eventName: string, Name of the event being queried.
195  actorIpAddress: string, IP Address of host where the event was performed. Supports both IPv4 and IPv6 addresses.
196  pageToken: string, Token to specify next page.
197  maxResults: integer, Number of activity records to be shown in each page.
198  endTime: string, Return events which occurred at or before this time.
199  customerId: string, Represents the customer for which the data is to be fetched.
200
201Returns:
202  An object of the form:
203
204    { # An notification channel used to watch for resource changes.
205      "resourceUri": "A String", # A version-specific identifier for the watched resource.
206      "kind": "api#channel", # Identifies this as a notification channel used to watch for changes to a resource. Value: the fixed string "api#channel".
207      "resourceId": "A String", # An opaque ID that identifies the resource being watched on this channel. Stable across different API versions.
208      "payload": True or False, # A Boolean value to indicate whether payload is wanted. Optional.
209      "token": "A String", # An arbitrary string delivered to the target address with each notification delivered over this channel. Optional.
210      "params": { # Additional parameters controlling delivery channel behavior. Optional.
211        "a_key": "A String", # Declares a new parameter by name.
212      },
213      "expiration": "A String", # Date and time of notification channel expiration, expressed as a Unix timestamp, in milliseconds. Optional.
214      "address": "A String", # The address where notifications are delivered for this channel.
215      "type": "A String", # The type of delivery mechanism used for this channel.
216      "id": "A String", # A UUID or similar unique string that identifies this channel.
217    }</pre>
218</div>
219
220</body></html>