Documentation ¶
Index ¶
- Constants
- func SetupDB(ctx context.Context, pool *pgxpool.Pool) error
- type Execer
- type PageToken
- type QueryRower
- type Server
- func (s *Server) AcknowledgeAlert(ctx context.Context, request *gen.AcknowledgeAlertRequest) (*gen.Alert, error)
- func (s *Server) Close() error
- func (s *Server) CreateAlert(ctx context.Context, request *gen.CreateAlertRequest) (*gen.Alert, error)
- func (s *Server) DeleteAlert(ctx context.Context, request *gen.DeleteAlertRequest) (*gen.DeleteAlertResponse, error)
- func (s *Server) GetAlertMetadata(ctx context.Context, request *gen.GetAlertMetadataRequest) (*gen.AlertMetadata, error)
- func (s *Server) ListAlerts(ctx context.Context, request *gen.ListAlertsRequest) (*gen.ListAlertsResponse, error)
- func (s *Server) PullAlertMetadata(request *gen.PullAlertMetadataRequest, ...) error
- func (s *Server) PullAlerts(request *gen.PullAlertsRequest, server gen.AlertApi_PullAlertsServer) error
- func (s *Server) ResolveAlert(ctx context.Context, request *gen.ResolveAlertRequest) (*gen.Alert, error)
- func (s *Server) UnacknowledgeAlert(ctx context.Context, request *gen.AcknowledgeAlertRequest) (*gen.Alert, error)
- func (s *Server) UpdateAlert(ctx context.Context, request *gen.UpdateAlertRequest) (*gen.Alert, error)
Constants ¶
View Source
const ( DefaultPageSize = 50 MaxPageSize = 1000 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PageToken ¶
func DecodePageToken ¶
type QueryRower ¶
type Server ¶
type Server struct { gen.UnimplementedAlertApiServer gen.UnimplementedAlertAdminApiServer // Floors, if set, is used to pre-populate AlertMetadata with zero values for cases when no alerts appear on a floor. Floors []string // Zones, if set, is used to pre-populate AlertMetadata with zero values for cases when no alerts appear in a zone. Zones []string // Severity, if set, is used to pre-populate AlertMetadata with zero values for cases when no alerts have a severity. Severity []gen.Alert_Severity // Subsystems, if set, is used to pre-populate AlertMetadata with zero values for cases when no alerts appear in a subsystem. Subsystems []string // contains filtered or unexported fields }
func NewServerFromPool ¶
func (*Server) AcknowledgeAlert ¶
func (*Server) CreateAlert ¶
func (*Server) DeleteAlert ¶
func (s *Server) DeleteAlert(ctx context.Context, request *gen.DeleteAlertRequest) (*gen.DeleteAlertResponse, error)
func (*Server) GetAlertMetadata ¶
func (s *Server) GetAlertMetadata(ctx context.Context, request *gen.GetAlertMetadataRequest) (*gen.AlertMetadata, error)
func (*Server) ListAlerts ¶
func (s *Server) ListAlerts(ctx context.Context, request *gen.ListAlertsRequest) (*gen.ListAlertsResponse, error)
func (*Server) PullAlertMetadata ¶
func (s *Server) PullAlertMetadata(request *gen.PullAlertMetadataRequest, server gen.AlertApi_PullAlertMetadataServer) error
func (*Server) PullAlerts ¶
func (s *Server) PullAlerts(request *gen.PullAlertsRequest, server gen.AlertApi_PullAlertsServer) error
func (*Server) ResolveAlert ¶
func (*Server) UnacknowledgeAlert ¶
func (*Server) UpdateAlert ¶
Click to show internal directories.
Click to hide internal directories.