GoodMemGoodMem
ReferenceSdkRustTypes

PingSummary

Rust struct goodmem::models::PingSummary: declaration, fields or variants, and implementations.

All types

Struct PingSummary

goodmem::models::PingSummary

Summary emitted at the end of a ping session

pub struct PingSummary {
    pub endpoint: Box<PingEndpointInfo>,
    pub requests: i32,
    pub responses: i32,
    pub ok: i32,
    pub timeouts: i32,
    pub errors: i32,
    pub rtt_min_ms: f64,
    pub rtt_avg_ms: f64,
    pub rtt_p50_ms: f64,
    pub rtt_p90_ms: f64,
    pub rtt_p99_ms: f64,
    pub rtt_max_ms: f64,
    pub requests_per_second: f64,
    pub bytes_per_second: f64,
    pub applied_limits: Option<BTreeMap<String, String>>,
}

Referenced types: PingEndpointInfo.

Fields

endpoint

pub endpoint: Box<PingEndpointInfo>

Endpoint metadata copied from the final probe Wire name: endpoint.

requests

pub requests: i32

Total number of probes scheduled Wire name: requests.

responses

pub responses: i32

Number of responses received (including timeouts/errors) Wire name: responses.

ok

pub ok: i32

Count of probes that succeeded Wire name: ok.

timeouts

pub timeouts: i32

Count of probes that exceeded the timeout Wire name: timeouts.

errors

pub errors: i32

Count of probes that failed for other reasons Wire name: errors.

rtt_min_ms

pub rtt_min_ms: f64

Minimum observed round-trip latency (ms) Wire name: rttMinMs.

rtt_avg_ms

pub rtt_avg_ms: f64

Average observed round-trip latency (ms) Wire name: rttAvgMs.

rtt_p50_ms

pub rtt_p50_ms: f64

Median (p50) round-trip latency (ms) Wire name: rttP50Ms.

rtt_p90_ms

pub rtt_p90_ms: f64

90th percentile round-trip latency (ms) Wire name: rttP90Ms.

rtt_p99_ms

pub rtt_p99_ms: f64

99th percentile round-trip latency (ms) Wire name: rttP99Ms.

rtt_max_ms

pub rtt_max_ms: f64

Maximum observed round-trip latency (ms) Wire name: rttMaxMs.

requests_per_second

pub requests_per_second: f64

Effective request throughput across the session Wire name: requestsPerSecond.

bytes_per_second

pub bytes_per_second: f64

Aggregate bytes per second (send + receive) Wire name: bytesPerSecond.

applied_limits

pub applied_limits: Option<BTreeMap<String, String>>

Resource limits applied by the server Wire name: appliedLimits.

Implementations

validate

pub fn validate(&self) -> crate::Result<()>

Validate the request before sending, without making an HTTP call.

Trait implementations

  • Clone (derived)
  • Default (derived)
  • PartialEq (derived)
  • Serialize (derived)
  • impl<'de> Deserialize<'de> for PingSummary
  • impl std::fmt::Debug for PingSummary

On this page