reporter

package
v0.0.0-...-e70f483 Latest Latest
Warning

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

Go to latest
Published: May 21, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package reporter holds reporter related files

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCWSReporter

func NewCWSReporter(hostname string, stopper startstop.Stopper, endpoints *logsconfig.Endpoints, context *client.DestinationsContext, compression compression.Component, secretsComp secrets.Component) (seccommon.RawReporter, error)

NewCWSReporter returns a new CWS reported based on the fields necessary to communicate with the intake. secretsComp enables API key refresh on 403 responses; pass a SecretNoop when no secrets backend is available.

Types

type RuntimeReporter

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

RuntimeReporter represents a CWS reporter, used to send events to the intake

func (*RuntimeReporter) ReportRaw

func (r *RuntimeReporter) ReportRaw(content []byte, service string, hostname string, timestamp time.Time, tags ...string)

ReportRaw reports raw (bytes) events to the intake. If hostname is empty, the reporter's default hostname is used.

Jump to

Keyboard shortcuts

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