eventrecorderpb

package
v0.34.0 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NotifyReason_name = map[int32]string{
		0: "NOTIFY_REASON_UNSPECIFIED",
		1: "NOTIFY_REASON_FIRST_NOTIFICATION",
		2: "NOTIFY_REASON_NEW_ALERTS_IN_GROUP",
		3: "NOTIFY_REASON_NEW_RESOLVED_ALERTS",
		4: "NOTIFY_REASON_ALL_ALERTS_RESOLVED",
		5: "NOTIFY_REASON_REPEAT_INTERVAL_ELAPSED",
	}
	NotifyReason_value = map[string]int32{
		"NOTIFY_REASON_UNSPECIFIED":             0,
		"NOTIFY_REASON_FIRST_NOTIFICATION":      1,
		"NOTIFY_REASON_NEW_ALERTS_IN_GROUP":     2,
		"NOTIFY_REASON_NEW_RESOLVED_ALERTS":     3,
		"NOTIFY_REASON_ALL_ALERTS_RESOLVED":     4,
		"NOTIFY_REASON_REPEAT_INTERVAL_ELAPSED": 5,
	}
)

Enum value maps for NotifyReason.

View Source
var (
	Matcher_Type_name = map[int32]string{
		0: "TYPE_UNSPECIFIED",
		1: "TYPE_EQUAL",
		2: "TYPE_REGEXP",
		3: "TYPE_NOT_EQUAL",
		4: "TYPE_NOT_REGEXP",
	}
	Matcher_Type_value = map[string]int32{
		"TYPE_UNSPECIFIED": 0,
		"TYPE_EQUAL":       1,
		"TYPE_REGEXP":      2,
		"TYPE_NOT_EQUAL":   3,
		"TYPE_NOT_REGEXP":  4,
	}
)

Enum value maps for Matcher_Type.

View Source
var File_eventrecorder_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Alert

type Alert struct {

	// The unique fingerprint derived from the alert's label set.
	Fingerprint uint64 `protobuf:"varint,1,opt,name=fingerprint,proto3" json:"fingerprint,omitempty"`
	// The value of the "alertname" label, provided for convenience.
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// The full label set that identifies this alert.
	Labels *LabelSet `protobuf:"bytes,3,opt,name=labels,proto3" json:"labels,omitempty"`
	// Informational annotations attached to the alert (e.g., summary,
	// description).
	Annotations *LabelSet `protobuf:"bytes,4,opt,name=annotations,proto3" json:"annotations,omitempty"`
	// The time at which the alert started firing.
	StartsAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=starts_at,json=startsAt,proto3" json:"starts_at,omitempty"`
	// The time at which the alert is considered resolved.  For firing
	// alerts this is typically set to a time in the future.
	EndsAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=ends_at,json=endsAt,proto3" json:"ends_at,omitempty"`
	// Whether the alert was resolved at the time the event was recorded.
	Resolved bool `protobuf:"varint,7,opt,name=resolved,proto3" json:"resolved,omitempty"`
	// contains filtered or unexported fields
}

Alert represents a snapshot of an alert at the time the event was recorded.

func (*Alert) Descriptor deprecated

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

Deprecated: Use Alert.ProtoReflect.Descriptor instead.

func (*Alert) GetAnnotations

func (x *Alert) GetAnnotations() *LabelSet

func (*Alert) GetEndsAt

func (x *Alert) GetEndsAt() *timestamppb.Timestamp

func (*Alert) GetFingerprint

func (x *Alert) GetFingerprint() uint64

func (*Alert) GetLabels

func (x *Alert) GetLabels() *LabelSet

func (*Alert) GetName

func (x *Alert) GetName() string

func (*Alert) GetResolved

func (x *Alert) GetResolved() bool

func (*Alert) GetStartsAt

func (x *Alert) GetStartsAt() *timestamppb.Timestamp

func (*Alert) ProtoMessage

func (*Alert) ProtoMessage()

func (*Alert) ProtoReflect

func (x *Alert) ProtoReflect() protoreflect.Message

func (*Alert) Reset

func (x *Alert) Reset()

func (*Alert) String

func (x *Alert) String() string

type AlertCreatedEvent

type AlertCreatedEvent struct {

	// The newly created alert.
	Alert *Alert `protobuf:"bytes,1,opt,name=alert,proto3" json:"alert,omitempty"`
	// contains filtered or unexported fields
}

AlertCreatedEvent is emitted when a brand-new alert is inserted into the in-memory alert store.

func (*AlertCreatedEvent) Descriptor deprecated

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

Deprecated: Use AlertCreatedEvent.ProtoReflect.Descriptor instead.

func (*AlertCreatedEvent) GetAlert

func (x *AlertCreatedEvent) GetAlert() *Alert

func (*AlertCreatedEvent) ProtoMessage

func (*AlertCreatedEvent) ProtoMessage()

func (*AlertCreatedEvent) ProtoReflect

func (x *AlertCreatedEvent) ProtoReflect() protoreflect.Message

func (*AlertCreatedEvent) Reset

func (x *AlertCreatedEvent) Reset()

func (*AlertCreatedEvent) String

func (x *AlertCreatedEvent) String() string

type AlertGroupInfo

type AlertGroupInfo struct {

	// The composite key that uniquely identifies this aggregation group
	// (encodes route and group label values).
	GroupKey string `protobuf:"bytes,1,opt,name=group_key,json=groupKey,proto3" json:"group_key,omitempty"`
	// The label set used to group alerts together within this route.
	GroupLabels *LabelSet `protobuf:"bytes,2,opt,name=group_labels,json=groupLabels,proto3" json:"group_labels,omitempty"`
	// A stable, shortened identifier derived from the group key (SHA-256
	// hex).
	GroupId string `protobuf:"bytes,3,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
	// The name of the receiver that this group routes to.
	ReceiverName string `protobuf:"bytes,4,opt,name=receiver_name,json=receiverName,proto3" json:"receiver_name,omitempty"`
	// The set of matchers defined on the route that matched these alerts.
	Matchers []*Matcher `protobuf:"bytes,5,rep,name=matchers,proto3" json:"matchers,omitempty"`
	// A UUID that uniquely identifies this aggregation group instance.
	GroupUuid string `protobuf:"bytes,6,opt,name=group_uuid,json=groupUuid,proto3" json:"group_uuid,omitempty"`
	// contains filtered or unexported fields
}

AlertGroupInfo describes the aggregation group context in which an alert is being processed.

func (*AlertGroupInfo) Descriptor deprecated

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

Deprecated: Use AlertGroupInfo.ProtoReflect.Descriptor instead.

func (*AlertGroupInfo) GetGroupId

func (x *AlertGroupInfo) GetGroupId() string

func (*AlertGroupInfo) GetGroupKey

func (x *AlertGroupInfo) GetGroupKey() string

func (*AlertGroupInfo) GetGroupLabels

func (x *AlertGroupInfo) GetGroupLabels() *LabelSet

func (*AlertGroupInfo) GetGroupUuid

func (x *AlertGroupInfo) GetGroupUuid() string

func (*AlertGroupInfo) GetMatchers

func (x *AlertGroupInfo) GetMatchers() []*Matcher

func (*AlertGroupInfo) GetReceiverName

func (x *AlertGroupInfo) GetReceiverName() string

func (*AlertGroupInfo) ProtoMessage

func (*AlertGroupInfo) ProtoMessage()

func (*AlertGroupInfo) ProtoReflect

func (x *AlertGroupInfo) ProtoReflect() protoreflect.Message

func (*AlertGroupInfo) Reset

func (x *AlertGroupInfo) Reset()

func (*AlertGroupInfo) String

func (x *AlertGroupInfo) String() string

type AlertGroupedEvent

type AlertGroupedEvent struct {

	// The alert being grouped, including its hash and full details.
	Alert *GroupedAlert `protobuf:"bytes,1,opt,name=alert,proto3" json:"alert,omitempty"`
	// The aggregation group the alert was added to.
	GroupInfo *AlertGroupInfo `protobuf:"bytes,2,opt,name=group_info,json=groupInfo,proto3" json:"group_info,omitempty"`
	// contains filtered or unexported fields
}

AlertGroupedEvent is emitted the first time an alert is inserted into an aggregation group.

func (*AlertGroupedEvent) Descriptor deprecated

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

Deprecated: Use AlertGroupedEvent.ProtoReflect.Descriptor instead.

func (*AlertGroupedEvent) GetAlert

func (x *AlertGroupedEvent) GetAlert() *GroupedAlert

func (*AlertGroupedEvent) GetGroupInfo

func (x *AlertGroupedEvent) GetGroupInfo() *AlertGroupInfo

func (*AlertGroupedEvent) ProtoMessage

func (*AlertGroupedEvent) ProtoMessage()

func (*AlertGroupedEvent) ProtoReflect

func (x *AlertGroupedEvent) ProtoReflect() protoreflect.Message

func (*AlertGroupedEvent) Reset

func (x *AlertGroupedEvent) Reset()

func (*AlertGroupedEvent) String

func (x *AlertGroupedEvent) String() string

type AlertResolvedEvent

type AlertResolvedEvent struct {

	// The resolved alert, including its hash and full details.
	Alert *GroupedAlert `protobuf:"bytes,1,opt,name=alert,proto3" json:"alert,omitempty"`
	// The aggregation group from which the alert was resolved.
	GroupInfo *AlertGroupInfo `protobuf:"bytes,2,opt,name=group_info,json=groupInfo,proto3" json:"group_info,omitempty"`
	// contains filtered or unexported fields
}

AlertResolvedEvent is emitted when an alert is removed from its aggregation group after a successful notification that included the resolution.

func (*AlertResolvedEvent) Descriptor deprecated

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

Deprecated: Use AlertResolvedEvent.ProtoReflect.Descriptor instead.

func (*AlertResolvedEvent) GetAlert

func (x *AlertResolvedEvent) GetAlert() *GroupedAlert

func (*AlertResolvedEvent) GetGroupInfo

func (x *AlertResolvedEvent) GetGroupInfo() *AlertGroupInfo

func (*AlertResolvedEvent) ProtoMessage

func (*AlertResolvedEvent) ProtoMessage()

func (*AlertResolvedEvent) ProtoReflect

func (x *AlertResolvedEvent) ProtoReflect() protoreflect.Message

func (*AlertResolvedEvent) Reset

func (x *AlertResolvedEvent) Reset()

func (*AlertResolvedEvent) String

func (x *AlertResolvedEvent) String() string

type AlertmanagerShutdownEvent

type AlertmanagerShutdownEvent struct {
	// contains filtered or unexported fields
}

AlertmanagerShutdownEvent is emitted when the process shuts down gracefully. It carries no additional data.

func (*AlertmanagerShutdownEvent) Descriptor deprecated

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

Deprecated: Use AlertmanagerShutdownEvent.ProtoReflect.Descriptor instead.

func (*AlertmanagerShutdownEvent) ProtoMessage

func (*AlertmanagerShutdownEvent) ProtoMessage()

func (*AlertmanagerShutdownEvent) ProtoReflect

func (*AlertmanagerShutdownEvent) Reset

func (x *AlertmanagerShutdownEvent) Reset()

func (*AlertmanagerShutdownEvent) String

func (x *AlertmanagerShutdownEvent) String() string

type AlertmanagerStartupEvent

type AlertmanagerStartupEvent struct {

	// The semantic version of the Alertmanager binary (e.g., "0.28.0").
	Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
	// Free-form build metadata such as Go version, branch, and revision.
	BuildContext string `protobuf:"bytes,2,opt,name=build_context,json=buildContext,proto3" json:"build_context,omitempty"`
	// contains filtered or unexported fields
}

AlertmanagerStartupEvent is emitted once when the process starts.

func (*AlertmanagerStartupEvent) Descriptor deprecated

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

Deprecated: Use AlertmanagerStartupEvent.ProtoReflect.Descriptor instead.

func (*AlertmanagerStartupEvent) GetBuildContext

func (x *AlertmanagerStartupEvent) GetBuildContext() string

func (*AlertmanagerStartupEvent) GetVersion

func (x *AlertmanagerStartupEvent) GetVersion() string

func (*AlertmanagerStartupEvent) ProtoMessage

func (*AlertmanagerStartupEvent) ProtoMessage()

func (*AlertmanagerStartupEvent) ProtoReflect

func (x *AlertmanagerStartupEvent) ProtoReflect() protoreflect.Message

func (*AlertmanagerStartupEvent) Reset

func (x *AlertmanagerStartupEvent) Reset()

func (*AlertmanagerStartupEvent) String

func (x *AlertmanagerStartupEvent) String() string

type Event

type Event struct {

	// The wall-clock time at which the event was recorded.
	Timestamp *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=timestamp,json=@timestamp,proto3" json:"timestamp,omitempty"`
	// The hostname or address of the Alertmanager instance that produced
	// the event.
	Instance string `protobuf:"bytes,2,opt,name=instance,proto3" json:"instance,omitempty"`
	// The event payload.  Exactly one of the oneof fields inside EventData
	// will be set.
	Data *EventData `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	// The ordinal position of this instance among its HA cluster peers.
	// Zero when clustering is disabled.
	ClusterPosition uint32 `protobuf:"varint,4,opt,name=cluster_position,json=clusterPosition,proto3" json:"cluster_position,omitempty"`
	// contains filtered or unexported fields
}

Event is the top-level envelope written to each event recorder output. It wraps the specific event data with metadata about when and where the event was produced.

func (*Event) Descriptor deprecated

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

Deprecated: Use Event.ProtoReflect.Descriptor instead.

func (*Event) GetClusterPosition

func (x *Event) GetClusterPosition() uint32

func (*Event) GetData

func (x *Event) GetData() *EventData

func (*Event) GetInstance

func (x *Event) GetInstance() string

func (*Event) GetTimestamp

func (x *Event) GetTimestamp() *timestamppb.Timestamp

func (*Event) ProtoMessage

func (*Event) ProtoMessage()

func (*Event) ProtoReflect

func (x *Event) ProtoReflect() protoreflect.Message

func (*Event) Reset

func (x *Event) Reset()

func (*Event) String

func (x *Event) String() string

type EventData

type EventData struct {

	// Types that are valid to be assigned to EventType:
	//
	//	*EventData_AlertmanagerStartupEvent
	//	*EventData_AlertmanagerShutdownEvent
	//	*EventData_AlertCreated
	//	*EventData_AlertResolved
	//	*EventData_AlertGrouped
	//	*EventData_Notification
	//	*EventData_SilenceCreated
	//	*EventData_SilenceUpdated
	//	*EventData_SilenceMutedAlert
	//	*EventData_InhibitionMutedAlert
	EventType isEventData_EventType `protobuf_oneof:"event_type"`
	// contains filtered or unexported fields
}

EventData carries the payload for a single event recorder entry. Exactly one of the oneof fields will be populated.

func (*EventData) Descriptor deprecated

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

Deprecated: Use EventData.ProtoReflect.Descriptor instead.

func (*EventData) GetAlertCreated

func (x *EventData) GetAlertCreated() *AlertCreatedEvent

func (*EventData) GetAlertGrouped

func (x *EventData) GetAlertGrouped() *AlertGroupedEvent

func (*EventData) GetAlertResolved

func (x *EventData) GetAlertResolved() *AlertResolvedEvent

func (*EventData) GetAlertmanagerShutdownEvent

func (x *EventData) GetAlertmanagerShutdownEvent() *AlertmanagerShutdownEvent

func (*EventData) GetAlertmanagerStartupEvent

func (x *EventData) GetAlertmanagerStartupEvent() *AlertmanagerStartupEvent

func (*EventData) GetEventType

func (x *EventData) GetEventType() isEventData_EventType

func (*EventData) GetInhibitionMutedAlert

func (x *EventData) GetInhibitionMutedAlert() *InhibitionMutedAlertEvent

func (*EventData) GetNotification

func (x *EventData) GetNotification() *NotificationEvent

func (*EventData) GetSilenceCreated

func (x *EventData) GetSilenceCreated() *SilenceCreatedEvent

func (*EventData) GetSilenceMutedAlert

func (x *EventData) GetSilenceMutedAlert() *SilenceMutedAlertEvent

func (*EventData) GetSilenceUpdated

func (x *EventData) GetSilenceUpdated() *SilenceUpdatedEvent

func (*EventData) ProtoMessage

func (*EventData) ProtoMessage()

func (*EventData) ProtoReflect

func (x *EventData) ProtoReflect() protoreflect.Message

func (*EventData) Reset

func (x *EventData) Reset()

func (*EventData) String

func (x *EventData) String() string

type EventData_AlertCreated

type EventData_AlertCreated struct {
	// Recorded when a new alert is first inserted into the alert store.
	AlertCreated *AlertCreatedEvent `protobuf:"bytes,3,opt,name=alert_created,json=alertCreated,proto3,oneof"`
}

type EventData_AlertGrouped

type EventData_AlertGrouped struct {
	// Recorded when an alert is inserted into an aggregation group for
	// the first time.
	AlertGrouped *AlertGroupedEvent `protobuf:"bytes,5,opt,name=alert_grouped,json=alertGrouped,proto3,oneof"`
}

type EventData_AlertResolved

type EventData_AlertResolved struct {
	// Recorded when an alert transitions to the resolved state and is
	// removed from its aggregation group after successful notification.
	AlertResolved *AlertResolvedEvent `protobuf:"bytes,4,opt,name=alert_resolved,json=alertResolved,proto3,oneof"`
}

type EventData_AlertmanagerShutdownEvent

type EventData_AlertmanagerShutdownEvent struct {
	// Recorded when the Alertmanager process shuts down gracefully.
	AlertmanagerShutdownEvent *AlertmanagerShutdownEvent `protobuf:"bytes,2,opt,name=alertmanager_shutdown_event,json=alertmanagerShutdownEvent,proto3,oneof"`
}

type EventData_AlertmanagerStartupEvent

type EventData_AlertmanagerStartupEvent struct {
	// Recorded when the Alertmanager process starts.
	AlertmanagerStartupEvent *AlertmanagerStartupEvent `protobuf:"bytes,1,opt,name=alertmanager_startup_event,json=alertmanagerStartupEvent,proto3,oneof"`
}

type EventData_InhibitionMutedAlert

type EventData_InhibitionMutedAlert struct {
	// Recorded each time one or more inhibition rules suppress an alert
	// during the muting evaluation pass.
	InhibitionMutedAlert *InhibitionMutedAlertEvent `protobuf:"bytes,10,opt,name=inhibition_muted_alert,json=inhibitionMutedAlert,proto3,oneof"`
}

type EventData_Notification

type EventData_Notification struct {
	// Recorded after a notification is successfully delivered to an
	// integration (e.g., webhook, email, PagerDuty).
	Notification *NotificationEvent `protobuf:"bytes,6,opt,name=notification,proto3,oneof"`
}

type EventData_SilenceCreated

type EventData_SilenceCreated struct {
	// Recorded when a new silence is created.
	SilenceCreated *SilenceCreatedEvent `protobuf:"bytes,7,opt,name=silence_created,json=silenceCreated,proto3,oneof"`
}

type EventData_SilenceMutedAlert

type EventData_SilenceMutedAlert struct {
	// Recorded each time a silence actively suppresses an alert during
	// the muting evaluation pass.
	SilenceMutedAlert *SilenceMutedAlertEvent `protobuf:"bytes,9,opt,name=silence_muted_alert,json=silenceMutedAlert,proto3,oneof"`
}

type EventData_SilenceUpdated

type EventData_SilenceUpdated struct {
	// Recorded when an existing silence is updated (e.g., extended or
	// re-commented).
	SilenceUpdated *SilenceUpdatedEvent `protobuf:"bytes,8,opt,name=silence_updated,json=silenceUpdated,proto3,oneof"`
}

type GroupedAlert

type GroupedAlert struct {

	// A hash of the alert's label set, used for deduplication within the
	// notification pipeline.
	Hash uint64 `protobuf:"varint,1,opt,name=hash,proto3" json:"hash,omitempty"`
	// The full alert details.  May be absent when only the hash is needed
	// (e.g., in firing/resolved lists on NotificationEvent).
	Details *Alert `protobuf:"bytes,2,opt,name=details,proto3,oneof" json:"details,omitempty"`
	// contains filtered or unexported fields
}

GroupedAlert is a reference to an alert within an aggregation group. It always carries the content hash; the full alert details are included when available.

func (*GroupedAlert) Descriptor deprecated

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

Deprecated: Use GroupedAlert.ProtoReflect.Descriptor instead.

func (*GroupedAlert) GetDetails

func (x *GroupedAlert) GetDetails() *Alert

func (*GroupedAlert) GetHash

func (x *GroupedAlert) GetHash() uint64

func (*GroupedAlert) ProtoMessage

func (*GroupedAlert) ProtoMessage()

func (*GroupedAlert) ProtoReflect

func (x *GroupedAlert) ProtoReflect() protoreflect.Message

func (*GroupedAlert) Reset

func (x *GroupedAlert) Reset()

func (*GroupedAlert) String

func (x *GroupedAlert) String() string

type InhibitRule

type InhibitRule struct {

	// Matchers that identify source alerts (those that do the inhibiting).
	SourceMatchers []*Matcher `protobuf:"bytes,1,rep,name=source_matchers,json=sourceMatchers,proto3" json:"source_matchers,omitempty"`
	// Matchers that identify target alerts (those that get inhibited).
	TargetMatchers []*Matcher `protobuf:"bytes,2,rep,name=target_matchers,json=targetMatchers,proto3" json:"target_matchers,omitempty"`
	// Label names whose values must be equal between source and target
	// alerts for the inhibition to take effect.
	EqualLabels []string `protobuf:"bytes,3,rep,name=equal_labels,json=equalLabels,proto3" json:"equal_labels,omitempty"`
	// Name is the optional name of the inhibition rule.
	Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

InhibitRule is a snapshot of an inhibition rule definition.

func (*InhibitRule) Descriptor deprecated

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

Deprecated: Use InhibitRule.ProtoReflect.Descriptor instead.

func (*InhibitRule) GetEqualLabels

func (x *InhibitRule) GetEqualLabels() []string

func (*InhibitRule) GetName added in v0.34.0

func (x *InhibitRule) GetName() string

func (*InhibitRule) GetSourceMatchers

func (x *InhibitRule) GetSourceMatchers() []*Matcher

func (*InhibitRule) GetTargetMatchers

func (x *InhibitRule) GetTargetMatchers() []*Matcher

func (*InhibitRule) ProtoMessage

func (*InhibitRule) ProtoMessage()

func (*InhibitRule) ProtoReflect

func (x *InhibitRule) ProtoReflect() protoreflect.Message

func (*InhibitRule) Reset

func (x *InhibitRule) Reset()

func (*InhibitRule) String

func (x *InhibitRule) String() string

type InhibitionMutedAlertEvent

type InhibitionMutedAlertEvent struct {

	// The inhibition rules that matched.
	InhibitRules []*InhibitRule `protobuf:"bytes,1,rep,name=inhibit_rules,json=inhibitRules,proto3" json:"inhibit_rules,omitempty"`
	// The alert that was suppressed.
	MutedAlert *MutedAlert `protobuf:"bytes,2,opt,name=muted_alert,json=mutedAlert,proto3" json:"muted_alert,omitempty"`
	// The fingerprints of the source alerts that caused the inhibition.
	InhibitingFingerprints []uint64 `` /* 135-byte string literal not displayed */
	// contains filtered or unexported fields
}

InhibitionMutedAlertEvent is emitted when one or more inhibition rules suppress an alert.

func (*InhibitionMutedAlertEvent) Descriptor deprecated

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

Deprecated: Use InhibitionMutedAlertEvent.ProtoReflect.Descriptor instead.

func (*InhibitionMutedAlertEvent) GetInhibitRules

func (x *InhibitionMutedAlertEvent) GetInhibitRules() []*InhibitRule

func (*InhibitionMutedAlertEvent) GetInhibitingFingerprints

func (x *InhibitionMutedAlertEvent) GetInhibitingFingerprints() []uint64

func (*InhibitionMutedAlertEvent) GetMutedAlert

func (x *InhibitionMutedAlertEvent) GetMutedAlert() *MutedAlert

func (*InhibitionMutedAlertEvent) ProtoMessage

func (*InhibitionMutedAlertEvent) ProtoMessage()

func (*InhibitionMutedAlertEvent) ProtoReflect

func (*InhibitionMutedAlertEvent) Reset

func (x *InhibitionMutedAlertEvent) Reset()

func (*InhibitionMutedAlertEvent) String

func (x *InhibitionMutedAlertEvent) String() string

type Integration

type Integration struct {

	// The type of the integration (e.g., "webhook", "pagerduty").
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The zero-based index of this integration within its receiver.
	Index int64 `protobuf:"varint,2,opt,name=index,proto3" json:"index,omitempty"`
	// contains filtered or unexported fields
}

Integration identifies a specific notification integration (e.g., the second PagerDuty receiver in a receiver definition).

func (*Integration) Descriptor deprecated

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

Deprecated: Use Integration.ProtoReflect.Descriptor instead.

func (*Integration) GetIndex

func (x *Integration) GetIndex() int64

func (*Integration) GetName

func (x *Integration) GetName() string

func (*Integration) ProtoMessage

func (*Integration) ProtoMessage()

func (*Integration) ProtoReflect

func (x *Integration) ProtoReflect() protoreflect.Message

func (*Integration) Reset

func (x *Integration) Reset()

func (*Integration) String

func (x *Integration) String() string

type LabelPair

type LabelPair struct {

	// The label name (e.g., "alertname").
	Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	// The label value (e.g., "HighMemoryUsage").
	Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

LabelPair is a single key-value label.

func (*LabelPair) Descriptor deprecated

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

Deprecated: Use LabelPair.ProtoReflect.Descriptor instead.

func (*LabelPair) GetKey

func (x *LabelPair) GetKey() string

func (*LabelPair) GetValue

func (x *LabelPair) GetValue() string

func (*LabelPair) ProtoMessage

func (*LabelPair) ProtoMessage()

func (*LabelPair) ProtoReflect

func (x *LabelPair) ProtoReflect() protoreflect.Message

func (*LabelPair) Reset

func (x *LabelPair) Reset()

func (*LabelPair) String

func (x *LabelPair) String() string

type LabelSet

type LabelSet struct {

	// The label pairs that make up this set.
	Labels []*LabelPair `protobuf:"bytes,1,rep,name=labels,proto3" json:"labels,omitempty"`
	// contains filtered or unexported fields
}

LabelSet is an ordered collection of label pairs.

func (*LabelSet) Descriptor deprecated

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

Deprecated: Use LabelSet.ProtoReflect.Descriptor instead.

func (*LabelSet) GetLabels

func (x *LabelSet) GetLabels() []*LabelPair

func (*LabelSet) ProtoMessage

func (*LabelSet) ProtoMessage()

func (*LabelSet) ProtoReflect

func (x *LabelSet) ProtoReflect() protoreflect.Message

func (*LabelSet) Reset

func (x *LabelSet) Reset()

func (*LabelSet) String

func (x *LabelSet) String() string

type Matcher

type Matcher struct {

	// The matching operator to apply.
	Type Matcher_Type `protobuf:"varint,1,opt,name=type,proto3,enum=eventrecorderpb.Matcher_Type" json:"type,omitempty"`
	// The label name to match against.
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// The value or pattern to match, interpreted according to type.
	Pattern string `protobuf:"bytes,3,opt,name=pattern,proto3" json:"pattern,omitempty"`
	// Human-readable string representation (e.g., "env=~prod.*").
	Rendered string `protobuf:"bytes,4,opt,name=rendered,proto3" json:"rendered,omitempty"`
	// contains filtered or unexported fields
}

Matcher defines a single label matching rule.

func (*Matcher) Descriptor deprecated

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

Deprecated: Use Matcher.ProtoReflect.Descriptor instead.

func (*Matcher) GetName

func (x *Matcher) GetName() string

func (*Matcher) GetPattern

func (x *Matcher) GetPattern() string

func (*Matcher) GetRendered

func (x *Matcher) GetRendered() string

func (*Matcher) GetType

func (x *Matcher) GetType() Matcher_Type

func (*Matcher) ProtoMessage

func (*Matcher) ProtoMessage()

func (*Matcher) ProtoReflect

func (x *Matcher) ProtoReflect() protoreflect.Message

func (*Matcher) Reset

func (x *Matcher) Reset()

func (*Matcher) String

func (x *Matcher) String() string

type MatcherSet

type MatcherSet struct {

	// The matchers that make up this set (evaluated with AND logic).
	Matchers []*Matcher `protobuf:"bytes,1,rep,name=matchers,proto3" json:"matchers,omitempty"`
	// contains filtered or unexported fields
}

MatcherSet is a conjunction of matchers: all matchers in the set must match for the set to match.

func (*MatcherSet) Descriptor deprecated

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

Deprecated: Use MatcherSet.ProtoReflect.Descriptor instead.

func (*MatcherSet) GetMatchers

func (x *MatcherSet) GetMatchers() []*Matcher

func (*MatcherSet) ProtoMessage

func (*MatcherSet) ProtoMessage()

func (*MatcherSet) ProtoReflect

func (x *MatcherSet) ProtoReflect() protoreflect.Message

func (*MatcherSet) Reset

func (x *MatcherSet) Reset()

func (*MatcherSet) String

func (x *MatcherSet) String() string

type Matcher_Type

type Matcher_Type int32

Type enumerates the supported matching operators.

const (
	// Unspecified / unknown match type.
	Matcher_TYPE_UNSPECIFIED Matcher_Type = 0
	// Exact string equality (=).
	Matcher_TYPE_EQUAL Matcher_Type = 1
	// Regular expression match (=~).
	Matcher_TYPE_REGEXP Matcher_Type = 2
	// Negated exact string equality (!=).
	Matcher_TYPE_NOT_EQUAL Matcher_Type = 3
	// Negated regular expression match (!~).
	Matcher_TYPE_NOT_REGEXP Matcher_Type = 4
)

func (Matcher_Type) Descriptor

func (Matcher_Type) Enum

func (x Matcher_Type) Enum() *Matcher_Type

func (Matcher_Type) EnumDescriptor deprecated

func (Matcher_Type) EnumDescriptor() ([]byte, []int)

Deprecated: Use Matcher_Type.Descriptor instead.

func (Matcher_Type) Number

func (Matcher_Type) String

func (x Matcher_Type) String() string

func (Matcher_Type) Type

type MutedAlert

type MutedAlert struct {

	// The label set of the muted alert.
	Labels *LabelSet `protobuf:"bytes,1,opt,name=labels,proto3" json:"labels,omitempty"`
	// The fingerprint of the muted alert.
	Fingerprint uint64 `protobuf:"varint,2,opt,name=fingerprint,proto3" json:"fingerprint,omitempty"`
	// contains filtered or unexported fields
}

MutedAlert identifies an alert that was suppressed by a silence or inhibition rule.

func (*MutedAlert) Descriptor deprecated

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

Deprecated: Use MutedAlert.ProtoReflect.Descriptor instead.

func (*MutedAlert) GetFingerprint

func (x *MutedAlert) GetFingerprint() uint64

func (*MutedAlert) GetLabels

func (x *MutedAlert) GetLabels() *LabelSet

func (*MutedAlert) ProtoMessage

func (*MutedAlert) ProtoMessage()

func (*MutedAlert) ProtoReflect

func (x *MutedAlert) ProtoReflect() protoreflect.Message

func (*MutedAlert) Reset

func (x *MutedAlert) Reset()

func (*MutedAlert) String

func (x *MutedAlert) String() string

type NotificationEvent

type NotificationEvent struct {

	// All alerts that were included in the notification.
	Alerts []*GroupedAlert `protobuf:"bytes,1,rep,name=alerts,proto3" json:"alerts,omitempty"`
	// The subset of alerts that are currently firing.
	FiringAlerts []*GroupedAlert `protobuf:"bytes,2,rep,name=firing_alerts,json=firingAlerts,proto3" json:"firing_alerts,omitempty"`
	// The subset of alerts that are resolved.
	ResolvedAlerts []*GroupedAlert `protobuf:"bytes,3,rep,name=resolved_alerts,json=resolvedAlerts,proto3" json:"resolved_alerts,omitempty"`
	// Alerts that were muted (silenced or inhibited) during this flush
	// cycle.
	MutedAlerts []*GroupedAlert `protobuf:"bytes,4,rep,name=muted_alerts,json=mutedAlerts,proto3" json:"muted_alerts,omitempty"`
	// The aggregation group context for this notification.
	GroupInfo *AlertGroupInfo `protobuf:"bytes,5,opt,name=group_info,json=groupInfo,proto3" json:"group_info,omitempty"`
	// The configured repeat interval for the aggregation group's route.
	RepeatInterval *durationpb.Duration `protobuf:"bytes,6,opt,name=repeat_interval,json=repeatInterval,proto3" json:"repeat_interval,omitempty"`
	// The reason the notification was triggered.
	Reason NotifyReason `protobuf:"varint,7,opt,name=reason,proto3,enum=eventrecorderpb.NotifyReason" json:"reason,omitempty"`
	// A monotonically increasing identifier for each flush cycle of the
	// aggregation group.
	FlushId uint64 `protobuf:"varint,8,opt,name=flush_id,json=flushId,proto3" json:"flush_id,omitempty"`
	// The integration that delivered the notification.
	Integration *Integration `protobuf:"bytes,9,opt,name=integration,proto3" json:"integration,omitempty"`
	// contains filtered or unexported fields
}

NotificationEvent is emitted after a notification is successfully delivered to an integration.

func (*NotificationEvent) Descriptor deprecated

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

Deprecated: Use NotificationEvent.ProtoReflect.Descriptor instead.

func (*NotificationEvent) GetAlerts

func (x *NotificationEvent) GetAlerts() []*GroupedAlert

func (*NotificationEvent) GetFiringAlerts

func (x *NotificationEvent) GetFiringAlerts() []*GroupedAlert

func (*NotificationEvent) GetFlushId

func (x *NotificationEvent) GetFlushId() uint64

func (*NotificationEvent) GetGroupInfo

func (x *NotificationEvent) GetGroupInfo() *AlertGroupInfo

func (*NotificationEvent) GetIntegration

func (x *NotificationEvent) GetIntegration() *Integration

func (*NotificationEvent) GetMutedAlerts

func (x *NotificationEvent) GetMutedAlerts() []*GroupedAlert

func (*NotificationEvent) GetReason

func (x *NotificationEvent) GetReason() NotifyReason

func (*NotificationEvent) GetRepeatInterval

func (x *NotificationEvent) GetRepeatInterval() *durationpb.Duration

func (*NotificationEvent) GetResolvedAlerts

func (x *NotificationEvent) GetResolvedAlerts() []*GroupedAlert

func (*NotificationEvent) ProtoMessage

func (*NotificationEvent) ProtoMessage()

func (*NotificationEvent) ProtoReflect

func (x *NotificationEvent) ProtoReflect() protoreflect.Message

func (*NotificationEvent) Reset

func (x *NotificationEvent) Reset()

func (*NotificationEvent) String

func (x *NotificationEvent) String() string

type NotifyReason

type NotifyReason int32

NotifyReason describes why a notification was sent for an aggregation group.

const (
	// Default / unknown reason.
	NotifyReason_NOTIFY_REASON_UNSPECIFIED NotifyReason = 0
	// The group has never been notified before and contains at least one
	// firing alert.
	NotifyReason_NOTIFY_REASON_FIRST_NOTIFICATION NotifyReason = 1
	// New firing alerts have been added to the group since the last
	// notification.
	NotifyReason_NOTIFY_REASON_NEW_ALERTS_IN_GROUP NotifyReason = 2
	// Some alerts in the group have resolved since the last notification.
	NotifyReason_NOTIFY_REASON_NEW_RESOLVED_ALERTS NotifyReason = 3
	// All alerts in the group have resolved.
	NotifyReason_NOTIFY_REASON_ALL_ALERTS_RESOLVED NotifyReason = 4
	// The configured repeat interval has elapsed since the last
	// notification.
	NotifyReason_NOTIFY_REASON_REPEAT_INTERVAL_ELAPSED NotifyReason = 5
)

func (NotifyReason) Descriptor

func (NotifyReason) Enum

func (x NotifyReason) Enum() *NotifyReason

func (NotifyReason) EnumDescriptor deprecated

func (NotifyReason) EnumDescriptor() ([]byte, []int)

Deprecated: Use NotifyReason.Descriptor instead.

func (NotifyReason) Number

func (NotifyReason) String

func (x NotifyReason) String() string

func (NotifyReason) Type

type Silence

type Silence struct {

	// The globally unique silence identifier (UUID).
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// The matchers that define which alerts this silence suppresses.
	// For silences with multiple matcher sets, this is the first set.
	Matchers []*Matcher `protobuf:"bytes,2,rep,name=matchers,proto3" json:"matchers,omitempty"`
	// Optional structured annotations on the silence (key-value pairs).
	Annotations *LabelSet `protobuf:"bytes,3,opt,name=annotations,proto3" json:"annotations,omitempty"`
	// The time at which the silence becomes active.
	StartsAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=starts_at,json=startsAt,proto3" json:"starts_at,omitempty"`
	// The time at which the silence expires.
	EndsAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=ends_at,json=endsAt,proto3" json:"ends_at,omitempty"`
	// The last time the silence was created or updated.
	UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// The author who created the silence.
	CreatedBy string `protobuf:"bytes,7,opt,name=created_by,json=createdBy,proto3" json:"created_by,omitempty"`
	// A human-readable comment explaining the silence.
	Comment string `protobuf:"bytes,8,opt,name=comment,proto3" json:"comment,omitempty"`
	// Additional matcher sets evaluated with OR logic.  At least one
	// matcher set must match for the silence to apply.
	MatcherSets []*MatcherSet `protobuf:"bytes,9,rep,name=matcher_sets,json=matcherSets,proto3" json:"matcher_sets,omitempty"`
	// contains filtered or unexported fields
}

Silence is a snapshot of a silence definition at the time the event was recorded.

func (*Silence) Descriptor deprecated

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

Deprecated: Use Silence.ProtoReflect.Descriptor instead.

func (*Silence) GetAnnotations

func (x *Silence) GetAnnotations() *LabelSet

func (*Silence) GetComment

func (x *Silence) GetComment() string

func (*Silence) GetCreatedBy

func (x *Silence) GetCreatedBy() string

func (*Silence) GetEndsAt

func (x *Silence) GetEndsAt() *timestamppb.Timestamp

func (*Silence) GetId

func (x *Silence) GetId() string

func (*Silence) GetMatcherSets

func (x *Silence) GetMatcherSets() []*MatcherSet

func (*Silence) GetMatchers

func (x *Silence) GetMatchers() []*Matcher

func (*Silence) GetStartsAt

func (x *Silence) GetStartsAt() *timestamppb.Timestamp

func (*Silence) GetUpdatedAt

func (x *Silence) GetUpdatedAt() *timestamppb.Timestamp

func (*Silence) ProtoMessage

func (*Silence) ProtoMessage()

func (*Silence) ProtoReflect

func (x *Silence) ProtoReflect() protoreflect.Message

func (*Silence) Reset

func (x *Silence) Reset()

func (*Silence) String

func (x *Silence) String() string

type SilenceCreatedEvent

type SilenceCreatedEvent struct {

	// The newly created silence.
	Silence *Silence `protobuf:"bytes,1,opt,name=silence,proto3" json:"silence,omitempty"`
	// contains filtered or unexported fields
}

SilenceCreatedEvent is emitted when a new silence is created.

func (*SilenceCreatedEvent) Descriptor deprecated

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

Deprecated: Use SilenceCreatedEvent.ProtoReflect.Descriptor instead.

func (*SilenceCreatedEvent) GetSilence

func (x *SilenceCreatedEvent) GetSilence() *Silence

func (*SilenceCreatedEvent) ProtoMessage

func (*SilenceCreatedEvent) ProtoMessage()

func (*SilenceCreatedEvent) ProtoReflect

func (x *SilenceCreatedEvent) ProtoReflect() protoreflect.Message

func (*SilenceCreatedEvent) Reset

func (x *SilenceCreatedEvent) Reset()

func (*SilenceCreatedEvent) String

func (x *SilenceCreatedEvent) String() string

type SilenceMutedAlertEvent

type SilenceMutedAlertEvent struct {

	// The silence that suppressed the alert.
	Silence *Silence `protobuf:"bytes,1,opt,name=silence,proto3" json:"silence,omitempty"`
	// The alert that was suppressed.
	MutedAlert *MutedAlert `protobuf:"bytes,2,opt,name=muted_alert,json=mutedAlert,proto3" json:"muted_alert,omitempty"`
	// contains filtered or unexported fields
}

SilenceMutedAlertEvent is emitted each time a silence suppresses an alert during the muting evaluation pass.

func (*SilenceMutedAlertEvent) Descriptor deprecated

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

Deprecated: Use SilenceMutedAlertEvent.ProtoReflect.Descriptor instead.

func (*SilenceMutedAlertEvent) GetMutedAlert

func (x *SilenceMutedAlertEvent) GetMutedAlert() *MutedAlert

func (*SilenceMutedAlertEvent) GetSilence

func (x *SilenceMutedAlertEvent) GetSilence() *Silence

func (*SilenceMutedAlertEvent) ProtoMessage

func (*SilenceMutedAlertEvent) ProtoMessage()

func (*SilenceMutedAlertEvent) ProtoReflect

func (x *SilenceMutedAlertEvent) ProtoReflect() protoreflect.Message

func (*SilenceMutedAlertEvent) Reset

func (x *SilenceMutedAlertEvent) Reset()

func (*SilenceMutedAlertEvent) String

func (x *SilenceMutedAlertEvent) String() string

type SilenceUpdatedEvent

type SilenceUpdatedEvent struct {

	// The silence after the update.
	Silence *Silence `protobuf:"bytes,1,opt,name=silence,proto3" json:"silence,omitempty"`
	// contains filtered or unexported fields
}

SilenceUpdatedEvent is emitted when an existing silence is modified.

func (*SilenceUpdatedEvent) Descriptor deprecated

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

Deprecated: Use SilenceUpdatedEvent.ProtoReflect.Descriptor instead.

func (*SilenceUpdatedEvent) GetSilence

func (x *SilenceUpdatedEvent) GetSilence() *Silence

func (*SilenceUpdatedEvent) ProtoMessage

func (*SilenceUpdatedEvent) ProtoMessage()

func (*SilenceUpdatedEvent) ProtoReflect

func (x *SilenceUpdatedEvent) ProtoReflect() protoreflect.Message

func (*SilenceUpdatedEvent) Reset

func (x *SilenceUpdatedEvent) Reset()

func (*SilenceUpdatedEvent) String

func (x *SilenceUpdatedEvent) String() string

Jump to

Keyboard shortcuts

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