...

Package nflogpb

import "github.com/prometheus/alertmanager/nflog/nflogpb"
Overview
Index

Overview ▾

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 (m *Entry) MarshalToSizedBuffer(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
    func (m *Entry) XXX_DiscardUnknown()
    func (m *Entry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
    func (m *Entry) XXX_Merge(src proto.Message)
    func (m *Entry) XXX_Size() int
    func (m *Entry) XXX_Unmarshal(b []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 (m *MeshEntry) MarshalToSizedBuffer(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
    func (m *MeshEntry) XXX_DiscardUnknown()
    func (m *MeshEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
    func (m *MeshEntry) XXX_Merge(src proto.Message)
    func (m *MeshEntry) XXX_Size() int
    func (m *MeshEntry) XXX_Unmarshal(b []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 (m *Receiver) MarshalToSizedBuffer(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
    func (m *Receiver) XXX_DiscardUnknown()
    func (m *Receiver) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
    func (m *Receiver) XXX_Merge(src proto.Message)
    func (m *Receiver) XXX_Size() int
    func (m *Receiver) XXX_Unmarshal(b []byte) error

Package files

nflog.pb.go set.go

Variables

var (
    ErrInvalidLengthNflog        = fmt.Errorf("proto: negative length found during unmarshaling")
    ErrIntOverflowNflog          = fmt.Errorf("proto: integer overflow")
    ErrUnexpectedEndOfGroupNflog = fmt.Errorf("proto: unexpected end of group")
)

type Entry

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

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 time.Time `protobuf:"bytes,5,opt,name=timestamp,proto3,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,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"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*Entry) Descriptor

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

func (*Entry) IsFiringSubset

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

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

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

func (*Entry) MarshalTo

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

func (*Entry) MarshalToSizedBuffer

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

func (*Entry) ProtoMessage

func (*Entry) ProtoMessage()

func (*Entry) Reset

func (m *Entry) Reset()

func (*Entry) Size

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

func (*Entry) String

func (m *Entry) String() string

func (*Entry) Unmarshal

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

func (*Entry) XXX_DiscardUnknown

func (m *Entry) XXX_DiscardUnknown()

func (*Entry) XXX_Marshal

func (m *Entry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Entry) XXX_Merge

func (m *Entry) XXX_Merge(src proto.Message)

func (*Entry) XXX_Size

func (m *Entry) XXX_Size() int

func (*Entry) XXX_Unmarshal

func (m *Entry) XXX_Unmarshal(b []byte) error

type MeshEntry

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

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            time.Time `protobuf:"bytes,2,opt,name=expires_at,json=expiresAt,proto3,stdtime" json:"expires_at"`
    XXX_NoUnkeyedLiteral struct{}  `json:"-"`
    XXX_unrecognized     []byte    `json:"-"`
    XXX_sizecache        int32     `json:"-"`
}

func (*MeshEntry) Descriptor

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

func (*MeshEntry) Marshal

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

func (*MeshEntry) MarshalTo

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

func (*MeshEntry) MarshalToSizedBuffer

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

func (*MeshEntry) ProtoMessage

func (*MeshEntry) ProtoMessage()

func (*MeshEntry) Reset

func (m *MeshEntry) Reset()

func (*MeshEntry) Size

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

func (*MeshEntry) String

func (m *MeshEntry) String() string

func (*MeshEntry) Unmarshal

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

func (*MeshEntry) XXX_DiscardUnknown

func (m *MeshEntry) XXX_DiscardUnknown()

func (*MeshEntry) XXX_Marshal

func (m *MeshEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MeshEntry) XXX_Merge

func (m *MeshEntry) XXX_Merge(src proto.Message)

func (*MeshEntry) XXX_Size

func (m *MeshEntry) XXX_Size() int

func (*MeshEntry) XXX_Unmarshal

func (m *MeshEntry) XXX_Unmarshal(b []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"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*Receiver) Descriptor

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

func (*Receiver) Marshal

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

func (*Receiver) MarshalTo

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

func (*Receiver) MarshalToSizedBuffer

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

func (*Receiver) ProtoMessage

func (*Receiver) ProtoMessage()

func (*Receiver) Reset

func (m *Receiver) Reset()

func (*Receiver) Size

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

func (*Receiver) String

func (m *Receiver) String() string

func (*Receiver) Unmarshal

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

func (*Receiver) XXX_DiscardUnknown

func (m *Receiver) XXX_DiscardUnknown()

func (*Receiver) XXX_Marshal

func (m *Receiver) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Receiver) XXX_Merge

func (m *Receiver) XXX_Merge(src proto.Message)

func (*Receiver) XXX_Size

func (m *Receiver) XXX_Size() int

func (*Receiver) XXX_Unmarshal

func (m *Receiver) XXX_Unmarshal(b []byte) error