Documentation ¶
Index ¶
- Constants
- Variables
- func New(lgr log.Logger, registry metrics.Registry, cp coordinator.Coordinator, ...) providers.Provider
- func NewSink(cfg *CoralogixDestination, logger log.Logger, registry metrics.Registry) (abstract.Sinker, error)
- func SubmitLogs(data []HTTPLogItem, domain, token string) error
- type CoralogixDestination
- func (d *CoralogixDestination) CleanupMode() model.CleanupType
- func (d *CoralogixDestination) Compatible(src model.Source, transferType abstract.TransferType) error
- func (d *CoralogixDestination) GetProviderType() abstract.ProviderType
- func (d *CoralogixDestination) IsDestination()
- func (d *CoralogixDestination) Validate() error
- func (d *CoralogixDestination) WithDefaults()
- type HTTPLogItem
- type Provider
- type Severity
- type Sink
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 = set.New("403 Forbidden")
)
Functions ¶
func New ¶
func New(lgr log.Logger, registry metrics.Registry, cp coordinator.Coordinator, transfer *model.Transfer) providers.Provider
func SubmitLogs ¶
func SubmitLogs(data []HTTPLogItem, domain, token string) error
Types ¶
type CoralogixDestination ¶
type CoralogixDestination struct { Token model.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() model.CleanupType
func (*CoralogixDestination) Compatible ¶
func (d *CoralogixDestination) Compatible(src model.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"` }
Click to show internal directories.
Click to hide internal directories.