Class: Google::Apis::AndroidmanagementV1::DnsEvent
- Inherits:
-
Object
- Object
- Google::Apis::AndroidmanagementV1::DnsEvent
- 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
-
#hostname ⇒ String
The hostname that was looked up.
-
#ip_addresses ⇒ Array<String>
The (possibly truncated) list of the IP addresses returned for DNS lookup (max 10 IPv4 or IPv6 addresses).
-
#package_name ⇒ String
The package name of the UID that performed the DNS lookup.
-
#total_ip_addresses_returned ⇒ Fixnum
The number of IP addresses returned from the DNS lookup event.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DnsEvent
constructor
A new instance of DnsEvent.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ DnsEvent
Returns a new instance of DnsEvent.
1824 1825 1826 |
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 1824 def initialize(**args) update!(**args) end |
Instance Attribute Details
#hostname ⇒ String
The hostname that was looked up.
Corresponds to the JSON property hostname
1805 1806 1807 |
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 1805 def hostname @hostname end |
#ip_addresses ⇒ Array<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
1811 1812 1813 |
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 1811 def ip_addresses @ip_addresses end |
#package_name ⇒ String
The package name of the UID that performed the DNS lookup.
Corresponds to the JSON property packageName
1816 1817 1818 |
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 1816 def package_name @package_name end |
#total_ip_addresses_returned ⇒ Fixnum
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
1822 1823 1824 |
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 1822 def total_ip_addresses_returned @total_ip_addresses_returned end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1829 1830 1831 1832 1833 1834 |
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 1829 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 |