optimize

package
v0.38.0 Latest Latest
Warning

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

Go to latest
Published: May 9, 2023 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdConfigure added in v0.36.0

func NewCmdConfigure() *cobra.Command

func NewCmdStart added in v0.37.0

func NewCmdStart() *cobra.Command

func NewCmdStatus added in v0.34.0

func NewCmdStatus() *cobra.Command

func NewCmdStop added in v0.37.0

func NewCmdStop() *cobra.Command

func NewCmdSuspend added in v0.37.0

func NewCmdSuspend() *cobra.Command

func NewCmdUnsuspend added in v0.37.0

func NewCmdUnsuspend() *cobra.Command

func NewSubCmd

func NewSubCmd() *cobra.Command

Types

type CPU added in v0.36.0

type CPU struct {
	Max    float64 `json:"max"`
	Min    float64 `json:"min"`
	Pinned bool    `json:"pinned"`
}

type Config added in v0.36.0

type Config struct {
	Guardrails Guardrails `json:"guardrails"`
	Slo        Slo        `json:"slo"`
}

type ErrorPercent added in v0.36.0

type ErrorPercent struct {
	Target float64 `json:"target"`
}

type Guardrails added in v0.36.0

type Guardrails struct {
	CPU CPU `json:"cpu"`
	Mem Mem `json:"mem"`
}

type JsonStoreItem added in v0.36.0

type JsonStoreItem struct {
	CreatedAt time.Time `json:"createdAt"`
	// Data           Data      `json:"data"`  NOTE: leave out data so that its type can be specified by embedding this type into another
	ID             string    `json:"id"`
	LayerID        string    `json:"layerId"`
	LayerType      string    `json:"layerType"`
	ObjectMimeType string    `json:"objectMimeType"`
	ObjectType     string    `json:"objectType"`
	ObjectVersion  int       `json:"objectVersion"`
	Patch          any       `json:"patch"`
	TargetObjectID any       `json:"targetObjectId"`
	UpdatedAt      time.Time `json:"updatedAt"`
}

TODO move to Orion package?

type K8SDeployment added in v0.36.0

type K8SDeployment struct {
	ClusterID     string `json:"clusterId"`
	ClusterName   string `json:"clusterName"`
	ContainerName string `json:"containerName"`
	NamespaceName string `json:"namespaceName"`
	WorkloadID    string `json:"workloadId"`
	WorkloadName  string `json:"workloadName"`
}

type MedianResponseTime added in v0.36.0

type MedianResponseTime struct {
	Target float64 `json:"target"`
}

type Mem added in v0.36.0

type Mem struct {
	Max    float64 `json:"max"`
	Min    float64 `json:"min"`
	Pinned bool    `json:"pinned"`
}

type OptimizerConfiguration added in v0.36.0

type OptimizerConfiguration struct {
	Config           Config                `json:"config"`
	DesiredState     string                `json:"desiredState"`
	OptimizerID      string                `json:"optimizerId"`
	RestartTimestamp string                `json:"restartTimestamp"`
	Suspensions      map[string]Suspension `json:"suspensions"`
	Target           Target                `json:"target"`
}

type Slo added in v0.36.0

type Slo struct {
	ErrorPercent       ErrorPercent       `json:"errorPercent"`
	MedianResponseTime MedianResponseTime `json:"medianResponseTime"`
}

type Suspension added in v0.36.0

type Suspension struct {
	Reason    string `json:"reason"`
	Timestamp string `json:"timestamp"`
	User      string `json:"user"`
}

type Target added in v0.36.0

type Target struct {
	K8SDeployment K8SDeployment `json:"k8sDeployment"`
}

Jump to

Keyboard shortcuts

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