diff --git a/src/handlers/http/llm.rs b/src/handlers/http/llm.rs index a19761939..5327f1b31 100644 --- a/src/handlers/http/llm.rs +++ b/src/handlers/http/llm.rs @@ -51,7 +51,7 @@ pub struct AiPrompt { // Temperory type #[derive(Debug, serde::Serialize)] -struct Field { +pub struct Field { name: String, data_type: String, } diff --git a/src/prism/home/mod.rs b/src/prism/home/mod.rs index c249b2d97..656e50cae 100644 --- a/src/prism/home/mod.rs +++ b/src/prism/home/mod.rs @@ -40,7 +40,7 @@ use crate::{ type StreamMetadataResponse = Result<(String, Vec, DataSetType), PrismHomeError>; #[derive(Debug, Serialize, Default)] -struct DatedStats { +pub struct DatedStats { date: String, events: u64, ingestion_size: u64, @@ -55,16 +55,16 @@ enum DataSetType { } #[derive(Debug, Serialize)] -struct DataSet { +pub struct DataSet { title: String, dataset_type: DataSetType, } #[derive(Debug, Serialize)] pub struct HomeResponse { - alerts_info: AlertsInfo, - stats_details: Vec, - datasets: Vec, + pub alerts_info: AlertsInfo, + pub stats_details: Vec, + pub datasets: Vec, } #[derive(Debug, Serialize)]