logs

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 14 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"`
	Message    string            `json:"message"`
	Attributes map[string]string `json:"attributes"`
}

type Pattern

type Pattern struct {
	Severity string                `json:"severity"`
	Sample   string                `json:"sample"`
	Messages *timeseries.Aggregate `json:"messages"`
	Sum      uint64                `json:"sum"`
	Chart    *model.Chart          `json:"chart"`
	Hash     string                `json:"hash"`
	// contains filtered or unexported fields
}

type Query

type Query struct {
	Source   model.LogSource `json:"source"`
	View     string          `json:"view"`
	Severity []string        `json:"severity"`
	Search   string          `json:"search"`
	Hash     string          `json:"hash"`
	Limit    int             `json:"limit"`
}

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"`
	Views      []string          `json:"views"`
	View       string            `json:"view"`
	Severities []string          `json:"severities"`
	Severity   []string          `json:"severity"`
	Chart      *model.Chart      `json:"chart"`
	Entries    []Entry           `json:"entries"`
	Patterns   []*Pattern        `json:"patterns"`
	Limit      int               `json:"limit"`
}

func Render

func Render(ctx context.Context, ch *clickhouse.Client, app *model.Application, appSettings *db.ApplicationSettings, 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