Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CorsMiddleware ¶
func CorsMiddleware() mux.MiddlewareFunc
Types ¶
type LineResult ¶
type LineResult struct { OriginLine string `json:"origin_line"` StageRecords []StageRecord `json:"stage_records"` }
type LogQLAnalyzeHandler ¶
type LogQLAnalyzeHandler struct {
// contains filtered or unexported fields
}
func (*LogQLAnalyzeHandler) ServeHTTP ¶
func (s *LogQLAnalyzeHandler) ServeHTTP(w http.ResponseWriter, req *http.Request)
type PipelineAnalyzer ¶
type PipelineAnalyzer interface {
AnalyzeLine(line string) []StageAnalysisRecord
}
func NewPipelineAnalyzer ¶
func NewPipelineAnalyzer(origin log.Pipeline, streamLabels labels.Labels) PipelineAnalyzer
type Result ¶
type Result struct { StreamSelector string `json:"stream_selector"` Stages []string `json:"stages"` Results []LineResult `json:"results"` }
type StageAnalysisRecord ¶
type StageAnalysisRecorder ¶
func (StageAnalysisRecorder) Process ¶
func (s StageAnalysisRecorder) Process(ts int64, line []byte, lbs *log.LabelsBuilder) ([]byte, bool)
func (StageAnalysisRecorder) RequiredLabelNames ¶
func (s StageAnalysisRecorder) RequiredLabelNames() []string
Click to show internal directories.
Click to hide internal directories.