issuecache

package
v0.0.0-...-c31b65e Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache struct {
	IssueStore    smee.IssueStore
	IncidentStore smee.IncidentStore
	Log           *zap.Logger
	// contains filtered or unexported fields
}

func (*Cache) AcknowledgeIssue

func (c *Cache) AcknowledgeIssue(ctx context.Context, issueID string) (smee.Issue, error)

func (*Cache) ActiveAlertExists

func (c *Cache) ActiveAlertExists(ctx context.Context, roomID, deviceID, typ string) (bool, error)

func (*Cache) ActiveAlerts

func (c *Cache) ActiveAlerts(ctx context.Context) ([]smee.Alert, error)

func (*Cache) ActiveAlertsByType

func (c *Cache) ActiveAlertsByType(ctx context.Context, typ string) ([]smee.Alert, error)

func (*Cache) ActiveIssue

func (c *Cache) ActiveIssue(ctx context.Context, roomID string) (smee.Issue, error)

func (*Cache) ActiveIssues

func (c *Cache) ActiveIssues(ctx context.Context) ([]smee.Issue, error)

func (*Cache) AddIssueEvents

func (c *Cache) AddIssueEvents(ctx context.Context, issueID string, events ...smee.IssueEvent) error

func (*Cache) CloseAlert

func (c *Cache) CloseAlert(ctx context.Context, issueID, alertID string) (smee.Issue, error)

func (*Cache) CloseAlertsForIssue

func (c *Cache) CloseAlertsForIssue(ctx context.Context, issueID string) (smee.Issue, error)

func (*Cache) CreateAlert

func (c *Cache) CreateAlert(ctx context.Context, alert smee.Alert) (smee.Issue, error)

func (*Cache) LinkIncident

func (c *Cache) LinkIncident(ctx context.Context, issueID string, inc smee.Incident) (smee.Issue, error)

func (*Cache) SetIssueStatus

func (c *Cache) SetIssueStatus(ctx context.Context, issueID string, status string) (smee.Issue, error)

func (*Cache) Sync

func (c *Cache) Sync(ctx context.Context) error

func (*Cache) UnacknowledgeIssue

func (c *Cache) UnacknowledgeIssue(ctx context.Context, issueID string) (smee.Issue, error)

Jump to

Keyboard shortcuts

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