libomni/types/db/v1/metrics.rs
1use serde::Serialize;
2use chrono::NaiveDateTime;
3use serde_json::Value;
4
5#[derive(Debug, sqlx::FromRow, Serialize)]
6pub struct Metric {
7 pub id: i64,
8 pub app_id: Option<i64>,
9 pub metric_name: String,
10 pub metric_value: f64,
11 pub labels: Option<Value>,
12 pub timestamp: Option<NaiveDateTime>,
13}