shipper

package
v0.0.0-...-6993647 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	EventsShippedTotal = prometheus.NewCounter(prometheus.CounterOpts{
		Name: "bosh_auditor_events_shipped_to_splunk_total",
		Help: "Counter of total number of bosh events shipped_to_splunk",
	})
)

Functions

This section is empty.

Types

type BoshEvent

type BoshEvent struct {
	ID             string `json:"id"`
	Timestamp      int64  `json:"timestamp"`
	User           string `json:"user"`
	Action         string `json:"action"`
	TaskID         string `json:"task"`
	DeploymentName string `json:"deployment"`
	Instance       string `json:"instance"`
}

type Shipper

type Shipper interface {
	Run(context.Context) error
}

func NewShipper

func NewShipper(
	schedule time.Duration,
	logger lager.Logger,
	cursor c.Cursor,
	fetcher f.Fetcher,
	deployEnv string,
	splunkAPIKey string,
	splunkURL string,
) Shipper

type SplunkEvent

type SplunkEvent struct {
	SourceType string    `json:"sourcetype"`
	Source     string    `json:"source"`
	Event      BoshEvent `json:"event"`
}

Jump to

Keyboard shortcuts

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