PingResult Model
PingResult Model documentation for Go SDK
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| Endpoint | PingEndpointInfo | ||
| Seq | int32 | Sequential probe number (1-based) | |
| BytesSent | int32 | Payload bytes transmitted | |
| BytesReceived | int32 | Payload bytes received | |
| Ok | bool | True when the provider responded successfully within the timeout | |
| HttpStatus | int32 | Provider HTTP status code or equivalent transport status | |
| ErrorMessage | Pointer to NullableString | Human-readable error message when ok=false | [optional] |
| RttMs | float64 | Observed round-trip latency in milliseconds | |
| Timing | PingTiming | ||
| Metadata | Pointer to map[string]string | Additional provider metadata (request IDs, throttling signals, etc.) | [optional] |
Methods
NewPingResult
func NewPingResult(endpoint PingEndpointInfo, seq int32, bytesSent int32, bytesReceived int32, ok bool, httpStatus int32, rttMs float64, timing PingTiming, ) *PingResult
NewPingResult instantiates a new PingResult object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
NewPingResultWithDefaults
func NewPingResultWithDefaults() *PingResult
NewPingResultWithDefaults instantiates a new PingResult object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
GetEndpoint
func (o *PingResult) GetEndpoint() PingEndpointInfo
GetEndpoint returns the Endpoint field if non-nil, zero value otherwise.
GetEndpointOk
func (o *PingResult) GetEndpointOk() (*PingEndpointInfo, bool)
GetEndpointOk returns a tuple with the Endpoint field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetEndpoint
func (o *PingResult) SetEndpoint(v PingEndpointInfo)
SetEndpoint sets Endpoint field to given value.
GetSeq
func (o *PingResult) GetSeq() int32
GetSeq returns the Seq field if non-nil, zero value otherwise.
GetSeqOk
func (o *PingResult) GetSeqOk() (*int32, bool)
GetSeqOk returns a tuple with the Seq field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetSeq
func (o *PingResult) SetSeq(v int32)
SetSeq sets Seq field to given value.
GetBytesSent
func (o *PingResult) GetBytesSent() int32
GetBytesSent returns the BytesSent field if non-nil, zero value otherwise.
GetBytesSentOk
func (o *PingResult) GetBytesSentOk() (*int32, bool)
GetBytesSentOk returns a tuple with the BytesSent field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetBytesSent
func (o *PingResult) SetBytesSent(v int32)
SetBytesSent sets BytesSent field to given value.
GetBytesReceived
func (o *PingResult) GetBytesReceived() int32
GetBytesReceived returns the BytesReceived field if non-nil, zero value otherwise.
GetBytesReceivedOk
func (o *PingResult) GetBytesReceivedOk() (*int32, bool)
GetBytesReceivedOk returns a tuple with the BytesReceived field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetBytesReceived
func (o *PingResult) SetBytesReceived(v int32)
SetBytesReceived sets BytesReceived field to given value.
GetOk
func (o *PingResult) GetOk() bool
GetOk returns the Ok field if non-nil, zero value otherwise.
GetOkOk
func (o *PingResult) GetOkOk() (*bool, bool)
GetOkOk returns a tuple with the Ok field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetOk
func (o *PingResult) SetOk(v bool)
SetOk sets Ok field to given value.
GetHttpStatus
func (o *PingResult) GetHttpStatus() int32
GetHttpStatus returns the HttpStatus field if non-nil, zero value otherwise.
GetHttpStatusOk
func (o *PingResult) GetHttpStatusOk() (*int32, bool)
GetHttpStatusOk returns a tuple with the HttpStatus field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetHttpStatus
func (o *PingResult) SetHttpStatus(v int32)
SetHttpStatus sets HttpStatus field to given value.
GetErrorMessage
func (o *PingResult) GetErrorMessage() string
GetErrorMessage returns the ErrorMessage field if non-nil, zero value otherwise.
GetErrorMessageOk
func (o *PingResult) GetErrorMessageOk() (*string, bool)
GetErrorMessageOk returns a tuple with the ErrorMessage field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetErrorMessage
func (o *PingResult) SetErrorMessage(v string)
SetErrorMessage sets ErrorMessage field to given value.
HasErrorMessage
func (o *PingResult) HasErrorMessage() bool
HasErrorMessage returns a boolean if a field has been set.
SetErrorMessageNil
func (o *PingResult) SetErrorMessageNil(b bool)
SetErrorMessageNil sets the value for ErrorMessage to be an explicit nil
UnsetErrorMessage
func (o *PingResult) UnsetErrorMessage()
UnsetErrorMessage ensures that no value is present for ErrorMessage, not even an explicit nil
GetRttMs
func (o *PingResult) GetRttMs() float64
GetRttMs returns the RttMs field if non-nil, zero value otherwise.
GetRttMsOk
func (o *PingResult) GetRttMsOk() (*float64, bool)
GetRttMsOk returns a tuple with the RttMs field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetRttMs
func (o *PingResult) SetRttMs(v float64)
SetRttMs sets RttMs field to given value.
GetTiming
func (o *PingResult) GetTiming() PingTiming
GetTiming returns the Timing field if non-nil, zero value otherwise.
GetTimingOk
func (o *PingResult) GetTimingOk() (*PingTiming, bool)
GetTimingOk returns a tuple with the Timing field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetTiming
func (o *PingResult) SetTiming(v PingTiming)
SetTiming sets Timing field to given value.
GetMetadata
func (o *PingResult) GetMetadata() map[string]string
GetMetadata returns the Metadata field if non-nil, zero value otherwise.
GetMetadataOk
func (o *PingResult) GetMetadataOk() (*map[string]string, bool)
GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetMetadata
func (o *PingResult) SetMetadata(v map[string]string)
SetMetadata sets Metadata field to given value.
HasMetadata
func (o *PingResult) HasMetadata() bool
HasMetadata returns a boolean if a field has been set.
SetMetadataNil
func (o *PingResult) SetMetadataNil(b bool)
SetMetadataNil sets the value for Metadata to be an explicit nil
UnsetMetadata
func (o *PingResult) UnsetMetadata()
UnsetMetadata ensures that no value is present for Metadata, not even an explicit nil