Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/handlers/http/llm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ pub struct AiPrompt {

// Temperory type
#[derive(Debug, serde::Serialize)]
struct Field {
pub struct Field {
name: String,
data_type: String,
}
Expand Down
10 changes: 5 additions & 5 deletions src/prism/home/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ use crate::{
type StreamMetadataResponse = Result<(String, Vec<ObjectStoreFormat>, DataSetType), PrismHomeError>;

#[derive(Debug, Serialize, Default)]
struct DatedStats {
pub struct DatedStats {
date: String,
events: u64,
ingestion_size: u64,
Expand All @@ -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<DatedStats>,
datasets: Vec<DataSet>,
pub alerts_info: AlertsInfo,
pub stats_details: Vec<DatedStats>,
pub datasets: Vec<DataSet>,
}

#[derive(Debug, Serialize)]
Expand Down
Loading