package store

import (
	"context"

	v1 "github.com/pingcap-inc/pchub/model/v1"
)

type AlertRecordStore interface {
	GetValidByRule(ctx context.Context, ruleShadow string) (*v1.AlertRecord, error)
	Create(ctx context.Context, r *v1.AlertRecord) error
	Update(ctx context.Context, r *v1.AlertRecord) error
	Delete(ctx context.Context, alertRecord *v1.AlertRecord) error
	GetByID(_ context.Context, id uint64) (*v1.AlertRecord, error)
}
