nflogpb

package
v0.32.2 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2026 License: Apache-2.0 Imports: 6 Imported by: 104

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_nflog_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Entry

type Entry struct {

	// The key identifying the dispatching group.
	GroupKey []byte `protobuf:"bytes,1,opt,name=group_key,json=groupKey,proto3" json:"group_key,omitempty"`
	// The receiver that was notified.
	Receiver *Receiver `protobuf:"bytes,2,opt,name=receiver,proto3" json:"receiver,omitempty"`
	// Hash over the state of the group at notification time.
	// Deprecated in favor of FiringAlerts field, but kept for compatibility.
	GroupHash []byte `protobuf:"bytes,3,opt,name=group_hash,json=groupHash,proto3" json:"group_hash,omitempty"`
	// Whether the notification was about a resolved alert.
	// Deprecated in favor of ResolvedAlerts field, but kept for compatibility.
	Resolved bool `protobuf:"varint,4,opt,name=resolved,proto3" json:"resolved,omitempty"`
	// Timestamp of the succeeding notification.
	Timestamp *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// FiringAlerts list of hashes of firing alerts at the last notification time.
	FiringAlerts []uint64 `protobuf:"varint,6,rep,packed,name=firing_alerts,json=firingAlerts,proto3" json:"firing_alerts,omitempty"`
	// ResolvedAlerts list of hashes of resolved alerts at the last notification time.
	ResolvedAlerts []uint64 `protobuf:"varint,7,rep,packed,name=resolved_alerts,json=resolvedAlerts,proto3" json:"resolved_alerts,omitempty"`
	// Data specific to the receiver which sent the notification
	ReceiverData map[string]*ReceiverDataValue `` /* 171-byte string literal not displayed */
	// contains filtered or unexported fields
}

Entry holds information about a successful notification sent to a receiver.

func (*Entry) Descriptor deprecated

func (*Entry) Descriptor() ([]byte, []int)

Deprecated: Use Entry.ProtoReflect.Descriptor instead.

func (*Entry) GetFiringAlerts added in v0.32.0

func (x *Entry) GetFiringAlerts() []uint64

func (*Entry) GetGroupHash added in v0.32.0

func (x *Entry) GetGroupHash() []byte

func (*Entry) GetGroupKey added in v0.32.0

func (x *Entry) GetGroupKey() []byte

func (*Entry) GetReceiver

func (x *Entry) GetReceiver() *Receiver

func (*Entry) GetReceiverData added in v0.32.0

func (x *Entry) GetReceiverData() map[string]*ReceiverDataValue

func (*Entry) GetResolved added in v0.32.0

func (x *Entry) GetResolved() bool

func (*Entry) GetResolvedAlerts added in v0.32.0

func (x *Entry) GetResolvedAlerts() []uint64

func (*Entry) GetTimestamp

func (x *Entry) GetTimestamp() *timestamppb.Timestamp

func (*Entry) IsFiringSubset added in v0.6.0

func (m *Entry) IsFiringSubset(subset map[uint64]struct{}) bool

IsFiringSubset returns whether the given subset is a subset of the alerts that were firing at the time of the last notification.

func (*Entry) IsResolvedSubset added in v0.6.0

func (m *Entry) IsResolvedSubset(subset map[uint64]struct{}) bool

IsResolvedSubset returns whether the given subset is a subset of the alerts that were resolved at the time of the last notification.

func (*Entry) ProtoMessage

func (*Entry) ProtoMessage()

func (*Entry) ProtoReflect added in v0.32.0

func (x *Entry) ProtoReflect() protoreflect.Message

func (*Entry) Reset

func (x *Entry) Reset()

func (*Entry) String

func (x *Entry) String() string

type MeshEntry

type MeshEntry struct {

	// The original raw notify log entry.
	Entry *Entry `protobuf:"bytes,1,opt,name=entry,proto3" json:"entry,omitempty"`
	// A timestamp indicating when the mesh peer should evict
	// the log entry from its state.
	ExpiresAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"`
	// contains filtered or unexported fields
}

MeshEntry is a wrapper message to communicate a notify log entry through a mesh network.

func (*MeshEntry) Descriptor deprecated

func (*MeshEntry) Descriptor() ([]byte, []int)

Deprecated: Use MeshEntry.ProtoReflect.Descriptor instead.

func (*MeshEntry) GetEntry

func (x *MeshEntry) GetEntry() *Entry

func (*MeshEntry) GetExpiresAt

func (x *MeshEntry) GetExpiresAt() *timestamppb.Timestamp

func (*MeshEntry) ProtoMessage

func (*MeshEntry) ProtoMessage()

func (*MeshEntry) ProtoReflect added in v0.32.0

func (x *MeshEntry) ProtoReflect() protoreflect.Message

func (*MeshEntry) Reset

func (x *MeshEntry) Reset()

func (*MeshEntry) String

func (x *MeshEntry) String() string

type Receiver

type Receiver struct {

	// Configured name of the receiver group.
	GroupName string `protobuf:"bytes,1,opt,name=group_name,json=groupName,proto3" json:"group_name,omitempty"`
	// Name of the integration of the receiver.
	Integration string `protobuf:"bytes,2,opt,name=integration,proto3" json:"integration,omitempty"`
	// Index of the receiver with respect to the integration.
	// Every integration in a group may have 0..N configurations.
	Idx uint32 `protobuf:"varint,3,opt,name=idx,proto3" json:"idx,omitempty"`
	// contains filtered or unexported fields
}

func (*Receiver) Descriptor deprecated

func (*Receiver) Descriptor() ([]byte, []int)

Deprecated: Use Receiver.ProtoReflect.Descriptor instead.

func (*Receiver) GetGroupName added in v0.32.0

func (x *Receiver) GetGroupName() string

func (*Receiver) GetIdx added in v0.32.0

func (x *Receiver) GetIdx() uint32

func (*Receiver) GetIntegration added in v0.32.0

func (x *Receiver) GetIntegration() string

func (*Receiver) ProtoMessage

func (*Receiver) ProtoMessage()

func (*Receiver) ProtoReflect added in v0.32.0

func (x *Receiver) ProtoReflect() protoreflect.Message

func (*Receiver) Reset

func (x *Receiver) Reset()

func (*Receiver) String

func (x *Receiver) String() string

type ReceiverDataValue added in v0.31.0

type ReceiverDataValue struct {

	// Types that are valid to be assigned to Value:
	//
	//	*ReceiverDataValue_StrVal
	//	*ReceiverDataValue_IntVal
	//	*ReceiverDataValue_DoubleVal
	Value isReceiverDataValue_Value `protobuf_oneof:"value"`
	// contains filtered or unexported fields
}

func (*ReceiverDataValue) Descriptor deprecated added in v0.31.0

func (*ReceiverDataValue) Descriptor() ([]byte, []int)

Deprecated: Use ReceiverDataValue.ProtoReflect.Descriptor instead.

func (*ReceiverDataValue) GetDoubleVal added in v0.31.0

func (x *ReceiverDataValue) GetDoubleVal() float64

func (*ReceiverDataValue) GetIntVal added in v0.31.0

func (x *ReceiverDataValue) GetIntVal() int64

func (*ReceiverDataValue) GetStrVal added in v0.31.0

func (x *ReceiverDataValue) GetStrVal() string

func (*ReceiverDataValue) GetValue added in v0.31.0

func (x *ReceiverDataValue) GetValue() isReceiverDataValue_Value

func (*ReceiverDataValue) ProtoMessage added in v0.31.0

func (*ReceiverDataValue) ProtoMessage()

func (*ReceiverDataValue) ProtoReflect added in v0.32.0

func (x *ReceiverDataValue) ProtoReflect() protoreflect.Message

func (*ReceiverDataValue) Reset added in v0.31.0

func (x *ReceiverDataValue) Reset()

func (*ReceiverDataValue) String added in v0.31.0

func (x *ReceiverDataValue) String() string

type ReceiverDataValue_DoubleVal added in v0.31.0

type ReceiverDataValue_DoubleVal struct {
	DoubleVal float64 `protobuf:"fixed64,3,opt,name=double_val,json=doubleVal,proto3,oneof"`
}

type ReceiverDataValue_IntVal added in v0.31.0

type ReceiverDataValue_IntVal struct {
	IntVal int64 `protobuf:"varint,2,opt,name=int_val,json=intVal,proto3,oneof"`
}

type ReceiverDataValue_StrVal added in v0.31.0

type ReceiverDataValue_StrVal struct {
	StrVal string `protobuf:"bytes,1,opt,name=str_val,json=strVal,proto3,oneof"`
}

Jump to

Keyboard shortcuts

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