service

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

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, tenant string) error

DeleteSilence handles the deletion of a silence

func (*SilenceService) SyncSilence

func (s *SilenceService) SyncSilence(ctx context.Context, newSilence *alertmanager.Silence, tenant string) error

SyncSilence handles the creation or update of a silence

Jump to

Keyboard shortcuts

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