// 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};


/// Sensor attached to equipment or a location, producing a data stream.

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

    #[serde(rename = "sensorId")]
    pub sensor_id: String,

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

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

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

    pub unit: Option<String>,

    #[serde(rename = "samplingFrequencyHz")]
    pub sampling_frequency_hz: Option<f64>,

    pub metadata: Option<serde_json::Value>,

}
