ia

package
v2.12.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2020 License: AGPL-3.0 Imports: 17 Imported by: 1

Documentation

Overview

Package ia contains Integrated Alerting APIs implementations.

Index

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

AddChannel adds new notification channel.

func (*ChannelsService) ChangeChannel

ChangeChannel changes existing notification channel.

func (*ChannelsService) ListChannels

ListChannels returns list of available channels.

func (*ChannelsService) RemoveChannel

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

CreateTemplate creates a new template.

func (*TemplatesService) DeleteTemplate

DeleteTemplate deletes existing, previously created via API.

func (*TemplatesService) ListTemplates

ListTemplates returns a list of all collected Alert Rule Templates.

func (*TemplatesService) UpdateTemplate

UpdateTemplate updates existing template, previously created via API.

Jump to

Keyboard shortcuts

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