github.com/yankunsam/loki/v2@v2.6.3-0.20220817130409-389df5235c27/pkg/loghttp/legacy/query.go (about) 1 package loghttp 2 3 import ( 4 "time" 5 ) 6 7 // QueryResponse represents the http json response to a label query 8 type QueryResponse struct { 9 Streams []*Stream `json:"streams,omitempty"` 10 } 11 12 // Stream represents a log stream. It includes a set of log entries and their labels. 13 type Stream struct { 14 Labels string `json:"labels"` 15 Entries []Entry `json:"entries"` 16 } 17 18 // Entry represents a log entry. It includes a log message and the time it occurred at. 19 type Entry struct { 20 Timestamp time.Time `json:"ts"` 21 Line string `json:"line"` 22 }