Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SLOGetter ¶
type SLOGetter interface {
ListSLOInstantDetailsService(ctx context.Context, serviceID string) ([]SLOInstantDetails, error)
ListSLOInstantDetailsServiceBySLOSearch(ctx context.Context, serviceID, sloSearchInput string) ([]SLOInstantDetails, error)
ListSLOInstantDetails(ctx context.Context) ([]SLOInstantDetails, error)
ListSLOInstantDetailsBySLOSearch(ctx context.Context, sloSearchInput string) ([]SLOInstantDetails, error)
GetSLOInstantDetails(ctx context.Context, sloID string) (*SLOInstantDetails, error)
GetSLIAvailabilityInRange(ctx context.Context, sloID string, from, to time.Time, step time.Duration) ([]model.DataPoint, error)
GetSLIAvailabilityInRangeAutoStep(ctx context.Context, sloID string, from, to time.Time) ([]model.DataPoint, error)
}
type SLOInstantDetails ¶
type ServiceAndAlerts ¶
type ServiceAndAlerts struct {
Service model.Service
ServiceStats model.ServiceStats
Alerts []model.SLOAlerts
}
ServiceAndAlerts groups a service with its SLO alerts.
type ServiceGetter ¶
type ServiceGetter interface {
ListAllServiceAndAlerts(ctx context.Context) ([]ServiceAndAlerts, error)
ListServiceAndAlertsByServiceSearch(ctx context.Context, serviceSearchInput string) ([]ServiceAndAlerts, error)
}
Click to show internal directories.
Click to hide internal directories.