Merge pull request #3646 from raypinto/add-stream-created-ts

Added stream created timestamp to stream detail
This commit is contained in:
Derek Collison
2022-11-17 05:54:43 -08:00
committed by GitHub

View File

@@ -2637,6 +2637,7 @@ type HealthzOptions struct {
type StreamDetail struct {
Name string `json:"name"`
Created time.Time `json:"created"`
Cluster *ClusterInfo `json:"cluster,omitempty"`
Config *StreamConfig `json:"config,omitempty"`
State StreamState `json:"state,omitempty"`
@@ -2725,6 +2726,7 @@ func (s *Server) accountDetail(jsa *jsAccount, optStreams, optConsumers, optCfg
}
sdet := StreamDetail{
Name: stream.name(),
Created: stream.createdTime(),
State: stream.state(),
Cluster: ci,
Config: cfg,