data

package
v0.0.0-...-312b4c0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2026 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

ProviderSet is data providers.

Functions

func NewEntClient

func NewEntClient(c *conf.Data) (*data.Client, error)

Types

type LogEntry

type LogEntry struct {
	Timestamp time.Time      `json:"_time"`
	Level     string         `json:"level"`
	Message   string         `json:"_msg"`
	Source    string         `json:"source,omitempty"`
	ProjectID string         `json:"project"` // DSN, used as stream field for filtering
	Data      map[string]any `json:"data,omitempty"`
}

type QueryLogsRequest

type QueryLogsRequest struct {
	ProjectID string
	Query     string
	Start     time.Time
	End       time.Time
	Limit     int
	Offset    int
}

type QueryLogsResponse

type QueryLogsResponse struct {
	Logs  []LogEntry `json:"logs"`
	Total int        `json:"total"`
}

type VictoriaLogsClient

type VictoriaLogsClient struct {
	// contains filtered or unexported fields
}

func NewVictoriaLogsClient

func NewVictoriaLogsClient(dataConf *conf.Data) (*VictoriaLogsClient, error)

func (*VictoriaLogsClient) Close

func (v *VictoriaLogsClient) Close() error

func (*VictoriaLogsClient) HealthCheck

func (v *VictoriaLogsClient) HealthCheck() error

func (*VictoriaLogsClient) QueryLogs

QueryLogs queries logs from VictoriaLogs by project ID

func (*VictoriaLogsClient) WriteLogs

func (v *VictoriaLogsClient) WriteLogs(logs []LogEntry) error

Jump to

Keyboard shortcuts

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