pub struct SessionStatsLifetime {
pub created_at_ms: i64,
pub idle_ms: i64,
pub last_activity_at_ms: i64,
pub state: SessionStatsState,
pub uptime_ms: i64,
}Expand description
Session lifetime metrics.
JSON schema
{
"description": "Session lifetime metrics.",
"type": "object",
"required": [
"createdAtMs",
"idleMs",
"lastActivityAtMs",
"state",
"uptimeMs"
],
"properties": {
"createdAtMs": {
"description": "Time when the session was created (in milliseconds since UNIX epoch).",
"type": "integer",
"format": "int64",
"minimum": 0.0
},
"idleMs": {
"description": "Duration since the last activity (in milliseconds).",
"type": "integer",
"format": "int64",
"minimum": 0.0
},
"lastActivityAtMs": {
"description": "Time of the last read or write activity (in milliseconds since UNIX epoch).",
"type": "integer",
"format": "int64",
"minimum": 0.0
},
"state": {
"$ref": "#/components/schemas/SessionStatsState"
},
"uptimeMs": {
"description": "Total duration the session has been alive (in milliseconds).",
"type": "integer",
"format": "int64",
"minimum": 0.0
}
}
}Fields§
§created_at_ms: i64Time when the session was created (in milliseconds since UNIX epoch).
idle_ms: i64Duration since the last activity (in milliseconds).
last_activity_at_ms: i64Time of the last read or write activity (in milliseconds since UNIX epoch).
state: SessionStatsState§uptime_ms: i64Total duration the session has been alive (in milliseconds).
Trait Implementations§
Source§impl Clone for SessionStatsLifetime
impl Clone for SessionStatsLifetime
Source§fn clone(&self) -> SessionStatsLifetime
fn clone(&self) -> SessionStatsLifetime
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SessionStatsLifetime
impl Debug for SessionStatsLifetime
Source§impl<'de> Deserialize<'de> for SessionStatsLifetime
impl<'de> Deserialize<'de> for SessionStatsLifetime
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SessionStatsLifetime
impl RefUnwindSafe for SessionStatsLifetime
impl Send for SessionStatsLifetime
impl Sync for SessionStatsLifetime
impl Unpin for SessionStatsLifetime
impl UnwindSafe for SessionStatsLifetime
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more