mirror of
https://github.com/thousandeyes/thousandeyes-sdk-python.git
synced 2026-08-04 08:56:50 +00:00
Some checks failed
Python CI / build (push) Has been cancelled
Co-authored-by: API Team <api-team@thousandeyes.com>
1.7 KiB
1.7 KiB
DnsServerMeasurement
DNS resolution details collected while locating the HTTP test target. Present when the agent captured DNS server measurement data for the round. The order of unusedDnsResponses matches the order returned by the DNS resolver.
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| used_dns_response | DnsServerResponse | [optional] | |
| unused_dns_responses | **List[DnsServerResponse]** | Additional DNS responses received while resolving the target. | [optional] |
| used_hosts_file | bool | Indicates whether the hosts file (for example, `/etc/hosts`) was used to resolve the target. | [optional] [readonly] |
| resolved_ip | str | IP address resolved for the target, from DNS or the hosts file. | [optional] [readonly] |
Example
from thousandeyes_sdk.test_results.models.dns_server_measurement import DnsServerMeasurement
# TODO update the JSON string below
json = "{}"
# create an instance of DnsServerMeasurement from a JSON string
dns_server_measurement_instance = DnsServerMeasurement.from_json(json)
# print the JSON string representation of the object
print(DnsServerMeasurement.to_json())
# convert the object into a dict
dns_server_measurement_dict = dns_server_measurement_instance.to_dict()
# create an instance of DnsServerMeasurement from a dict
dns_server_measurement_from_dict = DnsServerMeasurement.from_dict(dns_server_measurement_dict)