Class: Google::Apis::AndroidmanagementV1::MemoryEvent

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/androidmanagement_v1/classes.rb,
generated/google/apis/androidmanagement_v1/representations.rb,
generated/google/apis/androidmanagement_v1/representations.rb

Overview

An event related to memory and storage measurements.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ MemoryEvent

Returns a new instance of MemoryEvent.


1803
1804
1805
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 1803

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

Instance Attribute Details

#byte_countFixnum

The number of free bytes in the medium, or for EXTERNAL_STORAGE_DETECTED, the total capacity in bytes of the storage medium. Corresponds to the JSON property byteCount

Returns:

  • (Fixnum)

1791
1792
1793
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 1791

def byte_count
  @byte_count
end

#create_timeString

The creation time of the event. Corresponds to the JSON property createTime

Returns:

  • (String)

1796
1797
1798
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 1796

def create_time
  @create_time
end

#event_typeString

Event type. Corresponds to the JSON property eventType

Returns:

  • (String)

1801
1802
1803
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 1801

def event_type
  @event_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


1808
1809
1810
1811
1812
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 1808

def update!(**args)
  @byte_count = args[:byte_count] if args.key?(:byte_count)
  @create_time = args[:create_time] if args.key?(:create_time)
  @event_type = args[:event_type] if args.key?(:event_type)
end