pub struct UsageDelta {
pub requests: u64,
pub ingress_bytes: u64,
pub egress_bytes: u64,
pub tokens_in: u64,
pub tokens_out: u64,
pub cost_micros: u64,
pub blocked: u64,
pub waf_sqli: u64,
pub waf_xss: u64,
pub waf_path_traversal: u64,
pub waf_custom: u64,
}Expand description
A usage delta reported to the control plane (matches its /v3/edge/{id}/usage wire shape).
The LLM token fields (gateway L4) are only sent when the gateway is active; the control plane
treats them as #[serde(default)], so an older control plane simply ignores them.
Fields§
§requests: u64§ingress_bytes: u64§egress_bytes: u64§tokens_in: u64§tokens_out: u64§cost_micros: u64§blocked: u64Requests the edge denied since the last report (a subset of requests). Serialized only; an
older control plane treats it as #[serde(default)] and ignores it.
waf_sqli: u64WAF matches by rule class since the last report. Serialized only; an older control plane
treats them as #[serde(default)] and ignores them.
waf_xss: u64§waf_path_traversal: u64§waf_custom: u64Trait Implementations§
Source§impl Clone for UsageDelta
impl Clone for UsageDelta
Source§fn clone(&self) -> UsageDelta
fn clone(&self) -> UsageDelta
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for UsageDelta
Source§impl Debug for UsageDelta
impl Debug for UsageDelta
Source§impl Default for UsageDelta
impl Default for UsageDelta
Source§fn default() -> UsageDelta
fn default() -> UsageDelta
Returns the “default value” for a type. Read more
Source§impl From<DrainedUsage> for UsageDelta
impl From<DrainedUsage> for UsageDelta
Source§fn from(u: DrainedUsage) -> Self
fn from(u: DrainedUsage) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for UsageDelta
impl RefUnwindSafe for UsageDelta
impl Send for UsageDelta
impl Sync for UsageDelta
impl Unpin for UsageDelta
impl UnsafeUnpin for UsageDelta
impl UnwindSafe for UsageDelta
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more