Documentation ¶
Overview ¶
Package v1 provides the API for managing SLO status API V1 requests in the SDK.
Index ¶
Constants ¶
View Source
const ( QueryKeyLimit = "limit" QueryKeyCursor = "cursor" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BurnRateCondition ¶
type Composite ¶
type Composite struct { Target *float64 `json:"target,omitempty"` BurnRateCondition *BurnRateCondition `json:"burnRateCondition,omitempty"` CompositeObjective }
type CompositeObjective ¶
type Endpoints ¶
type Endpoints interface { GetSLO(ctx context.Context, project, name string) (slo SLODetails, err error) GetSLOs(ctx context.Context, params GetSLOsRequest) (slos SLOListResponse, err error) }
func NewEndpoints ¶
func NewEndpoints(client endpointsHelpers.Client) Endpoints
type GetSLOsRequest ¶
type Objective ¶
type Objective struct { Name string `json:"name"` DisplayName string `json:"displayName"` Target float64 `json:"target"` BurnRate *float64 `json:"burnRate,omitempty"` ErrorBudgetRemaining *float64 `json:"errorBudgetRemaining,omitempty"` ErrorBudgetRemainingPercentage *float64 `json:"errorBudgetRemainingPercentage,omitempty"` Reliability *float64 `json:"reliability,omitempty"` Counts *Counts `json:"counts,omitempty"` SLIType string `json:"sliType"` }
type SLODetails ¶
type SLODetails struct { Name string `json:"name"` DisplayName string `json:"displayName"` Description string `json:"description"` Project string `json:"project"` Service string `json:"service"` CreatedAt string `json:"createdAt"` Objectives []Objective `json:"objectives"` Composite *Composite `json:"composite,omitempty"` Labels map[string][]string `json:"labels,omitempty"` Annotations map[string]string `json:"annotations,omitempty"` BudgetingMethod string `json:"budgetingMethod"` }
type SLOListResponse ¶
type SLOListResponse struct { Data []SLODetails `json:"data"` Links Links `json:"links"` }
Click to show internal directories.
Click to hide internal directories.