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, startTime=None, filters=None, eventName=None, actorIpAddress=None, pageToken=None, orgUnitID=None, maxResults=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, orgUnitID=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, startTime=None, filters=None, eventName=None, actorIpAddress=None, pageToken=None, orgUnitID=None, maxResults=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 startTime: string, Return events which occurred at or after this time. 95 filters: string, Event parameters in the form [parameter1 name][operator][parameter1 value],[parameter2 name][operator][parameter2 value],... 96 eventName: string, Name of the event being queried. 97 actorIpAddress: string, IP Address of host where the event was performed. Supports both IPv4 and IPv6 addresses. 98 pageToken: string, Token to specify next page. 99 orgUnitID: string, the organizational unit's(OU) ID to filter activities from users belonging to a specific OU or one of its sub-OU(s) 100 maxResults: integer, Number of activity records to be shown in each page. 101 endTime: string, Return events which occurred at or before this time. 102 customerId: string, Represents the customer for which the data is to be fetched. 103 104Returns: 105 An object of the form: 106 107 { # JSON template for a collection of activites. 108 "nextPageToken": "A String", # Token for retrieving the next page 109 "items": [ # Each record in read response. 110 { # JSON template for the activity resource. 111 "kind": "admin#reports#activity", # Kind of resource this is. 112 "ownerDomain": "A String", # Domain of source customer. 113 "actor": { # User doing the action. 114 "profileId": "A String", # Obfuscated user id of the user. 115 "email": "A String", # Email address of the user. 116 "key": "A String", # For OAuth 2LO API requests, consumer_key of the requestor. 117 "callerType": "A String", # User or OAuth 2LO request. 118 }, 119 "id": { # Unique identifier for each activity record. 120 "applicationName": "A String", # Application name to which the event belongs. 121 "uniqueQualifier": "A String", # Unique qualifier if multiple events have the same time. 122 "customerId": "A String", # Obfuscated customer ID of the source customer. 123 "time": "A String", # Time of occurrence of the activity. 124 }, 125 "etag": "A String", # ETag of the entry. 126 "ipAddress": "A String", # IP Address of the user doing the action. 127 "events": [ # Activity events. 128 { 129 "type": "A String", # Type of event. 130 "name": "A String", # Name of event. 131 "parameters": [ # Parameter value pairs for various applications. 132 { 133 "name": "A String", # The name of the parameter. 134 "messageValue": { # Nested value of the parameter. 135 "parameter": [ # Looping to get parameter values. 136 { # JSON template for a parameter used in various reports. 137 "name": "A String", # The name of the parameter. 138 "intValue": "A String", # Integral value of the parameter. 139 "value": "A String", # String value of the parameter. 140 "multiIntValue": [ # Multiple integral values of the parameter. 141 "A String", 142 ], 143 "boolValue": True or False, # Boolean value of the parameter. 144 "multiValue": [ # Multiple string values of the parameter. 145 "A String", 146 ], 147 "multiBoolValue": [ # Multiple boolean values of the parameter. 148 True or False, 149 ], 150 }, 151 ], 152 }, 153 "intValue": "A String", # Integral value of the parameter. 154 "value": "A String", # String value of the parameter. 155 "boolValue": True or False, # Boolean value of the parameter. 156 "multiValue": [ # Multi-string value of the parameter. 157 "A String", 158 ], 159 "multiIntValue": [ # Multi-int value of the parameter. 160 "A String", 161 ], 162 "multiMessageValue": [ # Nested values of the parameter. 163 { 164 "parameter": [ # Parameter value. 165 { # JSON template for a parameter used in various reports. 166 "name": "A String", # The name of the parameter. 167 "intValue": "A String", # Integral value of the parameter. 168 "value": "A String", # String value of the parameter. 169 "multiIntValue": [ # Multiple integral values of the parameter. 170 "A String", 171 ], 172 "boolValue": True or False, # Boolean value of the parameter. 173 "multiValue": [ # Multiple string values of the parameter. 174 "A String", 175 ], 176 "multiBoolValue": [ # Multiple boolean values of the parameter. 177 True or False, 178 ], 179 }, 180 ], 181 }, 182 ], 183 }, 184 ], 185 }, 186 ], 187 }, 188 ], 189 "kind": "admin#reports#activities", # Kind of list response this is. 190 "etag": "A String", # ETag of the resource. 191 }</pre> 192</div> 193 194<div class="method"> 195 <code class="details" id="list_next">list_next(previous_request, previous_response)</code> 196 <pre>Retrieves the next page of results. 197 198Args: 199 previous_request: The request for the previous page. (required) 200 previous_response: The response from the request for the previous page. (required) 201 202Returns: 203 A request object that you can call 'execute()' on to request the next 204 page. Returns None if there are no more items in the collection. 205 </pre> 206</div> 207 208<div class="method"> 209 <code class="details" id="watch">watch(userKey, applicationName, body, startTime=None, filters=None, eventName=None, actorIpAddress=None, pageToken=None, orgUnitID=None, maxResults=None, endTime=None, customerId=None)</code> 210 <pre>Push changes to activities 211 212Args: 213 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) 214 applicationName: string, Application name for which the events are to be retrieved. (required) 215 body: object, The request body. (required) 216 The object takes the form of: 217 218{ # An notification channel used to watch for resource changes. 219 "resourceUri": "A String", # A version-specific identifier for the watched resource. 220 "kind": "api#channel", # Identifies this as a notification channel used to watch for changes to a resource. Value: the fixed string "api#channel". 221 "resourceId": "A String", # An opaque ID that identifies the resource being watched on this channel. Stable across different API versions. 222 "payload": True or False, # A Boolean value to indicate whether payload is wanted. Optional. 223 "token": "A String", # An arbitrary string delivered to the target address with each notification delivered over this channel. Optional. 224 "params": { # Additional parameters controlling delivery channel behavior. Optional. 225 "a_key": "A String", # Declares a new parameter by name. 226 }, 227 "expiration": "A String", # Date and time of notification channel expiration, expressed as a Unix timestamp, in milliseconds. Optional. 228 "address": "A String", # The address where notifications are delivered for this channel. 229 "type": "A String", # The type of delivery mechanism used for this channel. 230 "id": "A String", # A UUID or similar unique string that identifies this channel. 231 } 232 233 startTime: string, Return events which occurred at or after this time. 234 filters: string, Event parameters in the form [parameter1 name][operator][parameter1 value],[parameter2 name][operator][parameter2 value],... 235 eventName: string, Name of the event being queried. 236 actorIpAddress: string, IP Address of host where the event was performed. Supports both IPv4 and IPv6 addresses. 237 pageToken: string, Token to specify next page. 238 orgUnitID: string, the organizational unit's(OU) ID to filter activities from users belonging to a specific OU or one of its sub-OU(s) 239 maxResults: integer, Number of activity records to be shown in each page. 240 endTime: string, Return events which occurred at or before this time. 241 customerId: string, Represents the customer for which the data is to be fetched. 242 243Returns: 244 An object of the form: 245 246 { # An notification channel used to watch for resource changes. 247 "resourceUri": "A String", # A version-specific identifier for the watched resource. 248 "kind": "api#channel", # Identifies this as a notification channel used to watch for changes to a resource. Value: the fixed string "api#channel". 249 "resourceId": "A String", # An opaque ID that identifies the resource being watched on this channel. Stable across different API versions. 250 "payload": True or False, # A Boolean value to indicate whether payload is wanted. Optional. 251 "token": "A String", # An arbitrary string delivered to the target address with each notification delivered over this channel. Optional. 252 "params": { # Additional parameters controlling delivery channel behavior. Optional. 253 "a_key": "A String", # Declares a new parameter by name. 254 }, 255 "expiration": "A String", # Date and time of notification channel expiration, expressed as a Unix timestamp, in milliseconds. Optional. 256 "address": "A String", # The address where notifications are delivered for this channel. 257 "type": "A String", # The type of delivery mechanism used for this channel. 258 "id": "A String", # A UUID or similar unique string that identifies this channel. 259 }</pre> 260</div> 261 262</body></html>