right_sizing

package
v1.373.0 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: Apache-2.0 Imports: 9 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cpu

type Cpu struct {
	Min *float64 `json:"min,omitempty"`
	Max *float64 `json:"max,omitempty"`
	// contains filtered or unexported fields
}

func (Cpu) MarshalJSON added in v1.358.0

func (o Cpu) MarshalJSON() ([]byte, error)

region Cpu

func (*Cpu) SetMax

func (o *Cpu) SetMax(v *float64) *Cpu

func (*Cpu) SetMin

func (o *Cpu) SetMin(v *float64) *Cpu

type CreateRightsizingRuleInput

type CreateRightsizingRuleInput struct {
	RightsizingRule *RightsizingRule `json:"rightsizingRule,omitempty"`
}

type CreateRightsizingRuleOutput

type CreateRightsizingRuleOutput struct {
	RightsizingRule *RightsizingRule `json:"rightsizingRule,omitempty"`
}

type DeleteRightsizingRuleInput

type DeleteRightsizingRuleInput struct {
	RuleNames []string `json:"ruleNames,omitempty"`
	OceanId   *string  `json:"oceanId,omitempty"`
}

type DeleteRightsizingRuleOutput

type DeleteRightsizingRuleOutput struct{}

type IntervalHours

type IntervalHours struct {
	StartTime *string `json:"startTime,omitempty"`
	EndTime   *string `json:"endTime,omitempty"`
	// contains filtered or unexported fields
}

func (*IntervalHours) SetEndTime

func (o *IntervalHours) SetEndTime(v *string) *IntervalHours

func (*IntervalHours) SetStartTime

func (o *IntervalHours) SetStartTime(v *string) *IntervalHours

type Label

type Label struct {
	Key   *string `json:"key,omitempty"`
	Value *string `json:"value,omitempty"`
	// contains filtered or unexported fields
}

type ListRightsizingRulesInput

type ListRightsizingRulesInput struct {
	OceanId *string `json:"oceanId,omitempty"`
}

type ListRightsizingRulesOutput

type ListRightsizingRulesOutput struct {
	RightsizingRules []*RightsizingRule `json:"rightsizingRule,omitempty"`
}

type Memory

type Memory struct {
	Min *int `json:"min,omitempty"`
	Max *int `json:"max,omitempty"`
	// contains filtered or unexported fields
}

func (Memory) MarshalJSON added in v1.358.0

func (o Memory) MarshalJSON() ([]byte, error)

region Memory

func (*Memory) SetMax

func (o *Memory) SetMax(v *int) *Memory

func (*Memory) SetMin

func (o *Memory) SetMin(v *int) *Memory

type MonthlyRepetitionBasis

type MonthlyRepetitionBasis struct {
	IntervalMonths        []int                  `json:"intervalMonths,omitempty"`
	WeekOfTheMonth        []string               `json:"weekOfTheMonth,omitempty"`
	WeeklyRepetitionBasis *WeeklyRepetitionBasis `json:"weeklyRepetitionBasis,omitempty"`
	// contains filtered or unexported fields
}

func (*MonthlyRepetitionBasis) SetIntervalMonths

func (o *MonthlyRepetitionBasis) SetIntervalMonths(v []int) *MonthlyRepetitionBasis

func (*MonthlyRepetitionBasis) SetMonthlyWeeklyRepetitionBasis

func (o *MonthlyRepetitionBasis) SetMonthlyWeeklyRepetitionBasis(v *WeeklyRepetitionBasis) *MonthlyRepetitionBasis

func (*MonthlyRepetitionBasis) SetWeekOfTheMonth

func (o *MonthlyRepetitionBasis) SetWeekOfTheMonth(v []string) *MonthlyRepetitionBasis

type Namespace

type Namespace struct {
	NamespaceName *string     `json:"namespaceName,omitempty"`
	Workloads     []*Workload `json:"workloads,omitempty"`
	Labels        []*Label    `json:"labels,omitempty"`
	// contains filtered or unexported fields
}

type ReadRightsizingRuleAttachedWorkloadsInput added in v1.373.0

type ReadRightsizingRuleAttachedWorkloadsInput struct {
	RuleName *string `json:"ruleName,omitempty"`
	OceanId  *string `json:"oceanId,omitempty"`
}

type ReadRightsizingRuleAttachedWorkloadsOutput added in v1.373.0

type ReadRightsizingRuleAttachedWorkloadsOutput struct {
	RightsizingRuleAttachedWorkloads *RightsizingRuleAttachedWorkloads `json:"rightsizingRule,omitempty"`
	// contains filtered or unexported fields
}

type ReadRightsizingRuleInput

type ReadRightsizingRuleInput struct {
	RuleName *string `json:"ruleName,omitempty"`
	OceanId  *string `json:"oceanId,omitempty"`
}

type ReadRightsizingRuleOutput

type ReadRightsizingRuleOutput struct {
	RightsizingRule *RightsizingRule `json:"rightsizingRule,omitempty"`
}

type RecommendationApplicationBoundaries

type RecommendationApplicationBoundaries struct {
	Cpu    *Cpu    `json:"cpu,omitempty"`
	Memory *Memory `json:"memory,omitempty"`
	// contains filtered or unexported fields
}

func (RecommendationApplicationBoundaries) MarshalJSON added in v1.358.0

func (o RecommendationApplicationBoundaries) MarshalJSON() ([]byte, error)

region RecommendationApplicationBoundaries

func (*RecommendationApplicationBoundaries) SetCpu

func (*RecommendationApplicationBoundaries) SetMemory

type RecommendationApplicationHPA added in v1.365.0

type RecommendationApplicationHPA struct {
	AllowHPARecommendations *bool `json:"allowHPARecommendations,omitempty"`
	// contains filtered or unexported fields
}

func (RecommendationApplicationHPA) MarshalJSON added in v1.365.0

func (o RecommendationApplicationHPA) MarshalJSON() ([]byte, error)

region RecommendationApplicationHPA

func (*RecommendationApplicationHPA) SetAllowHPARecommendations added in v1.365.0

func (o *RecommendationApplicationHPA) SetAllowHPARecommendations(v *bool) *RecommendationApplicationHPA

type RecommendationApplicationIntervals

type RecommendationApplicationIntervals struct {
	RepetitionBasis        *string                 `json:"repetitionBasis,omitempty"`
	WeeklyRepetitionBasis  *WeeklyRepetitionBasis  `json:"weeklyRepetitionBasis,omitempty"`
	MonthlyRepetitionBasis *MonthlyRepetitionBasis `json:"monthlyRepetitionBasis,omitempty"`
	// contains filtered or unexported fields
}

func (RecommendationApplicationIntervals) MarshalJSON

func (o RecommendationApplicationIntervals) MarshalJSON() ([]byte, error)

func (*RecommendationApplicationIntervals) SetMonthlyRepetitionBasis

func (*RecommendationApplicationIntervals) SetRepetitionBasis

func (*RecommendationApplicationIntervals) SetWeeklyRepetitionBasis

type RecommendationApplicationMinThreshold

type RecommendationApplicationMinThreshold struct {
	CpuPercentage    *float64 `json:"cpuPercentage,omitempty"`
	MemoryPercentage *float64 `json:"memoryPercentage,omitempty"`
	// contains filtered or unexported fields
}

func (RecommendationApplicationMinThreshold) MarshalJSON added in v1.358.0

func (o RecommendationApplicationMinThreshold) MarshalJSON() ([]byte, error)

region RecommendationApplicationMinThreshold

func (*RecommendationApplicationMinThreshold) SetCpuPercentage

func (*RecommendationApplicationMinThreshold) SetMemoryPercentage

type RecommendationApplicationOverheadValues

type RecommendationApplicationOverheadValues struct {
	CpuPercentage    *float64 `json:"cpuPercentage,omitempty"`
	MemoryPercentage *float64 `json:"memoryPercentage,omitempty"`
	// contains filtered or unexported fields
}

func (RecommendationApplicationOverheadValues) MarshalJSON added in v1.358.0

func (o RecommendationApplicationOverheadValues) MarshalJSON() ([]byte, error)

region RecommendationApplicationOverheadValues

func (*RecommendationApplicationOverheadValues) SetOverheadCpuPercentage

func (*RecommendationApplicationOverheadValues) SetOverheadMemoryPercentage

type RightSizingAttachDetachInput

type RightSizingAttachDetachInput struct {
	RuleName   *string      `json:"ruleName,omitempty"`
	OceanId    *string      `json:"oceanId,omitempty"`
	Namespaces []*Namespace `json:"namespaces,omitempty"`
}

type RightSizingAttachDetachOutput

type RightSizingAttachDetachOutput struct{}

type RightsizingRule

type RightsizingRule struct {
	RuleName                                *string                                  `json:"ruleName,omitempty"`
	OceanId                                 *string                                  `json:"oceanId,omitempty"`
	RestartReplicas                         *string                                  `json:"restartReplicas,omitempty"`
	ExcludePreliminaryRecommendations       *bool                                    `json:"excludePreliminaryRecommendations,omitempty"`
	RecommendationApplicationIntervals      []*RecommendationApplicationIntervals    `json:"recommendationApplicationIntervals,omitempty"`
	RecommendationApplicationMinThreshold   *RecommendationApplicationMinThreshold   `json:"recommendationApplicationMinThreshold,omitempty"`
	RecommendationApplicationBoundaries     *RecommendationApplicationBoundaries     `json:"recommendationApplicationBoundaries,omitempty"`
	RecommendationApplicationOverheadValues *RecommendationApplicationOverheadValues `json:"recommendationApplicationOverheadValues,omitempty"`
	RecommendationApplicationHPA            *RecommendationApplicationHPA            `json:"recommendationApplicationHPA,omitempty"`
	// contains filtered or unexported fields
}

func (RightsizingRule) MarshalJSON

func (o RightsizingRule) MarshalJSON() ([]byte, error)

func (*RightsizingRule) SetExcludePreliminaryRecommendations added in v1.365.0

func (o *RightsizingRule) SetExcludePreliminaryRecommendations(v *bool) *RightsizingRule

func (*RightsizingRule) SetOceanId

func (o *RightsizingRule) SetOceanId(v *string) *RightsizingRule

func (*RightsizingRule) SetRecommendationApplicationBoundaries

func (o *RightsizingRule) SetRecommendationApplicationBoundaries(v *RecommendationApplicationBoundaries) *RightsizingRule

func (*RightsizingRule) SetRecommendationApplicationHPA added in v1.365.0

func (o *RightsizingRule) SetRecommendationApplicationHPA(v *RecommendationApplicationHPA) *RightsizingRule

func (*RightsizingRule) SetRecommendationApplicationIntervals

func (o *RightsizingRule) SetRecommendationApplicationIntervals(v []*RecommendationApplicationIntervals) *RightsizingRule

func (*RightsizingRule) SetRecommendationApplicationMinThreshold

func (o *RightsizingRule) SetRecommendationApplicationMinThreshold(v *RecommendationApplicationMinThreshold) *RightsizingRule

func (*RightsizingRule) SetRecommendationApplicationOverheadValues

func (o *RightsizingRule) SetRecommendationApplicationOverheadValues(v *RecommendationApplicationOverheadValues) *RightsizingRule

func (*RightsizingRule) SetRestartReplicas added in v1.365.0

func (o *RightsizingRule) SetRestartReplicas(v *string) *RightsizingRule

func (*RightsizingRule) SetRuleName

func (o *RightsizingRule) SetRuleName(v *string) *RightsizingRule

type RightsizingRuleAttachedWorkloads added in v1.373.0

type RightsizingRuleAttachedWorkloads struct {
	RightsizingRuleWorkloads []*RightsizingRuleWorkloads `json:"workloads,omitempty"`
	RightsizingRuleLabels    []*RightsizingRuleLabels    `json:"labels,omitempty"`
	RightsizingRuleRegex     []*RightsizingRuleRegex     `json:"regexes,omitempty"`
	// contains filtered or unexported fields
}

type RightsizingRuleLabels added in v1.373.0

type RightsizingRuleLabels struct {
	Key       *string `json:"key,omitempty"`
	Value     *string `json:"value,omitempty"`
	Namespace *string `json:"namespace,omitempty"`
	// contains filtered or unexported fields
}

type RightsizingRuleRegex added in v1.373.0

type RightsizingRuleRegex struct {
	Name         *string `json:"name,omitempty"`
	WorkloadType *string `json:"workloadType,omitempty"`
	Namespace    *string `json:"namespace,omitempty"`
	// contains filtered or unexported fields
}

type RightsizingRuleWorkloads added in v1.373.0

type RightsizingRuleWorkloads struct {
	Namespace *string `json:"namespace,omitempty"`
	Type      *string `json:"type,omitempty"`
	Name      *string `json:"name,omitempty"`
	// contains filtered or unexported fields
}

type Service

Service provides the API operation methods for making requests to endpoints of the Spotinst API. See this package's package overview docs for details on the service.

type ServiceOp

type ServiceOp struct {
	Client *client.Client
}

func New

func New(sess *session.Session, cfgs ...*spotinst.Config) *ServiceOp

func (*ServiceOp) AttachRightSizingRule

func (*ServiceOp) CreateRightsizingRule

func (s *ServiceOp) CreateRightsizingRule(ctx context.Context, input *CreateRightsizingRuleInput) (*CreateRightsizingRuleOutput, error)

func (*ServiceOp) DeleteRightsizingRules

func (s *ServiceOp) DeleteRightsizingRules(ctx context.Context, input *DeleteRightsizingRuleInput) (*DeleteRightsizingRuleOutput, error)

func (*ServiceOp) DetachRightSizingRule

func (*ServiceOp) ListRightsizingRules

func (s *ServiceOp) ListRightsizingRules(ctx context.Context, input *ListRightsizingRulesInput) (*ListRightsizingRulesOutput, error)

func (*ServiceOp) ReadRightsizingRule

func (s *ServiceOp) ReadRightsizingRule(ctx context.Context, input *ReadRightsizingRuleInput) (*ReadRightsizingRuleOutput, error)

func (*ServiceOp) ReadRightsizingRuleAttachedWorkloads added in v1.373.0

func (*ServiceOp) UpdateRightsizingRule

func (s *ServiceOp) UpdateRightsizingRule(ctx context.Context, input *UpdateRightsizingRuleInput) (*UpdateRightsizingRuleOutput, error)

type UpdateRightsizingRuleInput

type UpdateRightsizingRuleInput struct {
	RuleName        *string          `json:"ruleName,omitempty"`
	RightsizingRule *RightsizingRule `json:"rightsizingRule,omitempty"`
}

type UpdateRightsizingRuleOutput

type UpdateRightsizingRuleOutput struct {
	RightsizingRule *RightsizingRule `json:"rightsizingRule,omitempty"`
}

type WeeklyRepetitionBasis

type WeeklyRepetitionBasis struct {
	IntervalDays  []string       `json:"intervalDays,omitempty"`
	IntervalHours *IntervalHours `json:"intervalHours,omitempty"`
	// contains filtered or unexported fields
}

func (*WeeklyRepetitionBasis) SetIntervalDays

func (o *WeeklyRepetitionBasis) SetIntervalDays(v []string) *WeeklyRepetitionBasis

func (*WeeklyRepetitionBasis) SetIntervalHours

type Workload

type Workload struct {
	Name         *string `json:"name,omitempty"`
	WorkloadType *string `json:"workloadType,omitempty"`
	RegexName    *string `json:"regexName,omitempty"`
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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