coralogix

package
v0.0.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2024 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Debug    = Severity(1)
	Verbose  = Severity(2)
	Info     = Severity(3)
	Warn     = Severity(4)
	Error    = Severity(5)
	Critical = Severity(6)
)

1 – Debug, 2 – Verbose, 3 – Info, 4 – Warn, 5 – Error, 6 – Critical

View Source
const ProviderType = abstract.ProviderType("coralogix")

Variables

View Source
var (
	FatalErrors = util.NewSet("403 Forbidden")
)

Functions

func New

func NewSink

func NewSink(cfg *CoralogixDestination, logger log.Logger, registry metrics.Registry) (abstract.Sinker, error)

func SubmitLogs

func SubmitLogs(data []HTTPLogItem, domain, token string) error

Types

type CoralogixDestination

type CoralogixDestination struct {
	Token  server.SecretString
	Domain string

	MessageTemplate string
	ChunkSize       int
	SubsystemColumn string
	ApplicationName string

	// mapping to columns
	TimestampColumn string
	SourceColumn    string
	CategoryColumn  string
	ClassColumn     string
	MethodColumn    string
	ThreadIDColumn  string
	SeverityColumn  string
	HostColumn      string
	KnownSevereties map[string]Severity
}

func (*CoralogixDestination) CleanupMode

func (d *CoralogixDestination) CleanupMode() server.CleanupType

func (*CoralogixDestination) Compatible

func (d *CoralogixDestination) Compatible(src server.Source, transferType abstract.TransferType) error

func (*CoralogixDestination) GetProviderType

func (d *CoralogixDestination) GetProviderType() abstract.ProviderType

func (*CoralogixDestination) IsDestination

func (d *CoralogixDestination) IsDestination()

func (*CoralogixDestination) Validate

func (d *CoralogixDestination) Validate() error

func (*CoralogixDestination) WithDefaults

func (d *CoralogixDestination) WithDefaults()

type HTTPLogItem

type HTTPLogItem struct {
	ApplicationName string   `json:"applicationName"`
	SubsystemName   string   `json:"subsystemName"`
	ComputerName    string   `json:"computerName"`
	Timestamp       int64    `json:"timestamp,omitempty"`
	Severity        Severity `json:"severity"`
	Text            string   `json:"text"`
	Category        string   `json:"category"`
	ClassName       string   `json:"className"`
	MethodName      string   `json:"methodName"`
	ThreadID        string   `json:"threadId"`
	HiResTimestamp  string   `json:"hiResTimestamp,omitempty"`
}

type Provider

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

func (Provider) Sink

func (p Provider) Sink(config middlewares.Config) (abstract.Sinker, error)

func (Provider) Type

func (p Provider) Type() abstract.ProviderType

type Severity

type Severity int

type Sink

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

func (*Sink) Close

func (s *Sink) Close() error

func (*Sink) Push

func (s *Sink) Push(items []abstract.ChangeItem) error

Jump to

Keyboard shortcuts

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