Documentation
¶
Index ¶
- type App
- func (a *App) GetSLO(ctx context.Context, req GetSLORequest) (*GetSLOResponse, error)
- func (a *App) ListBurnedBudgetRange(ctx context.Context, req ListBurnedBudgetRangeRequest) (*ListBurnedBudgetRangeResponse, error)
- func (a *App) ListSLIAvailabilityRange(ctx context.Context, req ListSLIAvailabilityRangeRequest) (*ListSLIAvailabilityRangeResponse, error)
- func (a *App) ListSLOs(ctx context.Context, req ListSLOsRequest) (*ListSLOsResponse, error)
- func (a *App) ListServices(ctx context.Context, req ListServicesRequest) (*ListServicesResponse, error)
- type AppConfig
- type BudgetRangeType
- type GetSLORequest
- type GetSLOResponse
- type ListBurnedBudgetRangeRequest
- type ListBurnedBudgetRangeResponse
- type ListSLIAvailabilityRangeRequest
- type ListSLIAvailabilityRangeResponse
- type ListSLOsRequest
- type ListSLOsResponse
- type ListServicesRequest
- type ListServicesResponse
- type PaginationCursors
- type RealTimeSLODetails
- type SLOListSortMode
- type ServiceAlerts
- type ServiceListSortMode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
func (*App) GetSLO ¶
func (a *App) GetSLO(ctx context.Context, req GetSLORequest) (*GetSLOResponse, error)
func (*App) ListBurnedBudgetRange ¶
func (a *App) ListBurnedBudgetRange(ctx context.Context, req ListBurnedBudgetRangeRequest) (*ListBurnedBudgetRangeResponse, error)
func (*App) ListSLIAvailabilityRange ¶
func (a *App) ListSLIAvailabilityRange(ctx context.Context, req ListSLIAvailabilityRangeRequest) (*ListSLIAvailabilityRangeResponse, error)
func (*App) ListSLOs ¶
func (a *App) ListSLOs(ctx context.Context, req ListSLOsRequest) (*ListSLOsResponse, error)
func (*App) ListServices ¶
func (a *App) ListServices(ctx context.Context, req ListServicesRequest) (*ListServicesResponse, error)
type BudgetRangeType ¶
type BudgetRangeType string
const ( BudgetRangeTypeYearly BudgetRangeType = "yearly" // 365 days. BudgetRangeTypeQuarterly BudgetRangeType = "quarterly" // 90 days. BudgetRangeTypeMonthly BudgetRangeType = "monthly" // 30 days. BudgetRangeTypeWeekly BudgetRangeType = "weekly" // 7 days. )
type GetSLORequest ¶
type GetSLORequest struct {
SLOID string
}
type GetSLOResponse ¶
type GetSLOResponse struct {
SLO RealTimeSLODetails
}
type ListBurnedBudgetRangeRequest ¶
type ListBurnedBudgetRangeRequest struct {
SLOID string
BudgetRangeType
}
type ListSLOsRequest ¶
type ListSLOsRequest struct {
FilterServiceID string // Used for filtering SLOs by service ID.
FilterSearchInput string // Used for searching SLOs by name.
FilterAlertFiring bool // Used for filtering SLOs that have firing alerts.
FilterPeriodBudgetConsumed bool // Used for filtering SLOs that have burned budget above threshold.
FilterCurrentBurningBudgetOver100 bool // Used for filtering SLOs that are currently burning budget over 100%.
SortMode SLOListSortMode
Cursor string
}
type ListSLOsResponse ¶
type ListSLOsResponse struct {
SLOs []RealTimeSLODetails
PaginationCursors PaginationCursors
}
type ListServicesRequest ¶
type ListServicesRequest struct {
FilterSearchInput string
SortMode ServiceListSortMode
Cursor string
}
type ListServicesResponse ¶
type ListServicesResponse struct {
Services []ServiceAlerts
PaginationCursors PaginationCursors
}
type PaginationCursors ¶
PaginationCursor are the pagination information used for cursor based pagination.
type RealTimeSLODetails ¶
type SLOListSortMode ¶
type SLOListSortMode string
const ( SLOListSortModeSLOIDAsc SLOListSortMode = "slo-id-asc" SLOListSortModeSLOIDDesc SLOListSortMode = "slo-id-desc" SLOListSortModeServiceNameAsc SLOListSortMode = "service-name-asc" SLOListSortModeServiceNameDesc SLOListSortMode = "service-name-desc" SLOListSortModeCurrentBurningBudgetAsc SLOListSortMode = "current-burning-budget-asc" SLOListSortModeCurrentBurningBudgetDesc SLOListSortMode = "current-burning-budget-desc" SLOListSortModeBudgetBurnedWindowPeriodAsc SLOListSortMode = "budget-burned-window-period-asc" SLOListSortModeBudgetBurnedWindowPeriodDesc SLOListSortMode = "budget-burned-window-period-desc" SLOListSortModeAlertSeverityAsc SLOListSortMode = "alert-severity-asc" SLOListSortModeAlertSeverityDesc SLOListSortMode = "alert-severity-desc" )
type ServiceAlerts ¶
type ServiceListSortMode ¶
type ServiceListSortMode string
const ( ServiceListSortModeServiceNameAsc ServiceListSortMode = "service-name-asc" ServiceListSortModeServiceNameDesc ServiceListSortMode = "service-name-desc" ServiceListSortModeAlertSeverityAsc ServiceListSortMode = "alert-severity-asc" ServiceListSortModeAlertSeverityDesc ServiceListSortMode = "alert-severity-desc" )
Click to show internal directories.
Click to hide internal directories.