logs

package
v1.17.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 13, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry struct {
	Timestamp  int64             `json:"timestamp"`
	Severity   string            `json:"severity"`
	Color      string            `json:"color"`
	Message    string            `json:"message"`
	Attributes map[string]string `json:"attributes"`
	TraceId    string            `json:"trace_id"`
}

type Pattern

type Pattern struct {
	Severity string       `json:"severity"`
	Color    string       `json:"color"`
	Sample   string       `json:"sample"`
	Sum      uint64       `json:"sum"`
	Chart    *model.Chart `json:"chart"`
	Hash     string       `json:"hash"`
}

type Query

type Query struct {
	Source  model.LogSource        `json:"source"`
	View    string                 `json:"view"`
	Filters []clickhouse.LogFilter `json:"filters"`
	Limit   int                    `json:"limit"`
	Suggest *string                `json:"suggest,omitempty"`
	Since   string                 `json:"since"`
}

type View

type View struct {
	Status   model.Status      `json:"status"`
	Message  string            `json:"message"`
	Sources  []model.LogSource `json:"sources"`
	Source   model.LogSource   `json:"source"`
	Services []string          `json:"services"`
	Service  string            `json:"service"`
	View     string            `json:"view"`
	Chart    *model.Chart      `json:"chart"`
	Entries  []Entry           `json:"entries"`
	Patterns []*Pattern        `json:"patterns"`
	Limit    int               `json:"limit"`
	Suggest  []string          `json:"suggest"`
	MaxTs    string            `json:"max_ts"` // string because in JS: 1756993779510773600 === 1756993779510773500
}

func Render

func Render(ctx context.Context, ch *clickhouse.Client, app *model.Application, query url.Values, w *model.World) *View

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL