Documentation ¶
Index ¶
- type Cpu
- type CreateRightsizingRuleInput
- type CreateRightsizingRuleOutput
- type DeleteRightsizingRuleInput
- type DeleteRightsizingRuleOutput
- type IntervalHours
- type Label
- type ListRightsizingRulesInput
- type ListRightsizingRulesOutput
- type Memory
- type MonthlyRepetitionBasis
- type Namespace
- type ReadRightsizingRuleInput
- type ReadRightsizingRuleOutput
- type RecommendationApplicationBoundaries
- type RecommendationApplicationHPA
- type RecommendationApplicationIntervals
- func (o RecommendationApplicationIntervals) MarshalJSON() ([]byte, error)
- func (o *RecommendationApplicationIntervals) SetMonthlyRepetitionBasis(v *MonthlyRepetitionBasis) *RecommendationApplicationIntervals
- func (o *RecommendationApplicationIntervals) SetRepetitionBasis(v *string) *RecommendationApplicationIntervals
- func (o *RecommendationApplicationIntervals) SetWeeklyRepetitionBasis(v *WeeklyRepetitionBasis) *RecommendationApplicationIntervals
- type RecommendationApplicationMinThreshold
- func (o RecommendationApplicationMinThreshold) MarshalJSON() ([]byte, error)
- func (o *RecommendationApplicationMinThreshold) SetCpuPercentage(v *float64) *RecommendationApplicationMinThreshold
- func (o *RecommendationApplicationMinThreshold) SetMemoryPercentage(v *float64) *RecommendationApplicationMinThreshold
- type RecommendationApplicationOverheadValues
- func (o RecommendationApplicationOverheadValues) MarshalJSON() ([]byte, error)
- func (o *RecommendationApplicationOverheadValues) SetOverheadCpuPercentage(v *float64) *RecommendationApplicationOverheadValues
- func (o *RecommendationApplicationOverheadValues) SetOverheadMemoryPercentage(v *float64) *RecommendationApplicationOverheadValues
- type RightSizingAttachDetachInput
- type RightSizingAttachDetachOutput
- type RightsizingRule
- func (o RightsizingRule) MarshalJSON() ([]byte, error)
- func (o *RightsizingRule) SetExcludePreliminaryRecommendations(v *bool) *RightsizingRule
- func (o *RightsizingRule) SetOceanId(v *string) *RightsizingRule
- func (o *RightsizingRule) SetRecommendationApplicationBoundaries(v *RecommendationApplicationBoundaries) *RightsizingRule
- func (o *RightsizingRule) SetRecommendationApplicationHPA(v *RecommendationApplicationHPA) *RightsizingRule
- func (o *RightsizingRule) SetRecommendationApplicationIntervals(v []*RecommendationApplicationIntervals) *RightsizingRule
- func (o *RightsizingRule) SetRecommendationApplicationMinThreshold(v *RecommendationApplicationMinThreshold) *RightsizingRule
- func (o *RightsizingRule) SetRecommendationApplicationOverheadValues(v *RecommendationApplicationOverheadValues) *RightsizingRule
- func (o *RightsizingRule) SetRestartReplicas(v *string) *RightsizingRule
- func (o *RightsizingRule) SetRuleName(v *string) *RightsizingRule
- type Service
- type ServiceOp
- func (s *ServiceOp) AttachRightSizingRule(ctx context.Context, input *RightSizingAttachDetachInput) (*RightSizingAttachDetachOutput, error)
- func (s *ServiceOp) CreateRightsizingRule(ctx context.Context, input *CreateRightsizingRuleInput) (*CreateRightsizingRuleOutput, error)
- func (s *ServiceOp) DeleteRightsizingRules(ctx context.Context, input *DeleteRightsizingRuleInput) (*DeleteRightsizingRuleOutput, error)
- func (s *ServiceOp) DetachRightSizingRule(ctx context.Context, input *RightSizingAttachDetachInput) (*RightSizingAttachDetachOutput, error)
- func (s *ServiceOp) ListRightsizingRules(ctx context.Context, input *ListRightsizingRulesInput) (*ListRightsizingRulesOutput, error)
- func (s *ServiceOp) ReadRightsizingRule(ctx context.Context, input *ReadRightsizingRuleInput) (*ReadRightsizingRuleOutput, error)
- func (s *ServiceOp) UpdateRightsizingRule(ctx context.Context, input *UpdateRightsizingRuleInput) (*UpdateRightsizingRuleOutput, error)
- type UpdateRightsizingRuleInput
- type UpdateRightsizingRuleOutput
- type WeeklyRepetitionBasis
- type Workload
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cpu ¶
type CreateRightsizingRuleInput ¶
type CreateRightsizingRuleInput struct {
RightsizingRule *RightsizingRule `json:"rightsizingRule,omitempty"`
}
type CreateRightsizingRuleOutput ¶
type CreateRightsizingRuleOutput struct {
RightsizingRule *RightsizingRule `json:"rightsizingRule,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 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
region 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 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 (o *RecommendationApplicationBoundaries) SetCpu(v *Cpu) *RecommendationApplicationBoundaries
func (*RecommendationApplicationBoundaries) SetMemory ¶
func (o *RecommendationApplicationBoundaries) SetMemory(v *Memory) *RecommendationApplicationBoundaries
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 (o *RecommendationApplicationIntervals) SetMonthlyRepetitionBasis(v *MonthlyRepetitionBasis) *RecommendationApplicationIntervals
func (*RecommendationApplicationIntervals) SetRepetitionBasis ¶
func (o *RecommendationApplicationIntervals) SetRepetitionBasis(v *string) *RecommendationApplicationIntervals
func (*RecommendationApplicationIntervals) SetWeeklyRepetitionBasis ¶
func (o *RecommendationApplicationIntervals) SetWeeklyRepetitionBasis(v *WeeklyRepetitionBasis) *RecommendationApplicationIntervals
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 (o *RecommendationApplicationMinThreshold) SetCpuPercentage(v *float64) *RecommendationApplicationMinThreshold
func (*RecommendationApplicationMinThreshold) SetMemoryPercentage ¶
func (o *RecommendationApplicationMinThreshold) SetMemoryPercentage(v *float64) *RecommendationApplicationMinThreshold
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 (o *RecommendationApplicationOverheadValues) SetOverheadCpuPercentage(v *float64) *RecommendationApplicationOverheadValues
func (*RecommendationApplicationOverheadValues) SetOverheadMemoryPercentage ¶
func (o *RecommendationApplicationOverheadValues) SetOverheadMemoryPercentage(v *float64) *RecommendationApplicationOverheadValues
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 Service ¶
type Service interface { CreateRightsizingRule(context.Context, *CreateRightsizingRuleInput) (*CreateRightsizingRuleOutput, error) ReadRightsizingRule(context.Context, *ReadRightsizingRuleInput) (*ReadRightsizingRuleOutput, error) ListRightsizingRules(context.Context, *ListRightsizingRulesInput) (*ListRightsizingRulesOutput, error) UpdateRightsizingRule(context.Context, *UpdateRightsizingRuleInput) (*UpdateRightsizingRuleOutput, error) DeleteRightsizingRules(context.Context, *DeleteRightsizingRuleInput) (*DeleteRightsizingRuleOutput, error) AttachRightSizingRule(context.Context, *RightSizingAttachDetachInput) (*RightSizingAttachDetachOutput, error) DetachRightSizingRule(context.Context, *RightSizingAttachDetachInput) (*RightSizingAttachDetachOutput, error) }
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 ¶
func (*ServiceOp) AttachRightSizingRule ¶
func (s *ServiceOp) AttachRightSizingRule(ctx context.Context, input *RightSizingAttachDetachInput) (*RightSizingAttachDetachOutput, error)
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 (s *ServiceOp) DetachRightSizingRule(ctx context.Context, input *RightSizingAttachDetachInput) (*RightSizingAttachDetachOutput, error)
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) 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 ¶
func (o *WeeklyRepetitionBasis) SetIntervalHours(v *IntervalHours) *WeeklyRepetitionBasis
Click to show internal directories.
Click to hide internal directories.