Class: Google::Apis::AndroidmanagementV1::DnsEvent

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

A DNS lookup event was initiated through the standard network stack.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DnsEvent

Returns a new instance of DnsEvent.



2057
2058
2059
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 2057

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

Instance Attribute Details

#hostnameString

The hostname that was looked up. Corresponds to the JSON property hostname

Returns:

  • (String)


2038
2039
2040
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 2038

def hostname
  @hostname
end

#ip_addressesArray<String>

The (possibly truncated) list of the IP addresses returned for DNS lookup (max 10 IPv4 or IPv6 addresses). Corresponds to the JSON property ipAddresses

Returns:

  • (Array<String>)


2044
2045
2046
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 2044

def ip_addresses
  @ip_addresses
end

#package_nameString

The package name of the UID that performed the DNS lookup. Corresponds to the JSON property packageName

Returns:

  • (String)


2049
2050
2051
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 2049

def package_name
  @package_name
end

#total_ip_addresses_returnedFixnum

The number of IP addresses returned from the DNS lookup event. May be higher than the amount of ip_addresses if there were too many addresses to log. Corresponds to the JSON property totalIpAddressesReturned

Returns:

  • (Fixnum)


2055
2056
2057
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 2055

def total_ip_addresses_returned
  @total_ip_addresses_returned
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2062
2063
2064
2065
2066
2067
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 2062

def update!(**args)
  @hostname = args[:hostname] if args.key?(:hostname)
  @ip_addresses = args[:ip_addresses] if args.key?(:ip_addresses)
  @package_name = args[:package_name] if args.key?(:package_name)
  @total_ip_addresses_returned = args[:total_ip_addresses_returned] if args.key?(:total_ip_addresses_returned)
end