Skip to content

Commit 6bf49c0

Browse files
author
Devdutt Shenoi
authored
fix: return stream name in json
1 parent d64b8a8 commit 6bf49c0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/prism/logstream/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,8 @@ async fn get_stream_info_helper(stream_name: &str) -> Result<StreamInfo, StreamE
199199
/// and query results.
200200
#[derive(Serialize)]
201201
pub struct PrismDatasetResponse {
202+
/// Name of the stream
203+
stream: String,
202204
/// Basic information about the stream
203205
info: StreamInfo,
204206
/// Statistics for the queried timeframe
@@ -296,6 +298,7 @@ impl PrismDatasetRequest {
296298
let user_agents = self.get_distinct_entries(stream, "p_user_agent").await.ok();
297299

298300
responses.push(PrismDatasetResponse {
301+
stream: stream.clone(),
299302
info,
300303
stats,
301304
retention,

0 commit comments

Comments
 (0)