/*
* Stadar Esports Data API
*
* Read-only esports data across all major competitive titles. Flat-tier pricing (no per-game gates), monthly subscriptions, sandbox keys for evaluation. See https://stadar.net for tier pricing. All endpoints under `/v1/...`. The version in `info.version` matches the URL prefix; non-breaking field additions ship in `/v1`, breaking changes get a `/v2`. We commit to 24 months of `/v1` support after `/v2` ships. Times are UTC end-to-end (RFC 3339). Localization is the client's problem. Cursors are opaque base64 strings; treat them as such.
*
* The version of the OpenAPI document: v1
* Contact: api@stadar.net
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct AccountUsageLatency200Response {
/// Median latency in milliseconds. Zero when there's no data.
#[serde(rename = "p50_ms", skip_serializing_if = "Option::is_none")]
pub p50_ms: Option<i32>,
/// 95th-percentile latency in milliseconds.
#[serde(rename = "p95_ms", skip_serializing_if = "Option::is_none")]
pub p95_ms: Option<i32>,
/// 99th-percentile (tail) latency in milliseconds.
#[serde(rename = "p99_ms", skip_serializing_if = "Option::is_none")]
pub p99_ms: Option<i32>,
/// Total successful requests in the window.
#[serde(rename = "request_count", skip_serializing_if = "Option::is_none")]
pub request_count: Option<i32>,
/// Window width — always 24 in v1.
#[serde(rename = "window_hours", skip_serializing_if = "Option::is_none")]
pub window_hours: Option<i32>,
}
impl AccountUsageLatency200Response {
pub fn new() -> AccountUsageLatency200Response {
AccountUsageLatency200Response {
p50_ms: None,
p95_ms: None,
p99_ms: None,
request_count: None,
window_hours: None,
}
}
}