Documentation
¶
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
Constants ¶
This section is empty.
Variables ¶
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 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:"-"`
}
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
IsResolvedSubset returns whether the given subset is a subset of the alerts that were resolved at the time of the last notification.
func (*Entry) MarshalToSizedBuffer ¶ added in v0.19.0
func (*Entry) ProtoMessage ¶
func (*Entry) ProtoMessage()
func (*Entry) XXX_DiscardUnknown ¶ added in v0.17.0
func (m *Entry) XXX_DiscardUnknown()
func (*Entry) XXX_Marshal ¶ added in v0.17.0
func (*Entry) XXX_Unmarshal ¶ added in v0.17.0
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 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:"-"`
}
MeshEntry is a wrapper message to communicate a notify log entry through a mesh network.
func (*MeshEntry) Descriptor ¶
func (*MeshEntry) MarshalToSizedBuffer ¶ added in v0.19.0
func (*MeshEntry) ProtoMessage ¶
func (*MeshEntry) ProtoMessage()
func (*MeshEntry) XXX_DiscardUnknown ¶ added in v0.17.0
func (m *MeshEntry) XXX_DiscardUnknown()
func (*MeshEntry) XXX_Marshal ¶ added in v0.17.0
func (*MeshEntry) XXX_Unmarshal ¶ added in v0.17.0
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) MarshalToSizedBuffer ¶ added in v0.19.0
func (*Receiver) ProtoMessage ¶
func (*Receiver) ProtoMessage()
func (*Receiver) XXX_DiscardUnknown ¶ added in v0.17.0
func (m *Receiver) XXX_DiscardUnknown()
func (*Receiver) XXX_Marshal ¶ added in v0.17.0
func (*Receiver) XXX_Unmarshal ¶ added in v0.17.0
Click to show internal directories.
Click to hide internal directories.