GoodMem
ReferenceClient SDKsPython SDKModels

PingResult Model

PingResult Model documentation for Python SDK

Result from an individual ping probe

Properties

NameTypeDescriptionNotes
endpointPingEndpointInfo
seqintSequential probe number (1-based)
bytes_sentintPayload bytes transmitted
bytes_receivedintPayload bytes received
okboolTrue when the provider responded successfully within the timeout
http_statusintProvider HTTP status code or equivalent transport status
error_messagestrHuman-readable error message when ok=false[optional]
rtt_msfloatObserved round-trip latency in milliseconds
timingPingTiming
metadataDict[str, str]Additional provider metadata (request IDs, throttling signals, etc.)[optional]

Example

from goodmem_client.models.ping_result import PingResult

# TODO update the JSON string below
json = "{}"
# create an instance of PingResult from a JSON string
ping_result_instance = PingResult.from_json(json)
# print the JSON string representation of the object
print(PingResult.to_json())

# convert the object into a dict
ping_result_dict = ping_result_instance.to_dict()
# create an instance of PingResult from a dict
ping_result_from_dict = PingResult.from_dict(ping_result_dict)

↑ Back to Python SDK ↑ Back to Python SDK ↑ Back to Python SDK

On this page