nflogpb

package
v0.5.0-beta.0 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2016 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package nflogpb is a generated protocol buffer package.

It is generated from these files:

nflog/nflogpb/nflog.proto

It has these top-level messages:

Receiver
Entry
MeshEntry

Index

Constants

This section is empty.

Variables

This section is empty.

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.
	GroupHash []byte `protobuf:"bytes,3,opt,name=group_hash,json=groupHash,proto3" json:"group_hash,omitempty"`
	// Whether the notification was about a resolved alert.
	Resolved bool `protobuf:"varint,4,opt,name=resolved" json:"resolved,omitempty"`
	// Timestamp of the succeeding notification.
	Timestamp *google_protobuf.Timestamp `protobuf:"bytes,5,opt,name=timestamp" json:"timestamp,omitempty"`
}

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

func (*Entry) Descriptor

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

func (*Entry) GetReceiver

func (m *Entry) GetReceiver() *Receiver

func (*Entry) GetTimestamp

func (m *Entry) GetTimestamp() *google_protobuf.Timestamp

func (*Entry) ProtoMessage

func (*Entry) ProtoMessage()

func (*Entry) Reset

func (m *Entry) Reset()

func (*Entry) String

func (m *Entry) String() string

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 *google_protobuf.Timestamp `protobuf:"bytes,2,opt,name=expires_at,json=expiresAt" json:"expires_at,omitempty"`
}

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) GetEntry

func (m *MeshEntry) GetEntry() *Entry

func (*MeshEntry) GetExpiresAt

func (m *MeshEntry) GetExpiresAt() *google_protobuf.Timestamp

func (*MeshEntry) ProtoMessage

func (*MeshEntry) ProtoMessage()

func (*MeshEntry) Reset

func (m *MeshEntry) Reset()

func (*MeshEntry) String

func (m *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" json:"group_name,omitempty"`
	// Name of the integration of the receiver.
	Integration string `protobuf:"bytes,2,opt,name=integration" 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" json:"idx,omitempty"`
}

func (*Receiver) Descriptor

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

func (*Receiver) ProtoMessage

func (*Receiver) ProtoMessage()

func (*Receiver) Reset

func (m *Receiver) Reset()

func (*Receiver) String

func (m *Receiver) String() string

Jump to

Keyboard shortcuts

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