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 ¶
- Variables
- type Entry
- func (*Entry) Descriptor() ([]byte, []int)
- func (m *Entry) IsFiringSubset(subset map[uint64]struct{}) bool
- func (m *Entry) IsResolvedSubset(subset map[uint64]struct{}) bool
- func (m *Entry) Marshal() (dAtA []byte, err error)
- func (m *Entry) MarshalTo(dAtA []byte) (int, error)
- func (*Entry) ProtoMessage()
- func (m *Entry) Reset()
- func (m *Entry) Size() (n int)
- func (m *Entry) String() string
- func (m *Entry) Unmarshal(dAtA []byte) error
- type MeshEntry
- func (*MeshEntry) Descriptor() ([]byte, []int)
- func (m *MeshEntry) Marshal() (dAtA []byte, err error)
- func (m *MeshEntry) MarshalTo(dAtA []byte) (int, error)
- func (*MeshEntry) ProtoMessage()
- func (m *MeshEntry) Reset()
- func (m *MeshEntry) Size() (n int)
- func (m *MeshEntry) String() string
- func (m *MeshEntry) Unmarshal(dAtA []byte) error
- type Receiver
- func (*Receiver) Descriptor() ([]byte, []int)
- func (m *Receiver) Marshal() (dAtA []byte, err error)
- func (m *Receiver) MarshalTo(dAtA []byte) (int, error)
- func (*Receiver) ProtoMessage()
- func (m *Receiver) Reset()
- func (m *Receiver) Size() (n int)
- func (m *Receiver) String() string
- func (m *Receiver) Unmarshal(dAtA []byte) error
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) IsFiringSubset ¶ added in v0.6.0
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
IsFiringSubset 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()
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) ProtoMessage ¶
func (*MeshEntry) ProtoMessage()
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) ProtoMessage ¶
func (*Receiver) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.