PingStreamRequest
PingStreamRequest documentation for Python SDK
Request payload for a streaming ping session
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| target_id | str | Target resource ID (UUID) | |
| target_type_hint | PingTargetType | [optional] | |
| count | int | Number of probes to run (0 uses server default) | [optional] |
| interval_ms | int | Delay between probes in milliseconds (0 uses server default) | [optional] |
| timeout_ms | int | Per-probe timeout in milliseconds (0 uses server default) | [optional] |
| payload_type | PingPayloadType | [optional] | |
| payload | str | Explicit UTF-8 payload to send with each probe (mutually exclusive with payloadSizeBytes) | [optional] |
| payload_size_bytes | int | Synthetic payload size in bytes (mutually exclusive with payload) | [optional] |
| max_in_flight | int | Maximum concurrent probes (defaults to 1) | [optional] |
| jitter | bool | Add jitter to probe scheduling | [optional] |
| labels | Dict[str, str] | Optional labels to attach to the ping session | [optional] |
Example
from goodmem_client.models.ping_stream_request import PingStreamRequest
# TODO update the JSON string below
json = "{}"
# create an instance of PingStreamRequest from a JSON string
ping_stream_request_instance = PingStreamRequest.from_json(json)
# print the JSON string representation of the object
print(PingStreamRequest.to_json())
# convert the object into a dict
ping_stream_request_dict = ping_stream_request_instance.to_dict()
# create an instance of PingStreamRequest from a dict
ping_stream_request_from_dict = PingStreamRequest.from_dict(ping_stream_request_dict)↑ Back to Python SDK ↑ Back to Python SDK ↑ Back to Python SDK