Class: Google::Apis::AndroidmanagementV1::BatchUsageLogEvents
- Inherits:
-
Object
- Object
- Google::Apis::AndroidmanagementV1::BatchUsageLogEvents
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/androidmanagement_v1/classes.rb,
lib/google/apis/androidmanagement_v1/representations.rb,
lib/google/apis/androidmanagement_v1/representations.rb
Overview
Batched event logs of events from the device.
Instance Attribute Summary collapse
-
#device ⇒ String
If present, the name of the device in the form ‘enterprises/
enterpriseId
/ devices/deviceId
’ Corresponds to the JSON propertydevice
. -
#retrieval_time ⇒ String
The device timestamp when the batch of events were collected from the device.
-
#usage_log_events ⇒ Array<Google::Apis::AndroidmanagementV1::UsageLogEvent>
The list of UsageLogEvent that were reported by the device, sorted chronologically by the event time.
-
#user ⇒ String
If present, the resource name of the user that owns this device in the form ‘ enterprises/
enterpriseId
/users/userId
’.
Instance Method Summary collapse
-
#initialize(**args) ⇒ BatchUsageLogEvents
constructor
A new instance of BatchUsageLogEvents.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ BatchUsageLogEvents
Returns a new instance of BatchUsageLogEvents.
854 855 856 |
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 854 def initialize(**args) update!(**args) end |
Instance Attribute Details
#device ⇒ String
If present, the name of the device in the form ‘enterprises/enterpriseId
/
devices/deviceId
’
Corresponds to the JSON property device
835 836 837 |
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 835 def device @device end |
#retrieval_time ⇒ String
The device timestamp when the batch of events were collected from the device.
Corresponds to the JSON property retrievalTime
840 841 842 |
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 840 def retrieval_time @retrieval_time end |
#usage_log_events ⇒ Array<Google::Apis::AndroidmanagementV1::UsageLogEvent>
The list of UsageLogEvent that were reported by the device, sorted
chronologically by the event time.
Corresponds to the JSON property usageLogEvents
846 847 848 |
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 846 def usage_log_events @usage_log_events end |
#user ⇒ String
If present, the resource name of the user that owns this device in the form ‘
enterprises/enterpriseId
/users/userId
’.
Corresponds to the JSON property user
852 853 854 |
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 852 def user @user end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
859 860 861 862 863 864 |
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 859 def update!(**args) @device = args[:device] if args.key?(:device) @retrieval_time = args[:retrieval_time] if args.key?(:retrieval_time) @usage_log_events = args[:usage_log_events] if args.key?(:usage_log_events) @user = args[:user] if args.key?(:user) end |