Documentation
¶
Index ¶
- Variables
- type Entry
- func (*Entry) Descriptor() ([]byte, []int)deprecated
- func (x *Entry) GetFiringAlerts() []uint64
- func (x *Entry) GetGroupHash() []byte
- func (x *Entry) GetGroupKey() []byte
- func (x *Entry) GetReceiver() *Receiver
- func (x *Entry) GetReceiverData() map[string]*ReceiverDataValue
- func (x *Entry) GetResolved() bool
- func (x *Entry) GetResolvedAlerts() []uint64
- func (x *Entry) GetTimestamp() *timestamppb.Timestamp
- func (m *Entry) IsFiringSubset(subset map[uint64]struct{}) bool
- func (m *Entry) IsResolvedSubset(subset map[uint64]struct{}) bool
- func (*Entry) ProtoMessage()
- func (x *Entry) ProtoReflect() protoreflect.Message
- func (x *Entry) Reset()
- func (x *Entry) String() string
- type MeshEntry
- func (*MeshEntry) Descriptor() ([]byte, []int)deprecated
- func (x *MeshEntry) GetEntry() *Entry
- func (x *MeshEntry) GetExpiresAt() *timestamppb.Timestamp
- func (*MeshEntry) ProtoMessage()
- func (x *MeshEntry) ProtoReflect() protoreflect.Message
- func (x *MeshEntry) Reset()
- func (x *MeshEntry) String() string
- type Receiver
- func (*Receiver) Descriptor() ([]byte, []int)deprecated
- func (x *Receiver) GetGroupName() string
- func (x *Receiver) GetIdx() uint32
- func (x *Receiver) GetIntegration() string
- func (*Receiver) ProtoMessage()
- func (x *Receiver) ProtoReflect() protoreflect.Message
- func (x *Receiver) Reset()
- func (x *Receiver) String() string
- type ReceiverDataValue
- func (*ReceiverDataValue) Descriptor() ([]byte, []int)deprecated
- func (x *ReceiverDataValue) GetDoubleVal() float64
- func (x *ReceiverDataValue) GetIntVal() int64
- func (x *ReceiverDataValue) GetStrVal() string
- func (x *ReceiverDataValue) GetValue() isReceiverDataValue_Value
- func (*ReceiverDataValue) ProtoMessage()
- func (x *ReceiverDataValue) ProtoReflect() protoreflect.Message
- func (x *ReceiverDataValue) Reset()
- func (x *ReceiverDataValue) String() string
- type ReceiverDataValue_DoubleVal
- type ReceiverDataValue_IntVal
- type ReceiverDataValue_StrVal
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) GetFiringAlerts ¶ added in v0.32.0
func (*Entry) GetGroupHash ¶ added in v0.32.0
func (*Entry) GetGroupKey ¶ added in v0.32.0
func (*Entry) GetReceiver ¶
func (*Entry) GetReceiverData ¶ added in v0.32.0
func (x *Entry) GetReceiverData() map[string]*ReceiverDataValue
func (*Entry) GetResolved ¶ added in v0.32.0
func (*Entry) GetResolvedAlerts ¶ added in v0.32.0
func (*Entry) GetTimestamp ¶
func (x *Entry) GetTimestamp() *timestamppb.Timestamp
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
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
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) 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
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) GetGroupName ¶ added in v0.32.0
func (*Receiver) GetIntegration ¶ added in v0.32.0
func (*Receiver) ProtoMessage ¶
func (*Receiver) ProtoMessage()
func (*Receiver) ProtoReflect ¶ added in v0.32.0
func (x *Receiver) ProtoReflect() protoreflect.Message
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"`
}
Click to show internal directories.
Click to hide internal directories.