Class: Google::Apis::AndroidmanagementV1::BatchUsageLogEvents

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BatchUsageLogEvents

Returns a new instance of BatchUsageLogEvents.



807
808
809
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 807

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#deviceString

The name of the device in the form ‘enterprises/enterpriseId/devices/ deviceId’ Corresponds to the JSON property device

Returns:

  • (String)


788
789
790
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 788

def device
  @device
end

#retrieval_timeString

The device timestamp when the batch of events were collected from the device. Corresponds to the JSON property retrievalTime

Returns:

  • (String)


793
794
795
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 793

def retrieval_time
  @retrieval_time
end

#usage_log_eventsArray<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



799
800
801
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 799

def usage_log_events
  @usage_log_events
end

#userString

The resource name of the user that owns this device in the form ‘enterprises/ enterpriseId/users/userId’. Corresponds to the JSON property user

Returns:

  • (String)


805
806
807
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 805

def user
  @user
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



812
813
814
815
816
817
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 812

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