beater

package
v1.0.8 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const ServiceName = "sophoscentralbeat"

ServiceName is the name of the service

Variables

This section is empty.

Functions

func AlertEntityToCommonMap

func AlertEntityToCommonMap(entity sophoscentral.AlertEntity) (common.MapStr, error)

func GenerateYesterdayTimeStamp

func GenerateYesterdayTimeStamp() int64

GenerateYesterdayTimeStamp : generate 24 hour prior timestamp

func GetEvent

func GetEvent(data interface{}) beat.Event

GetEvent converts json data to beats json response

func GetSophosAlerts

func GetSophosAlerts(scb Sophoscentralbeat) error

GetSophosAlerts : call alerts API

func GetSophosEvents

func GetSophosEvents(scb Sophoscentralbeat) error

GetSophosEvents : calls Sophos Events Api

func LegacyEventEntityToCommonMap

func LegacyEventEntityToCommonMap(entity sophoscentral.LegacyEventEntity) (common.MapStr, error)

func New

func New(b *beat.Beat, cfg *common.Config) (beat.Beater, error)

New creates an instance of sophoscentralbeat.

func UpdateAlertTime

func UpdateAlertTime(scb *Sophoscentralbeat, alertTimeStamp int64)

func UpdateEventTime

func UpdateEventTime(scb *Sophoscentralbeat, eventTimeStamp int64)

Types

type Sophoscentralbeat

type Sophoscentralbeat struct {
	StopChan chan struct{}
	// contains filtered or unexported fields
}

Sophoscentralbeat configuration.

func (*Sophoscentralbeat) Run

func (scb *Sophoscentralbeat) Run(b *beat.Beat) error

Run starts sophoscentralbeat.

func (*Sophoscentralbeat) Stop

func (scb *Sophoscentralbeat) Stop()

Stop stops sophoscentralbeat.

Jump to

Keyboard shortcuts

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