Documentation ¶
Index ¶
- func PossibleValuesForComparisonOperationType() []string
- func PossibleValuesForMetricStatisticType() []string
- func PossibleValuesForOperationType() []string
- func PossibleValuesForRecurrenceFrequency() []string
- func PossibleValuesForScaleDirection() []string
- func PossibleValuesForScaleRuleMetricDimensionOperationType() []string
- func PossibleValuesForScaleType() []string
- func PossibleValuesForTimeAggregationType() []string
- func ValidateAutoScaleSettingID(input interface{}, key string) (warnings []string, errors []error)
- type AutoScaleSettingId
- type AutoScaleSettingsClient
- func (c AutoScaleSettingsClient) CreateOrUpdate(ctx context.Context, id AutoScaleSettingId, input AutoscaleSettingResource) (result CreateOrUpdateOperationResponse, err error)
- func (c AutoScaleSettingsClient) Delete(ctx context.Context, id AutoScaleSettingId) (result DeleteOperationResponse, err error)
- func (c AutoScaleSettingsClient) Get(ctx context.Context, id AutoScaleSettingId) (result GetOperationResponse, err error)
- func (c AutoScaleSettingsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error)
- func (c AutoScaleSettingsClient) ListByResourceGroupComplete(ctx context.Context, id commonids.ResourceGroupId) (ListByResourceGroupCompleteResult, error)
- func (c AutoScaleSettingsClient) ListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, ...) (result ListByResourceGroupCompleteResult, err error)
- func (c AutoScaleSettingsClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error)
- func (c AutoScaleSettingsClient) ListBySubscriptionComplete(ctx context.Context, id commonids.SubscriptionId) (ListBySubscriptionCompleteResult, error)
- func (c AutoScaleSettingsClient) ListBySubscriptionCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, ...) (result ListBySubscriptionCompleteResult, err error)
- type AutoscaleNotification
- type AutoscaleProfile
- type AutoscaleSetting
- type AutoscaleSettingResource
- type AutoscaleSettingResourceOperationPredicate
- type ComparisonOperationType
- type CreateOrUpdateOperationResponse
- type DeleteOperationResponse
- type EmailNotification
- type GetOperationResponse
- type ListByResourceGroupCompleteResult
- type ListByResourceGroupCustomPager
- type ListByResourceGroupOperationResponse
- type ListBySubscriptionCompleteResult
- type ListBySubscriptionCustomPager
- type ListBySubscriptionOperationResponse
- type MetricStatisticType
- type MetricTrigger
- type OperationType
- type Recurrence
- type RecurrenceFrequency
- type RecurrentSchedule
- type ScaleAction
- type ScaleCapacity
- type ScaleDirection
- type ScaleRule
- type ScaleRuleMetricDimension
- type ScaleRuleMetricDimensionOperationType
- type ScaleType
- type TimeAggregationType
- type TimeWindow
- type WebhookNotification
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForComparisonOperationType ¶
func PossibleValuesForComparisonOperationType() []string
func PossibleValuesForMetricStatisticType ¶
func PossibleValuesForMetricStatisticType() []string
func PossibleValuesForOperationType ¶
func PossibleValuesForOperationType() []string
func PossibleValuesForRecurrenceFrequency ¶
func PossibleValuesForRecurrenceFrequency() []string
func PossibleValuesForScaleDirection ¶
func PossibleValuesForScaleDirection() []string
func PossibleValuesForScaleRuleMetricDimensionOperationType ¶
func PossibleValuesForScaleRuleMetricDimensionOperationType() []string
func PossibleValuesForScaleType ¶
func PossibleValuesForScaleType() []string
func PossibleValuesForTimeAggregationType ¶
func PossibleValuesForTimeAggregationType() []string
func ValidateAutoScaleSettingID ¶
ValidateAutoScaleSettingID checks that 'input' can be parsed as a Auto Scale Setting ID
Types ¶
type AutoScaleSettingId ¶
type AutoScaleSettingId struct { SubscriptionId string ResourceGroupName string AutoScaleSettingName string }
AutoScaleSettingId is a struct representing the Resource ID for a Auto Scale Setting
func NewAutoScaleSettingID ¶
func NewAutoScaleSettingID(subscriptionId string, resourceGroupName string, autoScaleSettingName string) AutoScaleSettingId
NewAutoScaleSettingID returns a new AutoScaleSettingId struct
func ParseAutoScaleSettingID ¶
func ParseAutoScaleSettingID(input string) (*AutoScaleSettingId, error)
ParseAutoScaleSettingID parses 'input' into a AutoScaleSettingId
func ParseAutoScaleSettingIDInsensitively ¶
func ParseAutoScaleSettingIDInsensitively(input string) (*AutoScaleSettingId, error)
ParseAutoScaleSettingIDInsensitively parses 'input' case-insensitively into a AutoScaleSettingId note: this method should only be used for API response data and not user input
func (*AutoScaleSettingId) FromParseResult ¶
func (id *AutoScaleSettingId) FromParseResult(input resourceids.ParseResult) error
func (AutoScaleSettingId) ID ¶
func (id AutoScaleSettingId) ID() string
ID returns the formatted Auto Scale Setting ID
func (AutoScaleSettingId) Segments ¶
func (id AutoScaleSettingId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Auto Scale Setting ID
func (AutoScaleSettingId) String ¶
func (id AutoScaleSettingId) String() string
String returns a human-readable description of this Auto Scale Setting ID
type AutoScaleSettingsClient ¶
type AutoScaleSettingsClient struct {
Client *resourcemanager.Client
}
func NewAutoScaleSettingsClientWithBaseURI ¶
func NewAutoScaleSettingsClientWithBaseURI(sdkApi sdkEnv.Api) (*AutoScaleSettingsClient, error)
func (AutoScaleSettingsClient) CreateOrUpdate ¶
func (c AutoScaleSettingsClient) CreateOrUpdate(ctx context.Context, id AutoScaleSettingId, input AutoscaleSettingResource) (result CreateOrUpdateOperationResponse, err error)
CreateOrUpdate ...
func (AutoScaleSettingsClient) Delete ¶
func (c AutoScaleSettingsClient) Delete(ctx context.Context, id AutoScaleSettingId) (result DeleteOperationResponse, err error)
Delete ...
func (AutoScaleSettingsClient) Get ¶
func (c AutoScaleSettingsClient) Get(ctx context.Context, id AutoScaleSettingId) (result GetOperationResponse, err error)
Get ...
func (AutoScaleSettingsClient) ListByResourceGroup ¶
func (c AutoScaleSettingsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error)
ListByResourceGroup ...
func (AutoScaleSettingsClient) ListByResourceGroupComplete ¶
func (c AutoScaleSettingsClient) ListByResourceGroupComplete(ctx context.Context, id commonids.ResourceGroupId) (ListByResourceGroupCompleteResult, error)
ListByResourceGroupComplete retrieves all the results into a single object
func (AutoScaleSettingsClient) ListByResourceGroupCompleteMatchingPredicate ¶
func (c AutoScaleSettingsClient) ListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate AutoscaleSettingResourceOperationPredicate) (result ListByResourceGroupCompleteResult, err error)
ListByResourceGroupCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (AutoScaleSettingsClient) ListBySubscription ¶
func (c AutoScaleSettingsClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error)
ListBySubscription ...
func (AutoScaleSettingsClient) ListBySubscriptionComplete ¶
func (c AutoScaleSettingsClient) ListBySubscriptionComplete(ctx context.Context, id commonids.SubscriptionId) (ListBySubscriptionCompleteResult, error)
ListBySubscriptionComplete retrieves all the results into a single object
func (AutoScaleSettingsClient) ListBySubscriptionCompleteMatchingPredicate ¶
func (c AutoScaleSettingsClient) ListBySubscriptionCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate AutoscaleSettingResourceOperationPredicate) (result ListBySubscriptionCompleteResult, err error)
ListBySubscriptionCompleteMatchingPredicate retrieves all the results and then applies the predicate
type AutoscaleNotification ¶
type AutoscaleNotification struct { Email *EmailNotification `json:"email,omitempty"` Operation OperationType `json:"operation"` WebHooks *[]WebhookNotification `json:"webhooks,omitempty"` }
type AutoscaleProfile ¶
type AutoscaleProfile struct { Capacity ScaleCapacity `json:"capacity"` FixedDate *TimeWindow `json:"fixedDate,omitempty"` Name string `json:"name"` Recurrence *Recurrence `json:"recurrence,omitempty"` Rules []ScaleRule `json:"rules"` }
type AutoscaleSetting ¶
type AutoscaleSetting struct { Enabled *bool `json:"enabled,omitempty"` Name *string `json:"name,omitempty"` Notifications *[]AutoscaleNotification `json:"notifications,omitempty"` Profiles []AutoscaleProfile `json:"profiles"` TargetResourceLocation *string `json:"targetResourceLocation,omitempty"` TargetResourceUri *string `json:"targetResourceUri,omitempty"` }
type AutoscaleSettingResourceOperationPredicate ¶
type AutoscaleSettingResourceOperationPredicate struct { Id *string Location *string Name *string Type *string }
func (AutoscaleSettingResourceOperationPredicate) Matches ¶
func (p AutoscaleSettingResourceOperationPredicate) Matches(input AutoscaleSettingResource) bool
type ComparisonOperationType ¶
type ComparisonOperationType string
const ( ComparisonOperationTypeEquals ComparisonOperationType = "Equals" ComparisonOperationTypeGreaterThan ComparisonOperationType = "GreaterThan" ComparisonOperationTypeGreaterThanOrEqual ComparisonOperationType = "GreaterThanOrEqual" ComparisonOperationTypeLessThan ComparisonOperationType = "LessThan" ComparisonOperationTypeLessThanOrEqual ComparisonOperationType = "LessThanOrEqual" ComparisonOperationTypeNotEquals ComparisonOperationType = "NotEquals" )
func (*ComparisonOperationType) UnmarshalJSON ¶ added in v0.20240229.1102109
func (s *ComparisonOperationType) UnmarshalJSON(bytes []byte) error
type CreateOrUpdateOperationResponse ¶
type CreateOrUpdateOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *AutoscaleSettingResource }
type DeleteOperationResponse ¶
type EmailNotification ¶
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *AutoscaleSettingResource }
type ListByResourceGroupCompleteResult ¶
type ListByResourceGroupCompleteResult struct { LatestHttpResponse *http.Response Items []AutoscaleSettingResource }
type ListByResourceGroupCustomPager ¶ added in v0.20240628.1153531
func (*ListByResourceGroupCustomPager) NextPageLink ¶ added in v0.20240628.1153531
func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link
type ListByResourceGroupOperationResponse ¶
type ListByResourceGroupOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]AutoscaleSettingResource }
type ListBySubscriptionCompleteResult ¶
type ListBySubscriptionCompleteResult struct { LatestHttpResponse *http.Response Items []AutoscaleSettingResource }
type ListBySubscriptionCustomPager ¶ added in v0.20240628.1153531
func (*ListBySubscriptionCustomPager) NextPageLink ¶ added in v0.20240628.1153531
func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link
type ListBySubscriptionOperationResponse ¶
type ListBySubscriptionOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]AutoscaleSettingResource }
type MetricStatisticType ¶
type MetricStatisticType string
const ( MetricStatisticTypeAverage MetricStatisticType = "Average" MetricStatisticTypeCount MetricStatisticType = "Count" MetricStatisticTypeMax MetricStatisticType = "Max" MetricStatisticTypeMin MetricStatisticType = "Min" MetricStatisticTypeSum MetricStatisticType = "Sum" )
func (*MetricStatisticType) UnmarshalJSON ¶ added in v0.20240229.1102109
func (s *MetricStatisticType) UnmarshalJSON(bytes []byte) error
type MetricTrigger ¶
type MetricTrigger struct { Dimensions *[]ScaleRuleMetricDimension `json:"dimensions,omitempty"` DividePerInstance *bool `json:"dividePerInstance,omitempty"` MetricName string `json:"metricName"` MetricNamespace *string `json:"metricNamespace,omitempty"` MetricResourceLocation *string `json:"metricResourceLocation,omitempty"` MetricResourceUri string `json:"metricResourceUri"` Operator ComparisonOperationType `json:"operator"` Statistic MetricStatisticType `json:"statistic"` Threshold float64 `json:"threshold"` TimeAggregation TimeAggregationType `json:"timeAggregation"` TimeGrain string `json:"timeGrain"` TimeWindow string `json:"timeWindow"` }
type OperationType ¶
type OperationType string
const (
OperationTypeScale OperationType = "Scale"
)
func (*OperationType) UnmarshalJSON ¶ added in v0.20240229.1102109
func (s *OperationType) UnmarshalJSON(bytes []byte) error
type Recurrence ¶
type Recurrence struct { Frequency RecurrenceFrequency `json:"frequency"` Schedule RecurrentSchedule `json:"schedule"` }
type RecurrenceFrequency ¶
type RecurrenceFrequency string
const ( RecurrenceFrequencyDay RecurrenceFrequency = "Day" RecurrenceFrequencyHour RecurrenceFrequency = "Hour" RecurrenceFrequencyMinute RecurrenceFrequency = "Minute" RecurrenceFrequencyMonth RecurrenceFrequency = "Month" RecurrenceFrequencyNone RecurrenceFrequency = "None" RecurrenceFrequencySecond RecurrenceFrequency = "Second" RecurrenceFrequencyWeek RecurrenceFrequency = "Week" RecurrenceFrequencyYear RecurrenceFrequency = "Year" )
func (*RecurrenceFrequency) UnmarshalJSON ¶ added in v0.20240229.1102109
func (s *RecurrenceFrequency) UnmarshalJSON(bytes []byte) error
type RecurrentSchedule ¶
type ScaleAction ¶
type ScaleAction struct { Cooldown string `json:"cooldown"` Direction ScaleDirection `json:"direction"` Type ScaleType `json:"type"` Value *string `json:"value,omitempty"` }
type ScaleCapacity ¶
type ScaleDirection ¶
type ScaleDirection string
const ( ScaleDirectionDecrease ScaleDirection = "Decrease" ScaleDirectionIncrease ScaleDirection = "Increase" ScaleDirectionNone ScaleDirection = "None" )
func (*ScaleDirection) UnmarshalJSON ¶ added in v0.20240229.1102109
func (s *ScaleDirection) UnmarshalJSON(bytes []byte) error
type ScaleRule ¶
type ScaleRule struct { MetricTrigger MetricTrigger `json:"metricTrigger"` ScaleAction ScaleAction `json:"scaleAction"` }
type ScaleRuleMetricDimension ¶
type ScaleRuleMetricDimension struct { DimensionName string `json:"DimensionName"` Operator ScaleRuleMetricDimensionOperationType `json:"Operator"` Values []string `json:"Values"` }
type ScaleRuleMetricDimensionOperationType ¶
type ScaleRuleMetricDimensionOperationType string
const ( ScaleRuleMetricDimensionOperationTypeEquals ScaleRuleMetricDimensionOperationType = "Equals" ScaleRuleMetricDimensionOperationTypeNotEquals ScaleRuleMetricDimensionOperationType = "NotEquals" )
func (*ScaleRuleMetricDimensionOperationType) UnmarshalJSON ¶ added in v0.20240229.1102109
func (s *ScaleRuleMetricDimensionOperationType) UnmarshalJSON(bytes []byte) error
type ScaleType ¶
type ScaleType string
func (*ScaleType) UnmarshalJSON ¶ added in v0.20240229.1102109
type TimeAggregationType ¶
type TimeAggregationType string
const ( TimeAggregationTypeAverage TimeAggregationType = "Average" TimeAggregationTypeCount TimeAggregationType = "Count" TimeAggregationTypeLast TimeAggregationType = "Last" TimeAggregationTypeMaximum TimeAggregationType = "Maximum" TimeAggregationTypeMinimum TimeAggregationType = "Minimum" TimeAggregationTypeTotal TimeAggregationType = "Total" )
func (*TimeAggregationType) UnmarshalJSON ¶ added in v0.20240229.1102109
func (s *TimeAggregationType) UnmarshalJSON(bytes []byte) error
type TimeWindow ¶
type TimeWindow struct { End string `json:"end"` Start string `json:"start"` TimeZone *string `json:"timeZone,omitempty"` }
func (*TimeWindow) GetEndAsTime ¶
func (o *TimeWindow) GetEndAsTime() (*time.Time, error)
func (*TimeWindow) GetStartAsTime ¶
func (o *TimeWindow) GetStartAsTime() (*time.Time, error)
func (*TimeWindow) SetEndAsTime ¶
func (o *TimeWindow) SetEndAsTime(input time.Time)
func (*TimeWindow) SetStartAsTime ¶
func (o *TimeWindow) SetStartAsTime(input time.Time)
type WebhookNotification ¶
Source Files ¶
- client.go
- constants.go
- id_autoscalesetting.go
- method_createorupdate.go
- method_delete.go
- method_get.go
- method_listbyresourcegroup.go
- method_listbysubscription.go
- model_autoscalenotification.go
- model_autoscaleprofile.go
- model_autoscalesetting.go
- model_autoscalesettingresource.go
- model_emailnotification.go
- model_metrictrigger.go
- model_recurrence.go
- model_recurrentschedule.go
- model_scaleaction.go
- model_scalecapacity.go
- model_scalerule.go
- model_scalerulemetricdimension.go
- model_timewindow.go
- model_webhooknotification.go
- predicates.go
- version.go