Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LogsResponse ¶
type LogsRow ¶
type LogsRow struct { Timestamp time.Time `json:"timestamp"` TraceID string `json:"trace_id" ch:"TraceIdBody"` SpanID string `json:"span_id" ch:"SpanIdBody"` TraceFlags uint32 `json:"trace_flags"` SeverityText string `json:"severity_text"` SeverityNumber uint8 `json:"severity_number"` ServiceName string `json:"service_name"` Body string `json:"body"` ResourceAttributes map[string]string `json:"resource_attributes"` LogAttributes map[string]string `json:"log_attributes"` Fingerprint string `json:"fingerprint"` }
type MockQuerier ¶
type MockQuerier struct{}
func (*MockQuerier) GetLogs ¶
func (*MockQuerier) GetLogs(_ context.Context, _ *QueryContext) (*LogsResponse, error)
type Querier ¶
type Querier interface {
GetLogs(context.Context, *QueryContext) (*LogsResponse, error)
}
func NewQuerier ¶
type Query ¶
type Query struct { ServiceNames []string NotServiceNames []string SeverityNumbers []int32 NotSeverityNumbers []int32 TraceIDs []string SpanIDs []string Fingerprints []string TraceFlags []uint32 NotTraceFlags []uint32 Body []string LogAttributeNames []string LogAttributeValues []string ResourceAttributeNames []string ResourceAttributeValues []string }
type QueryContext ¶
type QueryContext struct { ProjectID int64 Queries map[string]*Query Expression string StartTimestamp time.Time EndTimestamp time.Time Time time.Time PageSize int PageToken string // NOTE(prozlach): Simple sorting by timestamp, ascending or descending. // // In order to implement anything more useful than this, we would also // need multi-level sorting - e.g. sort by level and then serviceID and // then timestamp. Plain sorting by service ID or loglevel is not very // useful. // // We can do it iteratively in next iterations. SortByTimeAsc bool }
Click to show internal directories.
Click to hide internal directories.