objectivesv1alpha1

package
v0.7.5 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	LabelMatcher_Type_name = map[int32]string{
		0: "EQ",
		1: "NEQ",
		2: "RE",
		3: "NRE",
	}
	LabelMatcher_Type_value = map[string]int32{
		"EQ":  0,
		"NEQ": 1,
		"RE":  2,
		"NRE": 3,
	}
)

Enum value maps for LabelMatcher_Type.

View Source
var (
	Alert_State_name = map[int32]string{
		0: "inactive",
		1: "pending",
		2: "firing",
	}
	Alert_State_value = map[string]int32{
		"inactive": 0,
		"pending":  1,
		"firing":   2,
	}
)

Enum value maps for Alert_State.

View Source
var File_objectives_v1alpha1_objectives_proto protoreflect.FileDescriptor

Functions

func ToInternal

func ToInternal(o *Objective) slo.Objective

Types

type Alert

type Alert struct {
	Labels   map[string]string    `` /* 153-byte string literal not displayed */
	Severity string               `protobuf:"bytes,2,opt,name=severity,proto3" json:"severity,omitempty"`
	For      *durationpb.Duration `protobuf:"bytes,3,opt,name=for,proto3" json:"for,omitempty"`
	Factor   float64              `protobuf:"fixed64,4,opt,name=factor,proto3" json:"factor,omitempty"`
	State    Alert_State          `protobuf:"varint,5,opt,name=state,proto3,enum=objectives.v1alpha1.Alert_State" json:"state,omitempty"`
	Short    *Burnrate            `protobuf:"bytes,6,opt,name=short,proto3" json:"short,omitempty"`
	Long     *Burnrate            `protobuf:"bytes,7,opt,name=long,proto3" json:"long,omitempty"`
	// contains filtered or unexported fields
}

func (*Alert) Descriptor deprecated

func (*Alert) Descriptor() ([]byte, []int)

Deprecated: Use Alert.ProtoReflect.Descriptor instead.

func (*Alert) GetFactor

func (x *Alert) GetFactor() float64

func (*Alert) GetFor

func (x *Alert) GetFor() *durationpb.Duration

func (*Alert) GetLabels

func (x *Alert) GetLabels() map[string]string

func (*Alert) GetLong

func (x *Alert) GetLong() *Burnrate

func (*Alert) GetSeverity

func (x *Alert) GetSeverity() string

func (*Alert) GetShort

func (x *Alert) GetShort() *Burnrate

func (*Alert) GetState

func (x *Alert) GetState() Alert_State

func (*Alert) ProtoMessage

func (*Alert) ProtoMessage()

func (*Alert) ProtoReflect

func (x *Alert) ProtoReflect() protoreflect.Message

func (*Alert) Reset

func (x *Alert) Reset()

func (*Alert) String

func (x *Alert) String() string

type Alert_State

type Alert_State int32
const (
	Alert_inactive Alert_State = 0
	Alert_pending  Alert_State = 1
	Alert_firing   Alert_State = 2
)

func (Alert_State) Descriptor

func (Alert_State) Enum

func (x Alert_State) Enum() *Alert_State

func (Alert_State) EnumDescriptor deprecated

func (Alert_State) EnumDescriptor() ([]byte, []int)

Deprecated: Use Alert_State.Descriptor instead.

func (Alert_State) Number

func (x Alert_State) Number() protoreflect.EnumNumber

func (Alert_State) String

func (x Alert_State) String() string

func (Alert_State) Type

type Availability

type Availability struct {
	Percentage float64 `protobuf:"fixed64,1,opt,name=percentage,proto3" json:"percentage,omitempty"`
	Total      float64 `protobuf:"fixed64,2,opt,name=total,proto3" json:"total,omitempty"`
	Errors     float64 `protobuf:"fixed64,3,opt,name=errors,proto3" json:"errors,omitempty"`
	// contains filtered or unexported fields
}

func (*Availability) Descriptor deprecated

func (*Availability) Descriptor() ([]byte, []int)

Deprecated: Use Availability.ProtoReflect.Descriptor instead.

func (*Availability) GetErrors

func (x *Availability) GetErrors() float64

func (*Availability) GetPercentage

func (x *Availability) GetPercentage() float64

func (*Availability) GetTotal

func (x *Availability) GetTotal() float64

func (*Availability) ProtoMessage

func (*Availability) ProtoMessage()

func (*Availability) ProtoReflect

func (x *Availability) ProtoReflect() protoreflect.Message

func (*Availability) Reset

func (x *Availability) Reset()

func (*Availability) String

func (x *Availability) String() string

type BoolGauge added in v0.6.0

type BoolGauge struct {
	BoolGauge *Query   `protobuf:"bytes,1,opt,name=boolGauge,proto3" json:"boolGauge,omitempty"`
	Grouping  []string `protobuf:"bytes,3,rep,name=grouping,proto3" json:"grouping,omitempty"`
	// contains filtered or unexported fields
}

func (*BoolGauge) Descriptor deprecated added in v0.6.0

func (*BoolGauge) Descriptor() ([]byte, []int)

Deprecated: Use BoolGauge.ProtoReflect.Descriptor instead.

func (*BoolGauge) GetBoolGauge added in v0.6.0

func (x *BoolGauge) GetBoolGauge() *Query

func (*BoolGauge) GetGrouping added in v0.6.0

func (x *BoolGauge) GetGrouping() []string

func (*BoolGauge) ProtoMessage added in v0.6.0

func (*BoolGauge) ProtoMessage()

func (*BoolGauge) ProtoReflect added in v0.6.0

func (x *BoolGauge) ProtoReflect() protoreflect.Message

func (*BoolGauge) Reset added in v0.6.0

func (x *BoolGauge) Reset()

func (*BoolGauge) String added in v0.6.0

func (x *BoolGauge) String() string

type Budget

type Budget struct {
	Total     float64 `protobuf:"fixed64,1,opt,name=total,proto3" json:"total,omitempty"`
	Remaining float64 `protobuf:"fixed64,2,opt,name=remaining,proto3" json:"remaining,omitempty"`
	Max       float64 `protobuf:"fixed64,3,opt,name=max,proto3" json:"max,omitempty"`
	// contains filtered or unexported fields
}

func (*Budget) Descriptor deprecated

func (*Budget) Descriptor() ([]byte, []int)

Deprecated: Use Budget.ProtoReflect.Descriptor instead.

func (*Budget) GetMax

func (x *Budget) GetMax() float64

func (*Budget) GetRemaining

func (x *Budget) GetRemaining() float64

func (*Budget) GetTotal

func (x *Budget) GetTotal() float64

func (*Budget) ProtoMessage

func (*Budget) ProtoMessage()

func (*Budget) ProtoReflect

func (x *Budget) ProtoReflect() protoreflect.Message

func (*Budget) Reset

func (x *Budget) Reset()

func (*Budget) String

func (x *Budget) String() string

type Burnrate

type Burnrate struct {
	Window  *durationpb.Duration `protobuf:"bytes,1,opt,name=window,proto3" json:"window,omitempty"`
	Current float64              `protobuf:"fixed64,2,opt,name=current,proto3" json:"current,omitempty"`
	Query   string               `protobuf:"bytes,3,opt,name=query,proto3" json:"query,omitempty"`
	// contains filtered or unexported fields
}

func (*Burnrate) Descriptor deprecated

func (*Burnrate) Descriptor() ([]byte, []int)

Deprecated: Use Burnrate.ProtoReflect.Descriptor instead.

func (*Burnrate) GetCurrent

func (x *Burnrate) GetCurrent() float64

func (*Burnrate) GetQuery

func (x *Burnrate) GetQuery() string

func (*Burnrate) GetWindow

func (x *Burnrate) GetWindow() *durationpb.Duration

func (*Burnrate) ProtoMessage

func (*Burnrate) ProtoMessage()

func (*Burnrate) ProtoReflect

func (x *Burnrate) ProtoReflect() protoreflect.Message

func (*Burnrate) Reset

func (x *Burnrate) Reset()

func (*Burnrate) String

func (x *Burnrate) String() string

type GetAlertsRequest

type GetAlertsRequest struct {
	Expr     string `protobuf:"bytes,1,opt,name=expr,proto3" json:"expr,omitempty"`
	Grouping string `protobuf:"bytes,2,opt,name=grouping,proto3" json:"grouping,omitempty"`
	Inactive bool   `protobuf:"varint,3,opt,name=inactive,proto3" json:"inactive,omitempty"`
	Current  bool   `protobuf:"varint,4,opt,name=current,proto3" json:"current,omitempty"`
	// contains filtered or unexported fields
}

func (*GetAlertsRequest) Descriptor deprecated

func (*GetAlertsRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetAlertsRequest.ProtoReflect.Descriptor instead.

func (*GetAlertsRequest) GetCurrent

func (x *GetAlertsRequest) GetCurrent() bool

func (*GetAlertsRequest) GetExpr

func (x *GetAlertsRequest) GetExpr() string

func (*GetAlertsRequest) GetGrouping

func (x *GetAlertsRequest) GetGrouping() string

func (*GetAlertsRequest) GetInactive

func (x *GetAlertsRequest) GetInactive() bool

func (*GetAlertsRequest) ProtoMessage

func (*GetAlertsRequest) ProtoMessage()

func (*GetAlertsRequest) ProtoReflect

func (x *GetAlertsRequest) ProtoReflect() protoreflect.Message

func (*GetAlertsRequest) Reset

func (x *GetAlertsRequest) Reset()

func (*GetAlertsRequest) String

func (x *GetAlertsRequest) String() string

type GetAlertsResponse

type GetAlertsResponse struct {
	Alerts []*Alert `protobuf:"bytes,1,rep,name=alerts,proto3" json:"alerts,omitempty"`
	// contains filtered or unexported fields
}

func (*GetAlertsResponse) Descriptor deprecated

func (*GetAlertsResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetAlertsResponse.ProtoReflect.Descriptor instead.

func (*GetAlertsResponse) GetAlerts

func (x *GetAlertsResponse) GetAlerts() []*Alert

func (*GetAlertsResponse) ProtoMessage

func (*GetAlertsResponse) ProtoMessage()

func (*GetAlertsResponse) ProtoReflect

func (x *GetAlertsResponse) ProtoReflect() protoreflect.Message

func (*GetAlertsResponse) Reset

func (x *GetAlertsResponse) Reset()

func (*GetAlertsResponse) String

func (x *GetAlertsResponse) String() string

type GetStatusRequest

type GetStatusRequest struct {
	Expr     string                 `protobuf:"bytes,1,opt,name=expr,proto3" json:"expr,omitempty"`
	Grouping string                 `protobuf:"bytes,2,opt,name=grouping,proto3" json:"grouping,omitempty"`
	Time     *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=time,proto3" json:"time,omitempty"`
	// contains filtered or unexported fields
}

func (*GetStatusRequest) Descriptor deprecated

func (*GetStatusRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetStatusRequest.ProtoReflect.Descriptor instead.

func (*GetStatusRequest) GetExpr

func (x *GetStatusRequest) GetExpr() string

func (*GetStatusRequest) GetGrouping

func (x *GetStatusRequest) GetGrouping() string

func (*GetStatusRequest) GetTime

func (x *GetStatusRequest) GetTime() *timestamppb.Timestamp

func (*GetStatusRequest) ProtoMessage

func (*GetStatusRequest) ProtoMessage()

func (*GetStatusRequest) ProtoReflect

func (x *GetStatusRequest) ProtoReflect() protoreflect.Message

func (*GetStatusRequest) Reset

func (x *GetStatusRequest) Reset()

func (*GetStatusRequest) String

func (x *GetStatusRequest) String() string

type GetStatusResponse

type GetStatusResponse struct {
	Status []*ObjectiveStatus `protobuf:"bytes,1,rep,name=status,proto3" json:"status,omitempty"`
	// contains filtered or unexported fields
}

func (*GetStatusResponse) Descriptor deprecated

func (*GetStatusResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetStatusResponse.ProtoReflect.Descriptor instead.

func (*GetStatusResponse) GetStatus

func (x *GetStatusResponse) GetStatus() []*ObjectiveStatus

func (*GetStatusResponse) ProtoMessage

func (*GetStatusResponse) ProtoMessage()

func (*GetStatusResponse) ProtoReflect

func (x *GetStatusResponse) ProtoReflect() protoreflect.Message

func (*GetStatusResponse) Reset

func (x *GetStatusResponse) Reset()

func (*GetStatusResponse) String

func (x *GetStatusResponse) String() string

type GraphDurationRequest

type GraphDurationRequest struct {
	Expr     string                 `protobuf:"bytes,1,opt,name=expr,proto3" json:"expr,omitempty"`
	Grouping string                 `protobuf:"bytes,2,opt,name=grouping,proto3" json:"grouping,omitempty"`
	Start    *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=start,proto3" json:"start,omitempty"`
	End      *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=end,proto3" json:"end,omitempty"`
	// contains filtered or unexported fields
}

func (*GraphDurationRequest) Descriptor deprecated

func (*GraphDurationRequest) Descriptor() ([]byte, []int)

Deprecated: Use GraphDurationRequest.ProtoReflect.Descriptor instead.

func (*GraphDurationRequest) GetEnd

func (*GraphDurationRequest) GetExpr

func (x *GraphDurationRequest) GetExpr() string

func (*GraphDurationRequest) GetGrouping

func (x *GraphDurationRequest) GetGrouping() string

func (*GraphDurationRequest) GetStart

func (*GraphDurationRequest) ProtoMessage

func (*GraphDurationRequest) ProtoMessage()

func (*GraphDurationRequest) ProtoReflect

func (x *GraphDurationRequest) ProtoReflect() protoreflect.Message

func (*GraphDurationRequest) Reset

func (x *GraphDurationRequest) Reset()

func (*GraphDurationRequest) String

func (x *GraphDurationRequest) String() string

type GraphDurationResponse

type GraphDurationResponse struct {
	Timeseries []*Timeseries `protobuf:"bytes,1,rep,name=timeseries,proto3" json:"timeseries,omitempty"`
	// contains filtered or unexported fields
}

func (*GraphDurationResponse) Descriptor deprecated

func (*GraphDurationResponse) Descriptor() ([]byte, []int)

Deprecated: Use GraphDurationResponse.ProtoReflect.Descriptor instead.

func (*GraphDurationResponse) GetTimeseries

func (x *GraphDurationResponse) GetTimeseries() []*Timeseries

func (*GraphDurationResponse) ProtoMessage

func (*GraphDurationResponse) ProtoMessage()

func (*GraphDurationResponse) ProtoReflect

func (x *GraphDurationResponse) ProtoReflect() protoreflect.Message

func (*GraphDurationResponse) Reset

func (x *GraphDurationResponse) Reset()

func (*GraphDurationResponse) String

func (x *GraphDurationResponse) String() string

type GraphErrorBudgetRequest

type GraphErrorBudgetRequest struct {
	Expr     string                 `protobuf:"bytes,1,opt,name=expr,proto3" json:"expr,omitempty"`
	Grouping string                 `protobuf:"bytes,2,opt,name=grouping,proto3" json:"grouping,omitempty"`
	Start    *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=start,proto3" json:"start,omitempty"`
	End      *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=end,proto3" json:"end,omitempty"`
	// contains filtered or unexported fields
}

func (*GraphErrorBudgetRequest) Descriptor deprecated

func (*GraphErrorBudgetRequest) Descriptor() ([]byte, []int)

Deprecated: Use GraphErrorBudgetRequest.ProtoReflect.Descriptor instead.

func (*GraphErrorBudgetRequest) GetEnd

func (*GraphErrorBudgetRequest) GetExpr

func (x *GraphErrorBudgetRequest) GetExpr() string

func (*GraphErrorBudgetRequest) GetGrouping

func (x *GraphErrorBudgetRequest) GetGrouping() string

func (*GraphErrorBudgetRequest) GetStart

func (*GraphErrorBudgetRequest) ProtoMessage

func (*GraphErrorBudgetRequest) ProtoMessage()

func (*GraphErrorBudgetRequest) ProtoReflect

func (x *GraphErrorBudgetRequest) ProtoReflect() protoreflect.Message

func (*GraphErrorBudgetRequest) Reset

func (x *GraphErrorBudgetRequest) Reset()

func (*GraphErrorBudgetRequest) String

func (x *GraphErrorBudgetRequest) String() string

type GraphErrorBudgetResponse

type GraphErrorBudgetResponse struct {
	Timeseries *Timeseries `protobuf:"bytes,1,opt,name=timeseries,proto3" json:"timeseries,omitempty"`
	// contains filtered or unexported fields
}

func (*GraphErrorBudgetResponse) Descriptor deprecated

func (*GraphErrorBudgetResponse) Descriptor() ([]byte, []int)

Deprecated: Use GraphErrorBudgetResponse.ProtoReflect.Descriptor instead.

func (*GraphErrorBudgetResponse) GetTimeseries

func (x *GraphErrorBudgetResponse) GetTimeseries() *Timeseries

func (*GraphErrorBudgetResponse) ProtoMessage

func (*GraphErrorBudgetResponse) ProtoMessage()

func (*GraphErrorBudgetResponse) ProtoReflect

func (x *GraphErrorBudgetResponse) ProtoReflect() protoreflect.Message

func (*GraphErrorBudgetResponse) Reset

func (x *GraphErrorBudgetResponse) Reset()

func (*GraphErrorBudgetResponse) String

func (x *GraphErrorBudgetResponse) String() string

type GraphErrorsRequest

type GraphErrorsRequest struct {
	Expr     string                 `protobuf:"bytes,1,opt,name=expr,proto3" json:"expr,omitempty"`
	Grouping string                 `protobuf:"bytes,2,opt,name=grouping,proto3" json:"grouping,omitempty"`
	Start    *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=start,proto3" json:"start,omitempty"`
	End      *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=end,proto3" json:"end,omitempty"`
	// contains filtered or unexported fields
}

func (*GraphErrorsRequest) Descriptor deprecated

func (*GraphErrorsRequest) Descriptor() ([]byte, []int)

Deprecated: Use GraphErrorsRequest.ProtoReflect.Descriptor instead.

func (*GraphErrorsRequest) GetEnd

func (*GraphErrorsRequest) GetExpr

func (x *GraphErrorsRequest) GetExpr() string

func (*GraphErrorsRequest) GetGrouping

func (x *GraphErrorsRequest) GetGrouping() string

func (*GraphErrorsRequest) GetStart

func (x *GraphErrorsRequest) GetStart() *timestamppb.Timestamp

func (*GraphErrorsRequest) ProtoMessage

func (*GraphErrorsRequest) ProtoMessage()

func (*GraphErrorsRequest) ProtoReflect

func (x *GraphErrorsRequest) ProtoReflect() protoreflect.Message

func (*GraphErrorsRequest) Reset

func (x *GraphErrorsRequest) Reset()

func (*GraphErrorsRequest) String

func (x *GraphErrorsRequest) String() string

type GraphErrorsResponse

type GraphErrorsResponse struct {
	Timeseries *Timeseries `protobuf:"bytes,1,opt,name=timeseries,proto3" json:"timeseries,omitempty"`
	// contains filtered or unexported fields
}

func (*GraphErrorsResponse) Descriptor deprecated

func (*GraphErrorsResponse) Descriptor() ([]byte, []int)

Deprecated: Use GraphErrorsResponse.ProtoReflect.Descriptor instead.

func (*GraphErrorsResponse) GetTimeseries

func (x *GraphErrorsResponse) GetTimeseries() *Timeseries

func (*GraphErrorsResponse) ProtoMessage

func (*GraphErrorsResponse) ProtoMessage()

func (*GraphErrorsResponse) ProtoReflect

func (x *GraphErrorsResponse) ProtoReflect() protoreflect.Message

func (*GraphErrorsResponse) Reset

func (x *GraphErrorsResponse) Reset()

func (*GraphErrorsResponse) String

func (x *GraphErrorsResponse) String() string

type GraphRateRequest

type GraphRateRequest struct {
	Expr     string                 `protobuf:"bytes,1,opt,name=expr,proto3" json:"expr,omitempty"`
	Grouping string                 `protobuf:"bytes,2,opt,name=grouping,proto3" json:"grouping,omitempty"`
	Start    *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=start,proto3" json:"start,omitempty"`
	End      *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=end,proto3" json:"end,omitempty"`
	// contains filtered or unexported fields
}

func (*GraphRateRequest) Descriptor deprecated

func (*GraphRateRequest) Descriptor() ([]byte, []int)

Deprecated: Use GraphRateRequest.ProtoReflect.Descriptor instead.

func (*GraphRateRequest) GetEnd

func (x *GraphRateRequest) GetEnd() *timestamppb.Timestamp

func (*GraphRateRequest) GetExpr

func (x *GraphRateRequest) GetExpr() string

func (*GraphRateRequest) GetGrouping

func (x *GraphRateRequest) GetGrouping() string

func (*GraphRateRequest) GetStart

func (x *GraphRateRequest) GetStart() *timestamppb.Timestamp

func (*GraphRateRequest) ProtoMessage

func (*GraphRateRequest) ProtoMessage()

func (*GraphRateRequest) ProtoReflect

func (x *GraphRateRequest) ProtoReflect() protoreflect.Message

func (*GraphRateRequest) Reset

func (x *GraphRateRequest) Reset()

func (*GraphRateRequest) String

func (x *GraphRateRequest) String() string

type GraphRateResponse

type GraphRateResponse struct {
	Timeseries *Timeseries `protobuf:"bytes,1,opt,name=timeseries,proto3" json:"timeseries,omitempty"`
	// contains filtered or unexported fields
}

func (*GraphRateResponse) Descriptor deprecated

func (*GraphRateResponse) Descriptor() ([]byte, []int)

Deprecated: Use GraphRateResponse.ProtoReflect.Descriptor instead.

func (*GraphRateResponse) GetTimeseries

func (x *GraphRateResponse) GetTimeseries() *Timeseries

func (*GraphRateResponse) ProtoMessage

func (*GraphRateResponse) ProtoMessage()

func (*GraphRateResponse) ProtoReflect

func (x *GraphRateResponse) ProtoReflect() protoreflect.Message

func (*GraphRateResponse) Reset

func (x *GraphRateResponse) Reset()

func (*GraphRateResponse) String

func (x *GraphRateResponse) String() string

type Indicator

type Indicator struct {

	// Types that are assignable to Options:
	//
	//	*Indicator_Ratio
	//	*Indicator_Latency
	//	*Indicator_BoolGauge
	//	*Indicator_LatencyNative
	Options isIndicator_Options `protobuf_oneof:"options"`
	// contains filtered or unexported fields
}

func (*Indicator) Descriptor deprecated

func (*Indicator) Descriptor() ([]byte, []int)

Deprecated: Use Indicator.ProtoReflect.Descriptor instead.

func (*Indicator) GetBoolGauge added in v0.6.0

func (x *Indicator) GetBoolGauge() *BoolGauge

func (*Indicator) GetLatency

func (x *Indicator) GetLatency() *Latency

func (*Indicator) GetLatencyNative added in v0.7.0

func (x *Indicator) GetLatencyNative() *LatencyNative

func (*Indicator) GetOptions

func (m *Indicator) GetOptions() isIndicator_Options

func (*Indicator) GetRatio

func (x *Indicator) GetRatio() *Ratio

func (*Indicator) ProtoMessage

func (*Indicator) ProtoMessage()

func (*Indicator) ProtoReflect

func (x *Indicator) ProtoReflect() protoreflect.Message

func (*Indicator) Reset

func (x *Indicator) Reset()

func (*Indicator) String

func (x *Indicator) String() string

type Indicator_BoolGauge added in v0.6.0

type Indicator_BoolGauge struct {
	BoolGauge *BoolGauge `protobuf:"bytes,3,opt,name=boolGauge,proto3,oneof"`
}

type Indicator_Latency

type Indicator_Latency struct {
	Latency *Latency `protobuf:"bytes,2,opt,name=latency,proto3,oneof"`
}

type Indicator_LatencyNative added in v0.7.0

type Indicator_LatencyNative struct {
	LatencyNative *LatencyNative `protobuf:"bytes,4,opt,name=latency_native,json=latencyNative,proto3,oneof"`
}

type Indicator_Ratio

type Indicator_Ratio struct {
	Ratio *Ratio `protobuf:"bytes,1,opt,name=ratio,proto3,oneof"`
}

type LabelMatcher

type LabelMatcher struct {
	Type  LabelMatcher_Type `protobuf:"varint,1,opt,name=type,proto3,enum=objectives.v1alpha1.LabelMatcher_Type" json:"type,omitempty"`
	Name  string            `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Value string            `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

Copied from Prometheus. Matcher specifies a rule, which can match or set of labels or not.

func (*LabelMatcher) Descriptor deprecated

func (*LabelMatcher) Descriptor() ([]byte, []int)

Deprecated: Use LabelMatcher.ProtoReflect.Descriptor instead.

func (*LabelMatcher) GetName

func (x *LabelMatcher) GetName() string

func (*LabelMatcher) GetType

func (x *LabelMatcher) GetType() LabelMatcher_Type

func (*LabelMatcher) GetValue

func (x *LabelMatcher) GetValue() string

func (*LabelMatcher) ProtoMessage

func (*LabelMatcher) ProtoMessage()

func (*LabelMatcher) ProtoReflect

func (x *LabelMatcher) ProtoReflect() protoreflect.Message

func (*LabelMatcher) Reset

func (x *LabelMatcher) Reset()

func (*LabelMatcher) String

func (x *LabelMatcher) String() string

type LabelMatcher_Type

type LabelMatcher_Type int32
const (
	LabelMatcher_EQ  LabelMatcher_Type = 0
	LabelMatcher_NEQ LabelMatcher_Type = 1
	LabelMatcher_RE  LabelMatcher_Type = 2
	LabelMatcher_NRE LabelMatcher_Type = 3
)

func (LabelMatcher_Type) Descriptor

func (LabelMatcher_Type) Enum

func (LabelMatcher_Type) EnumDescriptor deprecated

func (LabelMatcher_Type) EnumDescriptor() ([]byte, []int)

Deprecated: Use LabelMatcher_Type.Descriptor instead.

func (LabelMatcher_Type) Number

func (LabelMatcher_Type) String

func (x LabelMatcher_Type) String() string

func (LabelMatcher_Type) Type

type Latency

type Latency struct {
	Total    *Query   `protobuf:"bytes,1,opt,name=total,proto3" json:"total,omitempty"`
	Success  *Query   `protobuf:"bytes,2,opt,name=success,proto3" json:"success,omitempty"`
	Grouping []string `protobuf:"bytes,3,rep,name=grouping,proto3" json:"grouping,omitempty"`
	// contains filtered or unexported fields
}

func (*Latency) Descriptor deprecated

func (*Latency) Descriptor() ([]byte, []int)

Deprecated: Use Latency.ProtoReflect.Descriptor instead.

func (*Latency) GetGrouping

func (x *Latency) GetGrouping() []string

func (*Latency) GetSuccess

func (x *Latency) GetSuccess() *Query

func (*Latency) GetTotal

func (x *Latency) GetTotal() *Query

func (*Latency) ProtoMessage

func (*Latency) ProtoMessage()

func (*Latency) ProtoReflect

func (x *Latency) ProtoReflect() protoreflect.Message

func (*Latency) Reset

func (x *Latency) Reset()

func (*Latency) String

func (x *Latency) String() string

type LatencyNative added in v0.7.0

type LatencyNative struct {
	Total    *Query   `protobuf:"bytes,1,opt,name=total,proto3" json:"total,omitempty"`
	Latency  string   `protobuf:"bytes,2,opt,name=latency,proto3" json:"latency,omitempty"`
	Grouping []string `protobuf:"bytes,3,rep,name=grouping,proto3" json:"grouping,omitempty"`
	// contains filtered or unexported fields
}

func (*LatencyNative) Descriptor deprecated added in v0.7.0

func (*LatencyNative) Descriptor() ([]byte, []int)

Deprecated: Use LatencyNative.ProtoReflect.Descriptor instead.

func (*LatencyNative) GetGrouping added in v0.7.0

func (x *LatencyNative) GetGrouping() []string

func (*LatencyNative) GetLatency added in v0.7.0

func (x *LatencyNative) GetLatency() string

func (*LatencyNative) GetTotal added in v0.7.0

func (x *LatencyNative) GetTotal() *Query

func (*LatencyNative) ProtoMessage added in v0.7.0

func (*LatencyNative) ProtoMessage()

func (*LatencyNative) ProtoReflect added in v0.7.0

func (x *LatencyNative) ProtoReflect() protoreflect.Message

func (*LatencyNative) Reset added in v0.7.0

func (x *LatencyNative) Reset()

func (*LatencyNative) String added in v0.7.0

func (x *LatencyNative) String() string

type ListRequest

type ListRequest struct {
	Expr     string `protobuf:"bytes,1,opt,name=expr,proto3" json:"expr,omitempty"`
	Grouping string `protobuf:"bytes,2,opt,name=grouping,proto3" json:"grouping,omitempty"`
	// contains filtered or unexported fields
}

func (*ListRequest) Descriptor deprecated

func (*ListRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListRequest.ProtoReflect.Descriptor instead.

func (*ListRequest) GetExpr

func (x *ListRequest) GetExpr() string

func (*ListRequest) GetGrouping added in v0.6.0

func (x *ListRequest) GetGrouping() string

func (*ListRequest) ProtoMessage

func (*ListRequest) ProtoMessage()

func (*ListRequest) ProtoReflect

func (x *ListRequest) ProtoReflect() protoreflect.Message

func (*ListRequest) Reset

func (x *ListRequest) Reset()

func (*ListRequest) String

func (x *ListRequest) String() string

type ListResponse

type ListResponse struct {
	Objectives []*Objective `protobuf:"bytes,1,rep,name=objectives,proto3" json:"objectives,omitempty"`
	// contains filtered or unexported fields
}

func (*ListResponse) Descriptor deprecated

func (*ListResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListResponse.ProtoReflect.Descriptor instead.

func (*ListResponse) GetObjectives

func (x *ListResponse) GetObjectives() []*Objective

func (*ListResponse) ProtoMessage

func (*ListResponse) ProtoMessage()

func (*ListResponse) ProtoReflect

func (x *ListResponse) ProtoReflect() protoreflect.Message

func (*ListResponse) Reset

func (x *ListResponse) Reset()

func (*ListResponse) String

func (x *ListResponse) String() string

type Objective

type Objective struct {
	Labels      map[string]string    `` /* 153-byte string literal not displayed */
	Target      float64              `protobuf:"fixed64,2,opt,name=target,proto3" json:"target,omitempty"`
	Window      *durationpb.Duration `protobuf:"bytes,3,opt,name=window,proto3" json:"window,omitempty"`
	Description string               `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
	Indicator   *Indicator           `protobuf:"bytes,5,opt,name=indicator,proto3" json:"indicator,omitempty"`
	Config      string               `protobuf:"bytes,6,opt,name=config,proto3" json:"config,omitempty"`
	Queries     *Queries             `protobuf:"bytes,7,opt,name=queries,proto3" json:"queries,omitempty"`
	// contains filtered or unexported fields
}

func FromInternal

func FromInternal(o slo.Objective) *Objective

func (*Objective) Descriptor deprecated

func (*Objective) Descriptor() ([]byte, []int)

Deprecated: Use Objective.ProtoReflect.Descriptor instead.

func (*Objective) GetConfig

func (x *Objective) GetConfig() string

func (*Objective) GetDescription

func (x *Objective) GetDescription() string

func (*Objective) GetIndicator

func (x *Objective) GetIndicator() *Indicator

func (*Objective) GetLabels

func (x *Objective) GetLabels() map[string]string

func (*Objective) GetQueries added in v0.6.0

func (x *Objective) GetQueries() *Queries

func (*Objective) GetTarget

func (x *Objective) GetTarget() float64

func (*Objective) GetWindow

func (x *Objective) GetWindow() *durationpb.Duration

func (*Objective) ProtoMessage

func (*Objective) ProtoMessage()

func (*Objective) ProtoReflect

func (x *Objective) ProtoReflect() protoreflect.Message

func (*Objective) Reset

func (x *Objective) Reset()

func (*Objective) String

func (x *Objective) String() string

type ObjectiveStatus

type ObjectiveStatus struct {
	Labels       map[string]string `` /* 153-byte string literal not displayed */
	Availability *Availability     `protobuf:"bytes,2,opt,name=availability,proto3" json:"availability,omitempty"`
	Budget       *Budget           `protobuf:"bytes,3,opt,name=budget,proto3" json:"budget,omitempty"`
	// contains filtered or unexported fields
}

func (*ObjectiveStatus) Descriptor deprecated

func (*ObjectiveStatus) Descriptor() ([]byte, []int)

Deprecated: Use ObjectiveStatus.ProtoReflect.Descriptor instead.

func (*ObjectiveStatus) GetAvailability

func (x *ObjectiveStatus) GetAvailability() *Availability

func (*ObjectiveStatus) GetBudget

func (x *ObjectiveStatus) GetBudget() *Budget

func (*ObjectiveStatus) GetLabels

func (x *ObjectiveStatus) GetLabels() map[string]string

func (*ObjectiveStatus) ProtoMessage

func (*ObjectiveStatus) ProtoMessage()

func (*ObjectiveStatus) ProtoReflect

func (x *ObjectiveStatus) ProtoReflect() protoreflect.Message

func (*ObjectiveStatus) Reset

func (x *ObjectiveStatus) Reset()

func (*ObjectiveStatus) String

func (x *ObjectiveStatus) String() string

type Queries added in v0.6.0

type Queries struct {
	CountTotal       string `protobuf:"bytes,1,opt,name=countTotal,proto3" json:"countTotal,omitempty"`
	CountErrors      string `protobuf:"bytes,2,opt,name=countErrors,proto3" json:"countErrors,omitempty"`
	GraphErrorBudget string `protobuf:"bytes,3,opt,name=graphErrorBudget,proto3" json:"graphErrorBudget,omitempty"`
	GraphRequests    string `protobuf:"bytes,4,opt,name=graphRequests,proto3" json:"graphRequests,omitempty"`
	GraphErrors      string `protobuf:"bytes,5,opt,name=graphErrors,proto3" json:"graphErrors,omitempty"`
	// contains filtered or unexported fields
}

func (*Queries) Descriptor deprecated added in v0.6.0

func (*Queries) Descriptor() ([]byte, []int)

Deprecated: Use Queries.ProtoReflect.Descriptor instead.

func (*Queries) GetCountErrors added in v0.6.0

func (x *Queries) GetCountErrors() string

func (*Queries) GetCountTotal added in v0.6.0

func (x *Queries) GetCountTotal() string

func (*Queries) GetGraphErrorBudget added in v0.6.0

func (x *Queries) GetGraphErrorBudget() string

func (*Queries) GetGraphErrors added in v0.6.0

func (x *Queries) GetGraphErrors() string

func (*Queries) GetGraphRequests added in v0.6.0

func (x *Queries) GetGraphRequests() string

func (*Queries) ProtoMessage added in v0.6.0

func (*Queries) ProtoMessage()

func (*Queries) ProtoReflect added in v0.6.0

func (x *Queries) ProtoReflect() protoreflect.Message

func (*Queries) Reset added in v0.6.0

func (x *Queries) Reset()

func (*Queries) String added in v0.6.0

func (x *Queries) String() string

type Query

type Query struct {
	Metric   string          `protobuf:"bytes,1,opt,name=metric,proto3" json:"metric,omitempty"`
	Name     string          `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Matchers []*LabelMatcher `protobuf:"bytes,3,rep,name=matchers,proto3" json:"matchers,omitempty"`
	// contains filtered or unexported fields
}

func (*Query) Descriptor deprecated

func (*Query) Descriptor() ([]byte, []int)

Deprecated: Use Query.ProtoReflect.Descriptor instead.

func (*Query) GetMatchers

func (x *Query) GetMatchers() []*LabelMatcher

func (*Query) GetMetric

func (x *Query) GetMetric() string

func (*Query) GetName

func (x *Query) GetName() string

func (*Query) ProtoMessage

func (*Query) ProtoMessage()

func (*Query) ProtoReflect

func (x *Query) ProtoReflect() protoreflect.Message

func (*Query) Reset

func (x *Query) Reset()

func (*Query) String

func (x *Query) String() string

type Ratio

type Ratio struct {
	Total    *Query   `protobuf:"bytes,1,opt,name=total,proto3" json:"total,omitempty"`
	Errors   *Query   `protobuf:"bytes,2,opt,name=errors,proto3" json:"errors,omitempty"`
	Grouping []string `protobuf:"bytes,3,rep,name=grouping,proto3" json:"grouping,omitempty"`
	// contains filtered or unexported fields
}

func (*Ratio) Descriptor deprecated

func (*Ratio) Descriptor() ([]byte, []int)

Deprecated: Use Ratio.ProtoReflect.Descriptor instead.

func (*Ratio) GetErrors

func (x *Ratio) GetErrors() *Query

func (*Ratio) GetGrouping

func (x *Ratio) GetGrouping() []string

func (*Ratio) GetTotal

func (x *Ratio) GetTotal() *Query

func (*Ratio) ProtoMessage

func (*Ratio) ProtoMessage()

func (*Ratio) ProtoReflect

func (x *Ratio) ProtoReflect() protoreflect.Message

func (*Ratio) Reset

func (x *Ratio) Reset()

func (*Ratio) String

func (x *Ratio) String() string

type Series

type Series struct {
	Values []float64 `protobuf:"fixed64,1,rep,packed,name=values,proto3" json:"values,omitempty"`
	// contains filtered or unexported fields
}

func (*Series) Descriptor deprecated

func (*Series) Descriptor() ([]byte, []int)

Deprecated: Use Series.ProtoReflect.Descriptor instead.

func (*Series) GetValues

func (x *Series) GetValues() []float64

func (*Series) ProtoMessage

func (*Series) ProtoMessage()

func (*Series) ProtoReflect

func (x *Series) ProtoReflect() protoreflect.Message

func (*Series) Reset

func (x *Series) Reset()

func (*Series) String

func (x *Series) String() string

type Timeseries

type Timeseries struct {
	Labels []string  `protobuf:"bytes,1,rep,name=labels,proto3" json:"labels,omitempty"`
	Query  string    `protobuf:"bytes,2,opt,name=query,proto3" json:"query,omitempty"`
	Series []*Series `protobuf:"bytes,3,rep,name=series,proto3" json:"series,omitempty"`
	// contains filtered or unexported fields
}

func (*Timeseries) Descriptor deprecated

func (*Timeseries) Descriptor() ([]byte, []int)

Deprecated: Use Timeseries.ProtoReflect.Descriptor instead.

func (*Timeseries) GetLabels

func (x *Timeseries) GetLabels() []string

func (*Timeseries) GetQuery

func (x *Timeseries) GetQuery() string

func (*Timeseries) GetSeries

func (x *Timeseries) GetSeries() []*Series

func (*Timeseries) ProtoMessage

func (*Timeseries) ProtoMessage()

func (*Timeseries) ProtoReflect

func (x *Timeseries) ProtoReflect() protoreflect.Message

func (*Timeseries) Reset

func (x *Timeseries) Reset()

func (*Timeseries) String

func (x *Timeseries) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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