storage

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

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 SLOInstantDetails struct {
	SLO           model.SLO
	BudgetDetails model.SLOBudgetDetails
	Alerts        model.SLOAlerts
}

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)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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