log

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LabeledLog

type LabeledLog struct {
	Log
	Labels map[string]string `json:"labels,omitempty"`
}

LabeledLog .

type Log

type Log struct {
	UniqId         string            `json:"-" ch:"_id"`
	OrgName        string            `json:"-" ch:"org_name"`
	TenantId       string            `json:"-" ch:"tenant_id"`
	GroupId        string            `json:"-" ch:"group_id"`
	Source         string            `json:"source" ch:"source"`
	ID             string            `json:"id" ch:"id"`
	Stream         string            `json:"stream" ch:"stream"`
	Content        string            `json:"content" ch:"content"`
	Offset         int64             `json:"offset" ch:"offset"`
	Time           *time.Time        `json:"time,omitempty"` // the time key in fluent-bit is RFC3339Nano
	Timestamp      int64             `json:"timestamp"`
	WriteTimestamp time.Time         `ch:"timestamp"`
	Tags           map[string]string `json:"tags" ch:"tags"`
}

Log .

func (*Log) GetTags

func (l *Log) GetTags() map[string]string

func (*Log) Hash

func (l *Log) Hash() uint64

type Meta

type Meta struct {
	Source string            `json:"source"`
	ID     string            `json:"id"`
	Tags   map[string]string `json:"tags"`
}

Meta Log Meta

Jump to

Keyboard shortcuts

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