Documentation ¶
Overview ¶
Package ia contains Integrated Alerting APIs implementations.
Index ¶
- type AlertsService
- type ChannelsService
- func (s *ChannelsService) AddChannel(ctx context.Context, req *iav1beta1.AddChannelRequest) (*iav1beta1.AddChannelResponse, error)
- func (s *ChannelsService) ChangeChannel(ctx context.Context, req *iav1beta1.ChangeChannelRequest) (*iav1beta1.ChangeChannelResponse, error)
- func (s *ChannelsService) ListChannels(ctx context.Context, request *iav1beta1.ListChannelsRequest) (*iav1beta1.ListChannelsResponse, error)
- func (s *ChannelsService) RemoveChannel(ctx context.Context, req *iav1beta1.RemoveChannelRequest) (*iav1beta1.RemoveChannelResponse, error)
- type RulesService
- type TemplatesService
- func (svc *TemplatesService) CreateTemplate(ctx context.Context, req *iav1beta1.CreateTemplateRequest) (*iav1beta1.CreateTemplateResponse, error)
- func (svc *TemplatesService) DeleteTemplate(ctx context.Context, req *iav1beta1.DeleteTemplateRequest) (*iav1beta1.DeleteTemplateResponse, error)
- func (svc *TemplatesService) ListTemplates(ctx context.Context, req *iav1beta1.ListTemplatesRequest) (*iav1beta1.ListTemplatesResponse, error)
- func (svc *TemplatesService) UpdateTemplate(ctx context.Context, req *iav1beta1.UpdateTemplateRequest) (*iav1beta1.UpdateTemplateResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlertsService ¶
type AlertsService struct { iav1beta1.UnimplementedAlertsServer // TODO remove // contains filtered or unexported fields }
func NewAlertsService ¶
func NewAlertsService(db *reform.DB) *AlertsService
type ChannelsService ¶
type ChannelsService struct {
// contains filtered or unexported fields
}
ChannelsService represents integrated alerting channels API.
func NewChannelsService ¶
func NewChannelsService(db *reform.DB) *ChannelsService
NewChannelsService creates new channels API service.
func (*ChannelsService) AddChannel ¶
func (s *ChannelsService) AddChannel(ctx context.Context, req *iav1beta1.AddChannelRequest) (*iav1beta1.AddChannelResponse, error)
AddChannel adds new notification channel.
func (*ChannelsService) ChangeChannel ¶
func (s *ChannelsService) ChangeChannel(ctx context.Context, req *iav1beta1.ChangeChannelRequest) (*iav1beta1.ChangeChannelResponse, error)
ChangeChannel changes existing notification channel.
func (*ChannelsService) ListChannels ¶
func (s *ChannelsService) ListChannels(ctx context.Context, request *iav1beta1.ListChannelsRequest) (*iav1beta1.ListChannelsResponse, error)
ListChannels returns list of available channels.
func (*ChannelsService) RemoveChannel ¶
func (s *ChannelsService) RemoveChannel(ctx context.Context, req *iav1beta1.RemoveChannelRequest) (*iav1beta1.RemoveChannelResponse, error)
RemoveChannel removes notification channel.
type RulesService ¶
type RulesService struct { iav1beta1.UnimplementedRulesServer // TODO remove // contains filtered or unexported fields }
func NewRulesService ¶
func NewRulesService(db *reform.DB) *RulesService
type TemplatesService ¶
type TemplatesService struct {
// contains filtered or unexported fields
}
TemplatesService is responsible for interactions with IA rule templates.
func NewTemplatesService ¶
func NewTemplatesService(db *reform.DB) *TemplatesService
NewTemplatesService creates a new TemplatesService.
func (*TemplatesService) CreateTemplate ¶
func (svc *TemplatesService) CreateTemplate(ctx context.Context, req *iav1beta1.CreateTemplateRequest) (*iav1beta1.CreateTemplateResponse, error)
CreateTemplate creates a new template.
func (*TemplatesService) DeleteTemplate ¶
func (svc *TemplatesService) DeleteTemplate(ctx context.Context, req *iav1beta1.DeleteTemplateRequest) (*iav1beta1.DeleteTemplateResponse, error)
DeleteTemplate deletes existing, previously created via API.
func (*TemplatesService) ListTemplates ¶
func (svc *TemplatesService) ListTemplates(ctx context.Context, req *iav1beta1.ListTemplatesRequest) (*iav1beta1.ListTemplatesResponse, error)
ListTemplates returns a list of all collected Alert Rule Templates.
func (*TemplatesService) UpdateTemplate ¶
func (svc *TemplatesService) UpdateTemplate(ctx context.Context, req *iav1beta1.UpdateTemplateRequest) (*iav1beta1.UpdateTemplateResponse, error)
UpdateTemplate updates existing template, previously created via API.