Documentation
¶
Overview ¶
Package dynamostore implements monitor.MonitorStore and monitor.AlertStore backed by DynamoDB via the generic dynamostore package.
Index ¶
- type Store
- func (s *Store) Delete(ctx context.Context, id string) error
- func (s *Store) Get(ctx context.Context, id string) (*monitor.Monitor, error)
- func (s *Store) GetAlert(ctx context.Context, id string) (*monitor.AlertEvent, error)
- func (s *Store) List(ctx context.Context, filter monitor.MonitorFilter) ([]monitor.Monitor, error)
- func (s *Store) ListAlerts(ctx context.Context, filter monitor.AlertFilter) ([]monitor.AlertEvent, error)
- func (s *Store) ListEnabled(ctx context.Context) ([]monitor.Monitor, error)
- func (s *Store) Save(ctx context.Context, m *monitor.Monitor) error
- func (s *Store) SaveAlert(ctx context.Context, a *monitor.AlertEvent) error
- func (s *Store) Update(ctx context.Context, m *monitor.Monitor) error
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) ListAlerts ¶
func (s *Store) ListAlerts(ctx context.Context, filter monitor.AlertFilter) ([]monitor.AlertEvent, error)
func (*Store) ListEnabled ¶
Click to show internal directories.
Click to hide internal directories.