Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SilenceService ¶
type SilenceService struct {
// contains filtered or unexported fields
}
SilenceService provides business logic for managing silences
func NewSilenceService ¶
func NewSilenceService(alertmanager alertmanager.Client) *SilenceService
NewSilenceService creates a new silence service
func (*SilenceService) DeleteSilence ¶
func (s *SilenceService) DeleteSilence(ctx context.Context, comment string) error
DeleteSilence handles the deletion of a silence
func (*SilenceService) SyncSilence ¶
func (s *SilenceService) SyncSilence(ctx context.Context, newSilence *alertmanager.Silence) error
SyncSilence handles the creation or update of a silence
Click to show internal directories.
Click to hide internal directories.