From acef6571063d86ea259aedde83d67aea1a7ce5a4 Mon Sep 17 00:00:00 2001 From: anant Date: Sun, 25 May 2025 11:07:43 +0530 Subject: [PATCH] visibility updates --- src/handlers/http/llm.rs | 2 +- src/prism/home/mod.rs | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) 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)]