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.
2037 2038 2039 |
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 2037 def initialize(**args) update!(**args) end |
Instance Attribute Details
#hostname ⇒ String
The hostname that was looked up.
Corresponds to the JSON property hostname
2018 2019 2020 |
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 2018 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
2024 2025 2026 |
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 2024 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
2029 2030 2031 |
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 2029 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
2035 2036 2037 |
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 2035 def total_ip_addresses_returned @total_ip_addresses_returned end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2042 2043 2044 2045 2046 2047 |
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 2042 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 |