dynamostore

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package dynamostore implements monitor.MonitorStore and monitor.AlertStore backed by DynamoDB via the generic dynamostore package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

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

Store implements both monitor.MonitorStore and monitor.AlertStore.

func New

func New(db *dynamostore.Store) *Store

New creates a DynamoDB-backed monitor/alert store.

func (*Store) Delete

func (s *Store) Delete(ctx context.Context, id string) error

func (*Store) Get

func (s *Store) Get(ctx context.Context, id string) (*monitor.Monitor, error)

func (*Store) GetAlert

func (s *Store) GetAlert(ctx context.Context, id string) (*monitor.AlertEvent, error)

func (*Store) List

func (s *Store) List(ctx context.Context, filter monitor.MonitorFilter) ([]monitor.Monitor, error)

func (*Store) ListAlerts

func (s *Store) ListAlerts(ctx context.Context, filter monitor.AlertFilter) ([]monitor.AlertEvent, error)

func (*Store) ListEnabled

func (s *Store) ListEnabled(ctx context.Context) ([]monitor.Monitor, error)

func (*Store) Save

func (s *Store) Save(ctx context.Context, m *monitor.Monitor) error

func (*Store) SaveAlert

func (s *Store) SaveAlert(ctx context.Context, a *monitor.AlertEvent) error

func (*Store) Update

func (s *Store) Update(ctx context.Context, m *monitor.Monitor) error

Jump to

Keyboard shortcuts

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