Documentation
¶
Index ¶
- type MemoryAlertRepository
- type MemoryAlertRuleRepository
- func (r *MemoryAlertRuleRepository) Create(_ context.Context, rule *domain.AlertRule) error
- func (r *MemoryAlertRuleRepository) Delete(_ context.Context, id string) error
- func (r *MemoryAlertRuleRepository) GetByID(_ context.Context, id string) (*domain.AlertRule, error)
- func (r *MemoryAlertRuleRepository) List(_ context.Context) ([]*domain.AlertRule, error)
- func (r *MemoryAlertRuleRepository) Update(_ context.Context, rule *domain.AlertRule) error
- type MemoryDashboardRepository
- type PostgresAlertRepository
- type PostgresAlertRuleRepository
- func (r *PostgresAlertRuleRepository) Create(ctx context.Context, rule *domain.AlertRule) error
- func (r *PostgresAlertRuleRepository) Delete(ctx context.Context, id string) error
- func (r *PostgresAlertRuleRepository) GetByID(ctx context.Context, id string) (*domain.AlertRule, error)
- func (r *PostgresAlertRuleRepository) List(ctx context.Context) ([]*domain.AlertRule, error)
- func (r *PostgresAlertRuleRepository) Update(ctx context.Context, rule *domain.AlertRule) error
- type PostgresCycleLock
- type PostgresStackAlertRepository
- func (r *PostgresStackAlertRepository) ClaimNotification(ctx context.Context, id string, now time.Time, repeat time.Duration) (bool, bool, error)
- func (r *PostgresStackAlertRepository) CloseForMissingStacks(ctx context.Context, keep []string, at, seenBefore time.Time) (int, error)
- func (r *PostgresStackAlertRepository) List(ctx context.Context, orgID string, openOnly bool, limit int) ([]*domain.StackAlert, error)
- func (r *PostgresStackAlertRepository) ListOpen(ctx context.Context, stackID string) ([]*domain.StackAlert, error)
- func (r *PostgresStackAlertRepository) Resolve(ctx context.Context, id string, at, staleBefore time.Time) (bool, error)
- func (r *PostgresStackAlertRepository) Upsert(ctx context.Context, a *domain.StackAlert) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MemoryAlertRepository ¶
type MemoryAlertRepository struct {
// contains filtered or unexported fields
}
func NewMemoryAlertRepository ¶
func NewMemoryAlertRepository() *MemoryAlertRepository
type MemoryAlertRuleRepository ¶
type MemoryAlertRuleRepository struct {
// contains filtered or unexported fields
}
func NewMemoryAlertRuleRepository ¶
func NewMemoryAlertRuleRepository() *MemoryAlertRuleRepository
func (*MemoryAlertRuleRepository) Delete ¶
func (r *MemoryAlertRuleRepository) Delete(_ context.Context, id string) error
type MemoryDashboardRepository ¶
type MemoryDashboardRepository struct {
// contains filtered or unexported fields
}
MemoryDashboardRepository provides simulated dashboard data.
func NewMemoryDashboardRepository ¶
func NewMemoryDashboardRepository() *MemoryDashboardRepository
NewMemoryDashboardRepository constructs a MemoryDashboardRepository.
func (*MemoryDashboardRepository) GetDashboard ¶
GetDashboard returns simulated platform metrics and tool health data.
type PostgresAlertRepository ¶
type PostgresAlertRepository struct {
// contains filtered or unexported fields
}
func NewPostgresAlertRepository ¶
func NewPostgresAlertRepository(pool *pgxpool.Pool) *PostgresAlertRepository
type PostgresAlertRuleRepository ¶
type PostgresAlertRuleRepository struct {
// contains filtered or unexported fields
}
func NewPostgresAlertRuleRepository ¶
func NewPostgresAlertRuleRepository(pool *pgxpool.Pool) *PostgresAlertRuleRepository
func (*PostgresAlertRuleRepository) Delete ¶
func (r *PostgresAlertRuleRepository) Delete(ctx context.Context, id string) error
type PostgresCycleLock ¶ added in v0.6.0
type PostgresCycleLock struct {
// contains filtered or unexported fields
}
PostgresCycleLock 은 port.CycleLock 이다 — 세션 advisory lock 을 연결 하나에 잡고 수집이 끝나면 푼다.
func NewPostgresCycleLock ¶ added in v0.6.0
func NewPostgresCycleLock(pool *pgxpool.Pool) *PostgresCycleLock
func (*PostgresCycleLock) TryAcquire ¶ added in v0.6.0
func (l *PostgresCycleLock) TryAcquire(ctx context.Context) (func(), bool, error)
type PostgresStackAlertRepository ¶ added in v0.6.0
type PostgresStackAlertRepository struct {
// contains filtered or unexported fields
}
PostgresStackAlertRepository 는 stack_alerts 다(000097). 열린 경보는 (stack_id, fingerprint) 마다 한 행이다.
func NewPostgresStackAlertRepository ¶ added in v0.6.0
func NewPostgresStackAlertRepository(pool *pgxpool.Pool) *PostgresStackAlertRepository
func (*PostgresStackAlertRepository) ClaimNotification ¶ added in v0.6.0
func (*PostgresStackAlertRepository) CloseForMissingStacks ¶ added in v0.6.0
func (*PostgresStackAlertRepository) List ¶ added in v0.6.0
func (r *PostgresStackAlertRepository) List(ctx context.Context, orgID string, openOnly bool, limit int) ([]*domain.StackAlert, error)
func (*PostgresStackAlertRepository) ListOpen ¶ added in v0.6.0
func (r *PostgresStackAlertRepository) ListOpen(ctx context.Context, stackID string) ([]*domain.StackAlert, error)
func (*PostgresStackAlertRepository) Upsert ¶ added in v0.6.0
func (r *PostgresStackAlertRepository) Upsert(ctx context.Context, a *domain.StackAlert) (bool, error)
Click to show internal directories.
Click to hide internal directories.