serviceLogs

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const APPLICATION = "APPLICATION"
View Source
const AT = "@"
View Source
const BUILD = "BUILD"
View Source
const FULL = "FULL"
View Source
const HTTPS = "https://"
View Source
const JSON = "JSON"
View Source
const JSONSTREAM = "JSONSTREAM"
View Source
const RESPONSE = "RESPONSE"
View Source
const RFC3164 = "3164"
View Source
const RFC5424 = "5424"
View Source
const RUNTIME = "RUNTIME"
View Source
const SHORT = "SHORT"
View Source
const STREAM = "STREAM"
View Source
const WEBSERVER = "WEBSERVER"
View Source
const WSS = "wss://"

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
}

type Data

type Data struct {
	Timestamp      string `json:"timestamp"`
	Version        int    `json:"version"`
	Hostname       string `json:"hostname"`
	Content        string `json:"content"`
	Client         string `json:"client"`
	Facility       int    `json:"facility"`
	FacilityLabel  string `json:"facilityLabel"`
	Id             string `json:"id"`
	MsgId          string `json:"msgId"`
	Priority       int    `json:"priority"`
	ProcId         string `json:"procId"`
	Severity       int    `json:"severity"`
	SeverityLabel  string `json:"severityLabel"`
	StructuredData string `json:"structuredData"`
	Tag            string `json:"tag"`
	TlsPeer        string `json:"tlsPeer"`
	AppName        string `json:"appName"`
	Message        string `json:"message"`
}

type Handler

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

func New

func New(config Config, restApiClient *zeropsRestApiClient.Handler) *Handler

func (*Handler) Run

func (h *Handler) Run(ctx context.Context, config RunConfig) error

type InputValues

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

type Levels

type Levels [8][2]string

type Response

type Response struct {
	Items []Data `json:"items"`
}

type RunConfig

type RunConfig struct {
	Project        entity.Project
	ServiceId      uuid.ServiceStackId
	Container      entity.Container
	Limit          uint32
	MinSeverity    string
	MsgType        string
	Format         string
	FormatTemplate string
	Follow         bool
	Levels         Levels
}

Jump to

Keyboard shortcuts

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