// This file is auto-generated from JSON Schema.
// Do not edit this file by hand. Regenerate via the CLI.

#![allow(clippy::all)]
#![allow(dead_code)]

use serde::{Deserialize, Serialize};


/// Logical session for a streaming data source.

#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct SessionRecord {

    #[serde(rename = "sessionId")]
    pub session_id: String,

    #[serde(rename = "streamId")]
    pub stream_id: Option<String>,

    #[serde(rename = "startedAt")]
    pub started_at: Option<String>,

    #[serde(rename = "endedAt")]
    pub ended_at: Option<String>,

    #[serde(rename = "statusCode")]
    pub status_code: Option<String>,

    pub metadata: Option<serde_json::Value>,

}
