cdb

package
v0.0.0-...-c6702bd Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AlarmsOnly

func AlarmsOnly(record JournalRecord) bool

func All

func All(record JournalRecord) bool

Types

type AlarmSummaryRecord

type AlarmSummaryRecord struct {
	SeqNo         uint64
	RecordTime    time.Time
	Source        string
	State         int
	StateDesc     *string
	ActiveTime    *time.Time
	InactiveTime  *time.Time
	AckTime       *time.Time
	Message       *string
	ConditionName *string
	DisplayName   *string
	Description   *string
}

type CdbConnection

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

func Open

func Open() (*CdbConnection, error)

func (*CdbConnection) Close

func (this *CdbConnection) Close() error

func (*CdbConnection) FindAssociatedJournalEntry

func (this *CdbConnection) FindAssociatedJournalEntry(ack JournalRecord) *time.Time

func (*CdbConnection) GetAlarmSummarySince

func (this *CdbConnection) GetAlarmSummarySince(t time.Time) chan AlarmSummaryRecord

func (*CdbConnection) GetJournalSince

func (this *CdbConnection) GetJournalSince(last uint64, filter JournalFilter) (chan JournalRecord, error)

func (*CdbConnection) GetLastRaisedForSource

func (this *CdbConnection) GetLastRaisedForSource(source *JournalRecord) (*JournalRecord, error)

type JournalFilter

type JournalFilter func(JournalRecord) bool

type JournalRecord

type JournalRecord struct {
	SeqNo             uint64
	RecordTime        time.Time
	Source            string
	Message           *string
	CustomStringField *string
	AlarmStateDesc    *string
	Description       *string
	DisplayName       *string
}

Jump to

Keyboard shortcuts

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