Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AggregatedMetricsResults ¶ added in v1.1.0
type AggregatedMetricsResults struct {
TotalResults uint32 `json:"total_results"`
TotalPages uint16 `json:"total_pages"`
Page uint16 `json:"page"`
Metrics []*AppAggregatedMetric `json:"resources"`
}
type AppAggregatedMetric ¶ added in v1.1.0
type AppScalingHistory ¶
type AppScalingHistory struct {
AppId string `json:"app_id"`
Timestamp int64 `json:"timestamp"`
ScalingType ScalingType `json:"scaling_type"`
Status ScalingStatus `json:"status"`
OldInstances int `json:"old_instances"`
NewInstances int `json:"new_instances"`
Reason string `json:"reason"`
Message string `json:"message"`
Error string `json:"error"`
}
type Credential ¶
type CredentialResponse ¶
type CredentialResponse struct {
AppId string `json:"app_id"`
*Credential
Url string `json:"url"`
}
type HistoryResults ¶
type HistoryResults struct {
TotalResults uint32 `json:"total_results"`
TotalPages uint16 `json:"total_pages"`
Page uint16 `json:"page"`
Histories []*AppScalingHistory `json:"resources"`
}
type RecurringSchedule ¶
type RecurringSchedule struct {
StartTime string `json:"start_time"`
EndTime string `json:"end_time"`
DaysOfWeek []int `json:"days_of_week,omitempty"`
DaysOfMonth []int `json:"days_of_month,omitempty"`
StartDate string `json:"start_date,omitempty"`
EndDate string `json:"end_date,omitempty"`
ScheduledInstanceMin int `json:"instance_min_count"`
ScheduledInstanceMax int `json:"instance_max_count"`
ScheduledInstanceInit int `json:"initial_min_instance_count"`
}
type ScalingPolicy ¶
type ScalingPolicy struct {
InstanceMin int `json:"instance_min_count"`
InstanceMax int `json:"instance_max_count"`
ScalingRules []*ScalingRule `json:"scaling_rules,omitempty"`
Schedules *ScalingSchedules `json:"schedules,omitempty"`
}
type ScalingRule ¶
type ScalingRule struct {
MetricType string `json:"metric_type"`
StatWindowSeconds int `json:"stat_window_secs,omitempty"`
BreachDurationSeconds int `json:"breach_duration_secs,omitempty"`
Threshold int64 `json:"threshold"`
Operator string `json:"operator"`
CoolDownSeconds int `json:"cool_down_secs,omitempty"`
Adjustment string `json:"adjustment"`
}
type ScalingSchedules ¶
type ScalingSchedules struct {
Timezone string `json:"timezone"`
RecurringSchedules []*RecurringSchedule `json:"recurring_schedule,omitempty"`
SpecificDateSchedules []*SpecificDateSchedule `json:"specific_date,omitempty"`
}
type ScalingStatus ¶
type ScalingStatus int
type ScalingType ¶
type ScalingType int
type SpecificDateSchedule ¶
Click to show internal directories.
Click to hide internal directories.