providers

package
v0.7.4 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PluginManager added in v0.6.7

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

func NewPluginManager added in v0.6.7

func NewPluginManager(logger log.Logger, cfg plugins.Config) *PluginManager

func (*PluginManager) DispenseClients added in v0.6.7

func (pl *PluginManager) DispenseClients(pluginClients map[string]*plugin.Client) (map[string]plugins.ProviderV1beta1, error)

func (*PluginManager) InitClients added in v0.6.7

func (pl *PluginManager) InitClients() map[string]*plugin.Client

func (*PluginManager) InitConfigs added in v0.6.7

func (pl *PluginManager) InitConfigs(ctx context.Context, providerPlugins map[string]plugins.ProviderV1beta1, logLevel string) error

func (*PluginManager) Stop added in v0.6.7

func (pl *PluginManager) Stop()

type UnimplementedService added in v0.6.7

type UnimplementedService struct{}

UnimplementedService is a base receiver provider service layer

func (*UnimplementedService) SetConfig added in v0.6.7

func (s *UnimplementedService) SetConfig(ctx context.Context, configRaw string) error

func (*UnimplementedService) SyncRuntimeConfig added in v0.6.7

func (s *UnimplementedService) SyncRuntimeConfig(ctx context.Context, namespaceID uint64, namespaceURN string, prov provider.Provider) error

func (*UnimplementedService) TransformToAlerts added in v0.6.7

func (s *UnimplementedService) TransformToAlerts(ctx context.Context, providerID uint64, namespaceID uint64, body map[string]any) ([]alert.Alert, int, error)

func (*UnimplementedService) UpsertRule added in v0.6.7

func (s *UnimplementedService) UpsertRule(ctx context.Context, ns namespace.Namespace, prov provider.Provider, rl *rule.Rule, templateToUpdate *template.Template) error

Directories

Path Synopsis
cortex module

Jump to

Keyboard shortcuts

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