nflogpb

package
v0.15.1 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package nflogpb is a generated protocol buffer package.

It is generated from these files:

nflog.proto

It has these top-level messages:

Receiver
Entry
MeshEntry

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthNflog = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowNflog   = fmt.Errorf("proto: integer overflow")
)

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" 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 time.Time `protobuf:"bytes,5,opt,name=timestamp,stdtime" json:"timestamp"`
	// FiringAlerts list of hashes of firing alerts at the last notification time.
	FiringAlerts []uint64 `protobuf:"varint,6,rep,packed,name=firing_alerts,json=firingAlerts" 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" json:"resolved_alerts,omitempty"`
}

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

func (*Entry) Descriptor

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

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) Marshal added in v0.6.0

func (m *Entry) Marshal() (dAtA []byte, err error)

func (*Entry) MarshalTo added in v0.6.0

func (m *Entry) MarshalTo(dAtA []byte) (int, error)

func (*Entry) ProtoMessage

func (*Entry) ProtoMessage()

func (*Entry) Reset

func (m *Entry) Reset()

func (*Entry) Size added in v0.6.0

func (m *Entry) Size() (n int)

func (*Entry) String

func (m *Entry) String() string

func (*Entry) Unmarshal added in v0.6.0

func (m *Entry) Unmarshal(dAtA []byte) error

type MeshEntry

type MeshEntry struct {
	// The original raw notify log entry.
	Entry *Entry `protobuf:"bytes,1,opt,name=entry" json:"entry,omitempty"`
	// A timestamp indicating when the mesh peer should evict
	// the log entry from its state.
	ExpiresAt time.Time `protobuf:"bytes,2,opt,name=expires_at,json=expiresAt,stdtime" json:"expires_at"`
}

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

func (*MeshEntry) Descriptor

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

func (*MeshEntry) Marshal added in v0.6.0

func (m *MeshEntry) Marshal() (dAtA []byte, err error)

func (*MeshEntry) MarshalTo added in v0.6.0

func (m *MeshEntry) MarshalTo(dAtA []byte) (int, error)

func (*MeshEntry) ProtoMessage

func (*MeshEntry) ProtoMessage()

func (*MeshEntry) Reset

func (m *MeshEntry) Reset()

func (*MeshEntry) Size added in v0.6.0

func (m *MeshEntry) Size() (n int)

func (*MeshEntry) String

func (m *MeshEntry) String() string

func (*MeshEntry) Unmarshal added in v0.6.0

func (m *MeshEntry) Unmarshal(dAtA []byte) error

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"`
}

func (*Receiver) Descriptor

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

func (*Receiver) Marshal added in v0.6.0

func (m *Receiver) Marshal() (dAtA []byte, err error)

func (*Receiver) MarshalTo added in v0.6.0

func (m *Receiver) MarshalTo(dAtA []byte) (int, error)

func (*Receiver) ProtoMessage

func (*Receiver) ProtoMessage()

func (*Receiver) Reset

func (m *Receiver) Reset()

func (*Receiver) Size added in v0.6.0

func (m *Receiver) Size() (n int)

func (*Receiver) String

func (m *Receiver) String() string

func (*Receiver) Unmarshal added in v0.6.0

func (m *Receiver) Unmarshal(dAtA []byte) error

Jump to

Keyboard shortcuts

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