oci-go-sdk: github.com/oracle/oci-go-sdk/autoscaling Index | Files

package autoscaling

import "github.com/oracle/oci-go-sdk/autoscaling"

Index

Package Files

action.go auto_scaling_configuration.go auto_scaling_configuration_summary.go auto_scaling_policy.go auto_scaling_policy_summary.go autoscaling_client.go capacity.go change_auto_scaling_compartment_details.go change_auto_scaling_configuration_compartment_request_response.go condition.go create_auto_scaling_configuration_details.go create_auto_scaling_configuration_request_response.go create_auto_scaling_policy_details.go create_auto_scaling_policy_request_response.go create_condition_details.go create_threshold_policy_details.go delete_auto_scaling_configuration_request_response.go delete_auto_scaling_policy_request_response.go get_auto_scaling_configuration_request_response.go get_auto_scaling_policy_request_response.go instance_pool_resource.go list_auto_scaling_configurations_request_response.go list_auto_scaling_policies_request_response.go metric.go resource.go threshold.go threshold_policy.go update_auto_scaling_configuration_details.go update_auto_scaling_configuration_request_response.go update_auto_scaling_policy_details.go update_auto_scaling_policy_request_response.go update_condition_details.go update_threshold_policy_details.go

type Action Uses

type Action struct {

    // The type of action to take.
    Type ActionTypeEnum `mandatory:"true" json:"type"`

    // To scale out (increase the number of instances), provide a positive value. To scale in (decrease the number of
    // instances), provide a negative value.
    Value *int `mandatory:"true" json:"value"`
}

Action The action to take when autoscaling is triggered.

func (Action) String Uses

func (m Action) String() string

type ActionTypeEnum Uses

type ActionTypeEnum string

ActionTypeEnum Enum with underlying type: string

const (
    ActionTypeChangeCountBy ActionTypeEnum = "CHANGE_COUNT_BY"
)

Set of constants representing the allowable values for ActionTypeEnum

func GetActionTypeEnumValues Uses

func GetActionTypeEnumValues() []ActionTypeEnum

GetActionTypeEnumValues Enumerates the set of values for ActionTypeEnum

type AutoScalingClient Uses

type AutoScalingClient struct {
    common.BaseClient
    // contains filtered or unexported fields
}

AutoScalingClient a client for AutoScaling

func NewAutoScalingClientWithConfigurationProvider Uses

func NewAutoScalingClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client AutoScalingClient, err error)

NewAutoScalingClientWithConfigurationProvider Creates a new default AutoScaling client with the given configuration provider. the configuration provider will be used for the default signer as well as reading the region

func NewAutoScalingClientWithOboToken Uses

func NewAutoScalingClientWithOboToken(configProvider common.ConfigurationProvider, oboToken string) (client AutoScalingClient, err error)

NewAutoScalingClientWithOboToken Creates a new default AutoScaling client with the given configuration provider. The obotoken will be added to default headers and signed; the configuration provider will be used for the signer

as well as reading the region

func (AutoScalingClient) ChangeAutoScalingConfigurationCompartment Uses

func (client AutoScalingClient) ChangeAutoScalingConfigurationCompartment(ctx context.Context, request ChangeAutoScalingConfigurationCompartmentRequest) (response ChangeAutoScalingConfigurationCompartmentResponse, err error)

ChangeAutoScalingConfigurationCompartment Moves an autoscaling configuration into a different compartment within the same tenancy. For information about moving resources between compartments, see Moving Resources to a Different Compartment (https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes). When you move an autoscaling configuration to a different compartment, associated resources such as instance pools are not moved.

func (*AutoScalingClient) ConfigurationProvider Uses

func (client *AutoScalingClient) ConfigurationProvider() *common.ConfigurationProvider

ConfigurationProvider the ConfigurationProvider used in this client, or null if none set

func (AutoScalingClient) CreateAutoScalingConfiguration Uses

func (client AutoScalingClient) CreateAutoScalingConfiguration(ctx context.Context, request CreateAutoScalingConfigurationRequest) (response CreateAutoScalingConfigurationResponse, err error)

CreateAutoScalingConfiguration Creates an autoscaling configuration.

func (AutoScalingClient) CreateAutoScalingPolicy Uses

func (client AutoScalingClient) CreateAutoScalingPolicy(ctx context.Context, request CreateAutoScalingPolicyRequest) (response CreateAutoScalingPolicyResponse, err error)

CreateAutoScalingPolicy Creates an autoscaling policy for the specified autoscaling configuration.

func (AutoScalingClient) DeleteAutoScalingConfiguration Uses

func (client AutoScalingClient) DeleteAutoScalingConfiguration(ctx context.Context, request DeleteAutoScalingConfigurationRequest) (response DeleteAutoScalingConfigurationResponse, err error)

DeleteAutoScalingConfiguration Deletes an autoscaling configuration.

func (AutoScalingClient) DeleteAutoScalingPolicy Uses

func (client AutoScalingClient) DeleteAutoScalingPolicy(ctx context.Context, request DeleteAutoScalingPolicyRequest) (response DeleteAutoScalingPolicyResponse, err error)

DeleteAutoScalingPolicy Deletes an autoscaling policy for the specified autoscaling configuration.

func (AutoScalingClient) GetAutoScalingConfiguration Uses

func (client AutoScalingClient) GetAutoScalingConfiguration(ctx context.Context, request GetAutoScalingConfigurationRequest) (response GetAutoScalingConfigurationResponse, err error)

GetAutoScalingConfiguration Gets information about the specified autoscaling configuration.

func (AutoScalingClient) GetAutoScalingPolicy Uses

func (client AutoScalingClient) GetAutoScalingPolicy(ctx context.Context, request GetAutoScalingPolicyRequest) (response GetAutoScalingPolicyResponse, err error)

GetAutoScalingPolicy Gets information about the specified autoscaling policy in the specified autoscaling configuration.

func (AutoScalingClient) ListAutoScalingConfigurations Uses

func (client AutoScalingClient) ListAutoScalingConfigurations(ctx context.Context, request ListAutoScalingConfigurationsRequest) (response ListAutoScalingConfigurationsResponse, err error)

ListAutoScalingConfigurations Lists autoscaling configurations in the specifed compartment.

func (AutoScalingClient) ListAutoScalingPolicies Uses

func (client AutoScalingClient) ListAutoScalingPolicies(ctx context.Context, request ListAutoScalingPoliciesRequest) (response ListAutoScalingPoliciesResponse, err error)

ListAutoScalingPolicies Lists the autoscaling policies in the specified autoscaling configuration.

func (*AutoScalingClient) SetRegion Uses

func (client *AutoScalingClient) SetRegion(region string)

SetRegion overrides the region of this client.

func (AutoScalingClient) UpdateAutoScalingConfiguration Uses

func (client AutoScalingClient) UpdateAutoScalingConfiguration(ctx context.Context, request UpdateAutoScalingConfigurationRequest) (response UpdateAutoScalingConfigurationResponse, err error)

UpdateAutoScalingConfiguration Updates certain fields on the specified autoscaling configuration, such as the name, the cooldown period, and whether the autoscaling configuration is enabled.

func (AutoScalingClient) UpdateAutoScalingPolicy Uses

func (client AutoScalingClient) UpdateAutoScalingPolicy(ctx context.Context, request UpdateAutoScalingPolicyRequest) (response UpdateAutoScalingPolicyResponse, err error)

UpdateAutoScalingPolicy Updates an autoscaling policy in the specified autoscaling configuration.

type AutoScalingConfiguration Uses

type AutoScalingConfiguration struct {

    // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment containing the autoscaling configuration.
    CompartmentId *string `mandatory:"true" json:"compartmentId"`

    // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the autoscaling configuration.
    Id  *string `mandatory:"true" json:"id"`

    Resource Resource `mandatory:"true" json:"resource"`

    // Autoscaling policy definitions for the autoscaling configuration. An autoscaling policy defines the criteria that
    // trigger autoscaling actions and the actions to take.
    // Each autoscaling configuration can have one autoscaling policy.
    Policies []AutoScalingPolicy `mandatory:"true" json:"policies"`

    // The date and time the AutoScalingConfiguration was created, in the format defined by RFC3339.
    // Example: `2016-08-25T21:10:29.600Z`
    TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"`

    // Defined tags for this resource. Each key is predefined and scoped to a
    // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm).
    // Example: `{"Operations": {"CostCenter": "42"}}`
    DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`

    // A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    DisplayName *string `mandatory:"false" json:"displayName"`

    // Free-form tags for this resource. Each tag is a simple key-value pair with no
    // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm).
    // Example: `{"Department": "Finance"}`
    FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`

    // The minimum period of time to wait between scaling actions. The cooldown period gives the system time to stabilize
    // before rescaling. The minimum value is 300 seconds, which is also the default.
    CoolDownInSeconds *int `mandatory:"false" json:"coolDownInSeconds"`

    // Whether the autoscaling configuration is enabled.
    IsEnabled *bool `mandatory:"false" json:"isEnabled"`
}

AutoScalingConfiguration An autoscaling configuration allows you to dynamically scale the resources in a Compute instance pool. For more information, see Autoscaling (https://docs.cloud.oracle.com/iaas/Content/Compute/Tasks/autoscalinginstancepools.htm).

func (AutoScalingConfiguration) String Uses

func (m AutoScalingConfiguration) String() string

func (*AutoScalingConfiguration) UnmarshalJSON Uses

func (m *AutoScalingConfiguration) UnmarshalJSON(data []byte) (e error)

UnmarshalJSON unmarshals from json

type AutoScalingConfigurationSummary Uses

type AutoScalingConfigurationSummary struct {

    // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment containing the autoscaling configuration.
    CompartmentId *string `mandatory:"true" json:"compartmentId"`

    // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the autoscaling configuration.
    Id  *string `mandatory:"true" json:"id"`

    // The date and time the AutoScalingConfiguration was created, in the format defined by RFC3339.
    // Example: `2016-08-25T21:10:29.600Z`
    TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"`

    // A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    DisplayName *string `mandatory:"false" json:"displayName"`

    // The minimum period of time to wait between scaling actions. The cooldown period gives the system time to stabilize
    // before rescaling. The minimum value is 300 seconds, which is also the default.
    CoolDownInSeconds *int `mandatory:"false" json:"coolDownInSeconds"`

    // Whether the autoscaling configuration is enabled.
    IsEnabled *bool `mandatory:"false" json:"isEnabled"`

    Resource Resource `mandatory:"false" json:"resource"`

    // Defined tags for this resource. Each key is predefined and scoped to a
    // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm).
    // Example: `{"Operations": {"CostCenter": "42"}}`
    DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`

    // Free-form tags for this resource. Each tag is a simple key-value pair with no
    // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm).
    // Example: `{"Department": "Finance"}`
    FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`
}

AutoScalingConfigurationSummary Summary information for an autoscaling configuration.

func (AutoScalingConfigurationSummary) String Uses

func (m AutoScalingConfigurationSummary) String() string

func (*AutoScalingConfigurationSummary) UnmarshalJSON Uses

func (m *AutoScalingConfigurationSummary) UnmarshalJSON(data []byte) (e error)

UnmarshalJSON unmarshals from json

type AutoScalingPolicy Uses

type AutoScalingPolicy interface {

    // The capacity requirements of the autoscaling policy.
    GetCapacity() *Capacity

    // The date and time the autoscaling configuration was created, in the format defined by RFC3339.
    // Example: `2016-08-25T21:10:29.600Z`
    GetTimeCreated() *common.SDKTime

    // The ID of the autoscaling policy that is assigned after creation.
    GetId() *string

    // A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    GetDisplayName() *string
}

AutoScalingPolicy Autoscaling policies define the criteria that trigger autoscaling actions and the actions to take. An autoscaling policy is part of an autoscaling configuration. For more information, see Autoscaling (https://docs.cloud.oracle.com/iaas/Content/Compute/Tasks/autoscalinginstancepools.htm).

type AutoScalingPolicySummary Uses

type AutoScalingPolicySummary struct {

    // The ID of the autoscaling policy that is assigned after creation.
    Id  *string `mandatory:"true" json:"id"`

    // The type of autoscaling policy.
    PolicyType *string `mandatory:"true" json:"policyType"`

    // A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    DisplayName *string `mandatory:"false" json:"displayName"`
}

AutoScalingPolicySummary Summary information for an autoscaling policy.

func (AutoScalingPolicySummary) String Uses

func (m AutoScalingPolicySummary) String() string

type Capacity Uses

type Capacity struct {

    // The maximum number of instances the instance pool is allowed to increase to (scale out).
    Max *int `mandatory:"true" json:"max"`

    // The minimum number of instances the instance pool is allowed to decrease to (scale in).
    Min *int `mandatory:"true" json:"min"`

    // The initial number of instances to launch in the instance pool immediately after autoscaling is
    // enabled. After autoscaling retrieves performance metrics, the number of instances is automatically adjusted from this
    // initial number to a number that is based on the limits that you set.
    Initial *int `mandatory:"true" json:"initial"`
}

Capacity Capacity limits for the instance pool.

func (Capacity) String Uses

func (m Capacity) String() string

type ChangeAutoScalingCompartmentDetails Uses

type ChangeAutoScalingCompartmentDetails struct {

    // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the autoscaling configuration to.
    CompartmentId *string `mandatory:"true" json:"compartmentId"`
}

ChangeAutoScalingCompartmentDetails The configuration details for the move operation.

func (ChangeAutoScalingCompartmentDetails) String Uses

func (m ChangeAutoScalingCompartmentDetails) String() string

type ChangeAutoScalingConfigurationCompartmentRequest Uses

type ChangeAutoScalingConfigurationCompartmentRequest struct {

    // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the autoscaling configuration.
    AutoScalingConfigurationId *string `mandatory:"true" contributesTo:"path" name:"autoScalingConfigurationId"`

    // Request to change the compartment of given autoscaling configuration.
    ChangeCompartmentDetails ChangeAutoScalingCompartmentDetails `contributesTo:"body"`

    OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`

    // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
    // parameter to the value of the etag from a previous GET or POST response for that resource.  The resource
    // will be updated or deleted only if the etag you provide matches the resource's current etag value.
    IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"`

    // A token that uniquely identifies a request so it can be retried in case of a timeout or
    // server error without risk of executing that same action again. Retry tokens expire after 24
    // hours, but can be invalidated before then due to conflicting operations (for example, if a resource
    // has been deleted and purged from the system, then a retry of the original creation request
    // may be rejected).
    OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"`

    // Metadata about the request. This information will not be transmitted to the service, but
    // represents information that the SDK will consume to drive retry behavior.
    RequestMetadata common.RequestMetadata
}

ChangeAutoScalingConfigurationCompartmentRequest wrapper for the ChangeAutoScalingConfigurationCompartment operation

func (ChangeAutoScalingConfigurationCompartmentRequest) HTTPRequest Uses

func (request ChangeAutoScalingConfigurationCompartmentRequest) HTTPRequest(method, path string) (http.Request, error)

HTTPRequest implements the OCIRequest interface

func (ChangeAutoScalingConfigurationCompartmentRequest) RetryPolicy Uses

func (request ChangeAutoScalingConfigurationCompartmentRequest) RetryPolicy() *common.RetryPolicy

RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.

func (ChangeAutoScalingConfigurationCompartmentRequest) String Uses

func (request ChangeAutoScalingConfigurationCompartmentRequest) String() string

type ChangeAutoScalingConfigurationCompartmentResponse Uses

type ChangeAutoScalingConfigurationCompartmentResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // The resulting etag of the autoscaling configuration affected by this operation.
    // For optimistic concurrency control. See `if-match`.
    Etag *string `presentIn:"header" name:"etag"`

    // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about
    // a particular request, please provide the request ID.
    OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
}

ChangeAutoScalingConfigurationCompartmentResponse wrapper for the ChangeAutoScalingConfigurationCompartment operation

func (ChangeAutoScalingConfigurationCompartmentResponse) HTTPResponse Uses

func (response ChangeAutoScalingConfigurationCompartmentResponse) HTTPResponse() *http.Response

HTTPResponse implements the OCIResponse interface

func (ChangeAutoScalingConfigurationCompartmentResponse) String Uses

func (response ChangeAutoScalingConfigurationCompartmentResponse) String() string

type Condition Uses

type Condition struct {
    Action *Action `mandatory:"true" json:"action"`

    Metric *Metric `mandatory:"true" json:"metric"`

    // A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    DisplayName *string `mandatory:"false" json:"displayName"`

    // ID of the condition that is assigned after creation.
    Id  *string `mandatory:"false" json:"id"`
}

Condition A rule that defines a specific autoscaling action to take (scale in or scale out) and the metric that triggers that action.

func (Condition) String Uses

func (m Condition) String() string

type CreateAutoScalingConfigurationDetails Uses

type CreateAutoScalingConfigurationDetails struct {

    // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment containing the autoscaling configuration.
    CompartmentId *string `mandatory:"true" json:"compartmentId"`

    Policies []CreateAutoScalingPolicyDetails `mandatory:"true" json:"policies"`

    Resource Resource `mandatory:"true" json:"resource"`

    // Defined tags for this resource. Each key is predefined and scoped to a
    // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm).
    // Example: `{"Operations": {"CostCenter": "42"}}`
    DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`

    // A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    DisplayName *string `mandatory:"false" json:"displayName"`

    // Free-form tags for this resource. Each tag is a simple key-value pair with no
    // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm).
    // Example: `{"Department": "Finance"}`
    FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`

    // The minimum period of time to wait between scaling actions. The cooldown period gives the system time to stabilize
    // before rescaling. The minimum value is 300 seconds, which is also the default.
    CoolDownInSeconds *int `mandatory:"false" json:"coolDownInSeconds"`

    // Whether the autoscaling configuration is enabled.
    IsEnabled *bool `mandatory:"false" json:"isEnabled"`
}

CreateAutoScalingConfigurationDetails Creation details for an autoscaling configuration.

func (CreateAutoScalingConfigurationDetails) String Uses

func (m CreateAutoScalingConfigurationDetails) String() string

func (*CreateAutoScalingConfigurationDetails) UnmarshalJSON Uses

func (m *CreateAutoScalingConfigurationDetails) UnmarshalJSON(data []byte) (e error)

UnmarshalJSON unmarshals from json

type CreateAutoScalingConfigurationRequest Uses

type CreateAutoScalingConfigurationRequest struct {

    // Creation details for an autoscaling configuration.
    CreateAutoScalingConfigurationDetails `contributesTo:"body"`

    OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`

    // A token that uniquely identifies a request so it can be retried in case of a timeout or
    // server error without risk of executing that same action again. Retry tokens expire after 24
    // hours, but can be invalidated before then due to conflicting operations (for example, if a resource
    // has been deleted and purged from the system, then a retry of the original creation request
    // may be rejected).
    OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"`

    // Metadata about the request. This information will not be transmitted to the service, but
    // represents information that the SDK will consume to drive retry behavior.
    RequestMetadata common.RequestMetadata
}

CreateAutoScalingConfigurationRequest wrapper for the CreateAutoScalingConfiguration operation

func (CreateAutoScalingConfigurationRequest) HTTPRequest Uses

func (request CreateAutoScalingConfigurationRequest) HTTPRequest(method, path string) (http.Request, error)

HTTPRequest implements the OCIRequest interface

func (CreateAutoScalingConfigurationRequest) RetryPolicy Uses

func (request CreateAutoScalingConfigurationRequest) RetryPolicy() *common.RetryPolicy

RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.

func (CreateAutoScalingConfigurationRequest) String Uses

func (request CreateAutoScalingConfigurationRequest) String() string

type CreateAutoScalingConfigurationResponse Uses

type CreateAutoScalingConfigurationResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // The AutoScalingConfiguration instance
    AutoScalingConfiguration `presentIn:"body"`

    // For optimistic concurrency control. See `if-match`.
    Etag *string `presentIn:"header" name:"etag"`

    // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about
    // a particular request, please provide the request ID.
    OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
}

CreateAutoScalingConfigurationResponse wrapper for the CreateAutoScalingConfiguration operation

func (CreateAutoScalingConfigurationResponse) HTTPResponse Uses

func (response CreateAutoScalingConfigurationResponse) HTTPResponse() *http.Response

HTTPResponse implements the OCIResponse interface

func (CreateAutoScalingConfigurationResponse) String Uses

func (response CreateAutoScalingConfigurationResponse) String() string

type CreateAutoScalingPolicyDetails Uses

type CreateAutoScalingPolicyDetails interface {

    // The capacity requirements of the autoscaling policy.
    GetCapacity() *Capacity

    // A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    GetDisplayName() *string
}

CreateAutoScalingPolicyDetails Creation details for an autoscaling policy. Each autoscaling configuration can have one autoscaling policy. In a threshold-based autoscaling policy, an autoscaling action is triggered when a performance metric meets or exceeds a threshold.

type CreateAutoScalingPolicyRequest Uses

type CreateAutoScalingPolicyRequest struct {

    // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the autoscaling configuration.
    AutoScalingConfigurationId *string `mandatory:"true" contributesTo:"path" name:"autoScalingConfigurationId"`

    // Creation details for an autoscaling policy.
    CreateAutoScalingPolicyDetails `contributesTo:"body"`

    OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`

    // A token that uniquely identifies a request so it can be retried in case of a timeout or
    // server error without risk of executing that same action again. Retry tokens expire after 24
    // hours, but can be invalidated before then due to conflicting operations (for example, if a resource
    // has been deleted and purged from the system, then a retry of the original creation request
    // may be rejected).
    OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"`

    // Metadata about the request. This information will not be transmitted to the service, but
    // represents information that the SDK will consume to drive retry behavior.
    RequestMetadata common.RequestMetadata
}

CreateAutoScalingPolicyRequest wrapper for the CreateAutoScalingPolicy operation

func (CreateAutoScalingPolicyRequest) HTTPRequest Uses

func (request CreateAutoScalingPolicyRequest) HTTPRequest(method, path string) (http.Request, error)

HTTPRequest implements the OCIRequest interface

func (CreateAutoScalingPolicyRequest) RetryPolicy Uses

func (request CreateAutoScalingPolicyRequest) RetryPolicy() *common.RetryPolicy

RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.

func (CreateAutoScalingPolicyRequest) String Uses

func (request CreateAutoScalingPolicyRequest) String() string

type CreateAutoScalingPolicyResponse Uses

type CreateAutoScalingPolicyResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // The AutoScalingPolicy instance
    AutoScalingPolicy `presentIn:"body"`

    // For optimistic concurrency control. See `if-match`.
    Etag *string `presentIn:"header" name:"etag"`

    // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about
    // a particular request, please provide the request ID.
    OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
}

CreateAutoScalingPolicyResponse wrapper for the CreateAutoScalingPolicy operation

func (CreateAutoScalingPolicyResponse) HTTPResponse Uses

func (response CreateAutoScalingPolicyResponse) HTTPResponse() *http.Response

HTTPResponse implements the OCIResponse interface

func (CreateAutoScalingPolicyResponse) String Uses

func (response CreateAutoScalingPolicyResponse) String() string

type CreateConditionDetails Uses

type CreateConditionDetails struct {
    Action *Action `mandatory:"true" json:"action"`

    Metric *Metric `mandatory:"true" json:"metric"`

    // A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    DisplayName *string `mandatory:"false" json:"displayName"`
}

CreateConditionDetails Creation details for a condition in a threshold-based autoscaling policy.

func (CreateConditionDetails) String Uses

func (m CreateConditionDetails) String() string

type CreateThresholdPolicyDetails Uses

type CreateThresholdPolicyDetails struct {

    // The capacity requirements of the autoscaling policy.
    Capacity *Capacity `mandatory:"true" json:"capacity"`

    Rules []CreateConditionDetails `mandatory:"true" json:"rules"`

    // A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    DisplayName *string `mandatory:"false" json:"displayName"`
}

CreateThresholdPolicyDetails Creation details for a threshold-based autoscaling policy. In a threshold-based autoscaling policy, an autoscaling action is triggered when a performance metric meets or exceeds a threshold.

func (CreateThresholdPolicyDetails) GetCapacity Uses

func (m CreateThresholdPolicyDetails) GetCapacity() *Capacity

GetCapacity returns Capacity

func (CreateThresholdPolicyDetails) GetDisplayName Uses

func (m CreateThresholdPolicyDetails) GetDisplayName() *string

GetDisplayName returns DisplayName

func (CreateThresholdPolicyDetails) MarshalJSON Uses

func (m CreateThresholdPolicyDetails) MarshalJSON() (buff []byte, e error)

MarshalJSON marshals to json representation

func (CreateThresholdPolicyDetails) String Uses

func (m CreateThresholdPolicyDetails) String() string

type DeleteAutoScalingConfigurationRequest Uses

type DeleteAutoScalingConfigurationRequest struct {

    // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the autoscaling configuration.
    AutoScalingConfigurationId *string `mandatory:"true" contributesTo:"path" name:"autoScalingConfigurationId"`

    // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
    // parameter to the value of the etag from a previous GET or POST response for that resource.  The resource
    // will be updated or deleted only if the etag you provide matches the resource's current etag value.
    IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"`

    OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`

    // Metadata about the request. This information will not be transmitted to the service, but
    // represents information that the SDK will consume to drive retry behavior.
    RequestMetadata common.RequestMetadata
}

DeleteAutoScalingConfigurationRequest wrapper for the DeleteAutoScalingConfiguration operation

func (DeleteAutoScalingConfigurationRequest) HTTPRequest Uses

func (request DeleteAutoScalingConfigurationRequest) HTTPRequest(method, path string) (http.Request, error)

HTTPRequest implements the OCIRequest interface

func (DeleteAutoScalingConfigurationRequest) RetryPolicy Uses

func (request DeleteAutoScalingConfigurationRequest) RetryPolicy() *common.RetryPolicy

RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.

func (DeleteAutoScalingConfigurationRequest) String Uses

func (request DeleteAutoScalingConfigurationRequest) String() string

type DeleteAutoScalingConfigurationResponse Uses

type DeleteAutoScalingConfigurationResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about
    // a particular request, please provide the request ID.
    OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
}

DeleteAutoScalingConfigurationResponse wrapper for the DeleteAutoScalingConfiguration operation

func (DeleteAutoScalingConfigurationResponse) HTTPResponse Uses

func (response DeleteAutoScalingConfigurationResponse) HTTPResponse() *http.Response

HTTPResponse implements the OCIResponse interface

func (DeleteAutoScalingConfigurationResponse) String Uses

func (response DeleteAutoScalingConfigurationResponse) String() string

type DeleteAutoScalingPolicyRequest Uses

type DeleteAutoScalingPolicyRequest struct {

    // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the autoscaling configuration.
    AutoScalingConfigurationId *string `mandatory:"true" contributesTo:"path" name:"autoScalingConfigurationId"`

    // The ID of the autoscaling policy.
    AutoScalingPolicyId *string `mandatory:"true" contributesTo:"path" name:"autoScalingPolicyId"`

    // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
    // parameter to the value of the etag from a previous GET or POST response for that resource.  The resource
    // will be updated or deleted only if the etag you provide matches the resource's current etag value.
    IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"`

    OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`

    // Metadata about the request. This information will not be transmitted to the service, but
    // represents information that the SDK will consume to drive retry behavior.
    RequestMetadata common.RequestMetadata
}

DeleteAutoScalingPolicyRequest wrapper for the DeleteAutoScalingPolicy operation

func (DeleteAutoScalingPolicyRequest) HTTPRequest Uses

func (request DeleteAutoScalingPolicyRequest) HTTPRequest(method, path string) (http.Request, error)

HTTPRequest implements the OCIRequest interface

func (DeleteAutoScalingPolicyRequest) RetryPolicy Uses

func (request DeleteAutoScalingPolicyRequest) RetryPolicy() *common.RetryPolicy

RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.

func (DeleteAutoScalingPolicyRequest) String Uses

func (request DeleteAutoScalingPolicyRequest) String() string

type DeleteAutoScalingPolicyResponse Uses

type DeleteAutoScalingPolicyResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about
    // a particular request, please provide the request ID.
    OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
}

DeleteAutoScalingPolicyResponse wrapper for the DeleteAutoScalingPolicy operation

func (DeleteAutoScalingPolicyResponse) HTTPResponse Uses

func (response DeleteAutoScalingPolicyResponse) HTTPResponse() *http.Response

HTTPResponse implements the OCIResponse interface

func (DeleteAutoScalingPolicyResponse) String Uses

func (response DeleteAutoScalingPolicyResponse) String() string

type GetAutoScalingConfigurationRequest Uses

type GetAutoScalingConfigurationRequest struct {

    // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the autoscaling configuration.
    AutoScalingConfigurationId *string `mandatory:"true" contributesTo:"path" name:"autoScalingConfigurationId"`

    OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`

    // Metadata about the request. This information will not be transmitted to the service, but
    // represents information that the SDK will consume to drive retry behavior.
    RequestMetadata common.RequestMetadata
}

GetAutoScalingConfigurationRequest wrapper for the GetAutoScalingConfiguration operation

func (GetAutoScalingConfigurationRequest) HTTPRequest Uses

func (request GetAutoScalingConfigurationRequest) HTTPRequest(method, path string) (http.Request, error)

HTTPRequest implements the OCIRequest interface

func (GetAutoScalingConfigurationRequest) RetryPolicy Uses

func (request GetAutoScalingConfigurationRequest) RetryPolicy() *common.RetryPolicy

RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.

func (GetAutoScalingConfigurationRequest) String Uses

func (request GetAutoScalingConfigurationRequest) String() string

type GetAutoScalingConfigurationResponse Uses

type GetAutoScalingConfigurationResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // The AutoScalingConfiguration instance
    AutoScalingConfiguration `presentIn:"body"`

    // For optimistic concurrency control. See `if-match`.
    Etag *string `presentIn:"header" name:"etag"`

    // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about
    // a particular request, please provide the request ID.
    OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
}

GetAutoScalingConfigurationResponse wrapper for the GetAutoScalingConfiguration operation

func (GetAutoScalingConfigurationResponse) HTTPResponse Uses

func (response GetAutoScalingConfigurationResponse) HTTPResponse() *http.Response

HTTPResponse implements the OCIResponse interface

func (GetAutoScalingConfigurationResponse) String Uses

func (response GetAutoScalingConfigurationResponse) String() string

type GetAutoScalingPolicyRequest Uses

type GetAutoScalingPolicyRequest struct {

    // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the autoscaling configuration.
    AutoScalingConfigurationId *string `mandatory:"true" contributesTo:"path" name:"autoScalingConfigurationId"`

    // The ID of the autoscaling policy.
    AutoScalingPolicyId *string `mandatory:"true" contributesTo:"path" name:"autoScalingPolicyId"`

    OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`

    // Metadata about the request. This information will not be transmitted to the service, but
    // represents information that the SDK will consume to drive retry behavior.
    RequestMetadata common.RequestMetadata
}

GetAutoScalingPolicyRequest wrapper for the GetAutoScalingPolicy operation

func (GetAutoScalingPolicyRequest) HTTPRequest Uses

func (request GetAutoScalingPolicyRequest) HTTPRequest(method, path string) (http.Request, error)

HTTPRequest implements the OCIRequest interface

func (GetAutoScalingPolicyRequest) RetryPolicy Uses

func (request GetAutoScalingPolicyRequest) RetryPolicy() *common.RetryPolicy

RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.

func (GetAutoScalingPolicyRequest) String Uses

func (request GetAutoScalingPolicyRequest) String() string

type GetAutoScalingPolicyResponse Uses

type GetAutoScalingPolicyResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // The AutoScalingPolicy instance
    AutoScalingPolicy `presentIn:"body"`

    // For optimistic concurrency control. See `if-match`.
    Etag *string `presentIn:"header" name:"etag"`

    // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about
    // a particular request, please provide the request ID.
    OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
}

GetAutoScalingPolicyResponse wrapper for the GetAutoScalingPolicy operation

func (GetAutoScalingPolicyResponse) HTTPResponse Uses

func (response GetAutoScalingPolicyResponse) HTTPResponse() *http.Response

HTTPResponse implements the OCIResponse interface

func (GetAutoScalingPolicyResponse) String Uses

func (response GetAutoScalingPolicyResponse) String() string

type InstancePoolResource Uses

type InstancePoolResource struct {

    // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the resource that is managed by the autoscaling configuration.
    Id *string `mandatory:"true" json:"id"`
}

InstancePoolResource A Compute instance pool.

func (InstancePoolResource) GetId Uses

func (m InstancePoolResource) GetId() *string

GetId returns Id

func (InstancePoolResource) MarshalJSON Uses

func (m InstancePoolResource) MarshalJSON() (buff []byte, e error)

MarshalJSON marshals to json representation

func (InstancePoolResource) String Uses

func (m InstancePoolResource) String() string

type ListAutoScalingConfigurationsRequest Uses

type ListAutoScalingConfigurationsRequest struct {

    // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment containing the
    // resources monitored by the metric that you are searching for. Use tenancyId to search in
    // the root compartment.
    CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"`

    // A filter to return only resources that match the given display name exactly.
    DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"`

    OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`

    // For list pagination. The maximum number of items to return in a paginated "List" call. For important details
    // about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
    Limit *int `mandatory:"false" contributesTo:"query" name:"limit"`

    // For list pagination. The value of the `opc-next-page` response header from the previous "List" call. For important
    // details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
    Page *string `mandatory:"false" contributesTo:"query" name:"page"`

    // The field to sort by. You can provide one sort order (`sortOrder`). Default order for
    // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME
    // sort order is case sensitive.
    SortBy ListAutoScalingConfigurationsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"`

    // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order
    // is case sensitive.
    SortOrder ListAutoScalingConfigurationsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"`

    // Metadata about the request. This information will not be transmitted to the service, but
    // represents information that the SDK will consume to drive retry behavior.
    RequestMetadata common.RequestMetadata
}

ListAutoScalingConfigurationsRequest wrapper for the ListAutoScalingConfigurations operation

func (ListAutoScalingConfigurationsRequest) HTTPRequest Uses

func (request ListAutoScalingConfigurationsRequest) HTTPRequest(method, path string) (http.Request, error)

HTTPRequest implements the OCIRequest interface

func (ListAutoScalingConfigurationsRequest) RetryPolicy Uses

func (request ListAutoScalingConfigurationsRequest) RetryPolicy() *common.RetryPolicy

RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.

func (ListAutoScalingConfigurationsRequest) String Uses

func (request ListAutoScalingConfigurationsRequest) String() string

type ListAutoScalingConfigurationsResponse Uses

type ListAutoScalingConfigurationsResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // A list of []AutoScalingConfigurationSummary instances
    Items []AutoScalingConfigurationSummary `presentIn:"body"`

    // For list pagination. When this header appears in the response, additional pages of results remain.
    // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
    OpcNextPage *string `presentIn:"header" name:"opc-next-page"`

    // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about
    // a particular request, please provide the request ID.
    OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
}

ListAutoScalingConfigurationsResponse wrapper for the ListAutoScalingConfigurations operation

func (ListAutoScalingConfigurationsResponse) HTTPResponse Uses

func (response ListAutoScalingConfigurationsResponse) HTTPResponse() *http.Response

HTTPResponse implements the OCIResponse interface

func (ListAutoScalingConfigurationsResponse) String Uses

func (response ListAutoScalingConfigurationsResponse) String() string

type ListAutoScalingConfigurationsSortByEnum Uses

type ListAutoScalingConfigurationsSortByEnum string

ListAutoScalingConfigurationsSortByEnum Enum with underlying type: string

const (
    ListAutoScalingConfigurationsSortByTimecreated ListAutoScalingConfigurationsSortByEnum = "TIMECREATED"
    ListAutoScalingConfigurationsSortByDisplayname ListAutoScalingConfigurationsSortByEnum = "DISPLAYNAME"
)

Set of constants representing the allowable values for ListAutoScalingConfigurationsSortByEnum

func GetListAutoScalingConfigurationsSortByEnumValues Uses

func GetListAutoScalingConfigurationsSortByEnumValues() []ListAutoScalingConfigurationsSortByEnum

GetListAutoScalingConfigurationsSortByEnumValues Enumerates the set of values for ListAutoScalingConfigurationsSortByEnum

type ListAutoScalingConfigurationsSortOrderEnum Uses

type ListAutoScalingConfigurationsSortOrderEnum string

ListAutoScalingConfigurationsSortOrderEnum Enum with underlying type: string

const (
    ListAutoScalingConfigurationsSortOrderAsc  ListAutoScalingConfigurationsSortOrderEnum = "ASC"
    ListAutoScalingConfigurationsSortOrderDesc ListAutoScalingConfigurationsSortOrderEnum = "DESC"
)

Set of constants representing the allowable values for ListAutoScalingConfigurationsSortOrderEnum

func GetListAutoScalingConfigurationsSortOrderEnumValues Uses

func GetListAutoScalingConfigurationsSortOrderEnumValues() []ListAutoScalingConfigurationsSortOrderEnum

GetListAutoScalingConfigurationsSortOrderEnumValues Enumerates the set of values for ListAutoScalingConfigurationsSortOrderEnum

type ListAutoScalingPoliciesRequest Uses

type ListAutoScalingPoliciesRequest struct {

    // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the autoscaling configuration.
    AutoScalingConfigurationId *string `mandatory:"true" contributesTo:"path" name:"autoScalingConfigurationId"`

    // A filter to return only resources that match the given display name exactly.
    DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"`

    OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`

    // For list pagination. The maximum number of items to return in a paginated "List" call. For important details
    // about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
    Limit *int `mandatory:"false" contributesTo:"query" name:"limit"`

    // For list pagination. The value of the `opc-next-page` response header from the previous "List" call. For important
    // details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
    Page *string `mandatory:"false" contributesTo:"query" name:"page"`

    // The field to sort by. You can provide one sort order (`sortOrder`). Default order for
    // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME
    // sort order is case sensitive.
    SortBy ListAutoScalingPoliciesSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"`

    // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order
    // is case sensitive.
    SortOrder ListAutoScalingPoliciesSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"`

    // Metadata about the request. This information will not be transmitted to the service, but
    // represents information that the SDK will consume to drive retry behavior.
    RequestMetadata common.RequestMetadata
}

ListAutoScalingPoliciesRequest wrapper for the ListAutoScalingPolicies operation

func (ListAutoScalingPoliciesRequest) HTTPRequest Uses

func (request ListAutoScalingPoliciesRequest) HTTPRequest(method, path string) (http.Request, error)

HTTPRequest implements the OCIRequest interface

func (ListAutoScalingPoliciesRequest) RetryPolicy Uses

func (request ListAutoScalingPoliciesRequest) RetryPolicy() *common.RetryPolicy

RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.

func (ListAutoScalingPoliciesRequest) String Uses

func (request ListAutoScalingPoliciesRequest) String() string

type ListAutoScalingPoliciesResponse Uses

type ListAutoScalingPoliciesResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // A list of []AutoScalingPolicySummary instances
    Items []AutoScalingPolicySummary `presentIn:"body"`

    // For list pagination. When this header appears in the response, additional pages of results remain.
    // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
    OpcNextPage *string `presentIn:"header" name:"opc-next-page"`

    // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about
    // a particular request, please provide the request ID.
    OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
}

ListAutoScalingPoliciesResponse wrapper for the ListAutoScalingPolicies operation

func (ListAutoScalingPoliciesResponse) HTTPResponse Uses

func (response ListAutoScalingPoliciesResponse) HTTPResponse() *http.Response

HTTPResponse implements the OCIResponse interface

func (ListAutoScalingPoliciesResponse) String Uses

func (response ListAutoScalingPoliciesResponse) String() string

type ListAutoScalingPoliciesSortByEnum Uses

type ListAutoScalingPoliciesSortByEnum string

ListAutoScalingPoliciesSortByEnum Enum with underlying type: string

const (
    ListAutoScalingPoliciesSortByTimecreated ListAutoScalingPoliciesSortByEnum = "TIMECREATED"
    ListAutoScalingPoliciesSortByDisplayname ListAutoScalingPoliciesSortByEnum = "DISPLAYNAME"
)

Set of constants representing the allowable values for ListAutoScalingPoliciesSortByEnum

func GetListAutoScalingPoliciesSortByEnumValues Uses

func GetListAutoScalingPoliciesSortByEnumValues() []ListAutoScalingPoliciesSortByEnum

GetListAutoScalingPoliciesSortByEnumValues Enumerates the set of values for ListAutoScalingPoliciesSortByEnum

type ListAutoScalingPoliciesSortOrderEnum Uses

type ListAutoScalingPoliciesSortOrderEnum string

ListAutoScalingPoliciesSortOrderEnum Enum with underlying type: string

const (
    ListAutoScalingPoliciesSortOrderAsc  ListAutoScalingPoliciesSortOrderEnum = "ASC"
    ListAutoScalingPoliciesSortOrderDesc ListAutoScalingPoliciesSortOrderEnum = "DESC"
)

Set of constants representing the allowable values for ListAutoScalingPoliciesSortOrderEnum

func GetListAutoScalingPoliciesSortOrderEnumValues Uses

func GetListAutoScalingPoliciesSortOrderEnumValues() []ListAutoScalingPoliciesSortOrderEnum

GetListAutoScalingPoliciesSortOrderEnumValues Enumerates the set of values for ListAutoScalingPoliciesSortOrderEnum

type Metric Uses

type Metric struct {
    MetricType MetricMetricTypeEnum `mandatory:"true" json:"metricType"`

    Threshold *Threshold `mandatory:"true" json:"threshold"`
}

Metric Metric and threshold details for triggering an autoscaling action.

func (Metric) String Uses

func (m Metric) String() string

type MetricMetricTypeEnum Uses

type MetricMetricTypeEnum string

MetricMetricTypeEnum Enum with underlying type: string

const (
    MetricMetricTypeCpuUtilization    MetricMetricTypeEnum = "CPU_UTILIZATION"
    MetricMetricTypeMemoryUtilization MetricMetricTypeEnum = "MEMORY_UTILIZATION"
)

Set of constants representing the allowable values for MetricMetricTypeEnum

func GetMetricMetricTypeEnumValues Uses

func GetMetricMetricTypeEnumValues() []MetricMetricTypeEnum

GetMetricMetricTypeEnumValues Enumerates the set of values for MetricMetricTypeEnum

type Resource Uses

type Resource interface {

    // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the resource that is managed by the autoscaling configuration.
    GetId() *string
}

Resource A resource that is managed by an autoscaling configuration. The only supported type is "instancePool." Each instance pool can have one autoscaling configuration.

type Threshold Uses

type Threshold struct {

    // The comparison operator to use. Options are greater than (`GT`), greater than or equal to
    // (`GTE`), less than (`LT`), and less than or equal to (`LTE`).
    Operator ThresholdOperatorEnum `mandatory:"true" json:"operator"`

    Value *int `mandatory:"true" json:"value"`
}

Threshold The representation of Threshold

func (Threshold) String Uses

func (m Threshold) String() string

type ThresholdOperatorEnum Uses

type ThresholdOperatorEnum string

ThresholdOperatorEnum Enum with underlying type: string

const (
    ThresholdOperatorGt  ThresholdOperatorEnum = "GT"
    ThresholdOperatorGte ThresholdOperatorEnum = "GTE"
    ThresholdOperatorLt  ThresholdOperatorEnum = "LT"
    ThresholdOperatorLte ThresholdOperatorEnum = "LTE"
)

Set of constants representing the allowable values for ThresholdOperatorEnum

func GetThresholdOperatorEnumValues Uses

func GetThresholdOperatorEnumValues() []ThresholdOperatorEnum

GetThresholdOperatorEnumValues Enumerates the set of values for ThresholdOperatorEnum

type ThresholdPolicy Uses

type ThresholdPolicy struct {

    // The capacity requirements of the autoscaling policy.
    Capacity *Capacity `mandatory:"true" json:"capacity"`

    // The date and time the autoscaling configuration was created, in the format defined by RFC3339.
    // Example: `2016-08-25T21:10:29.600Z`
    TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"`

    Rules []Condition `mandatory:"true" json:"rules"`

    // The ID of the autoscaling policy that is assigned after creation.
    Id  *string `mandatory:"false" json:"id"`

    // A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    DisplayName *string `mandatory:"false" json:"displayName"`
}

ThresholdPolicy An autoscaling policy that defines threshold-based rules for an autoscaling configuration.

func (ThresholdPolicy) GetCapacity Uses

func (m ThresholdPolicy) GetCapacity() *Capacity

GetCapacity returns Capacity

func (ThresholdPolicy) GetDisplayName Uses

func (m ThresholdPolicy) GetDisplayName() *string

GetDisplayName returns DisplayName

func (ThresholdPolicy) GetId Uses

func (m ThresholdPolicy) GetId() *string

GetId returns Id

func (ThresholdPolicy) GetTimeCreated Uses

func (m ThresholdPolicy) GetTimeCreated() *common.SDKTime

GetTimeCreated returns TimeCreated

func (ThresholdPolicy) MarshalJSON Uses

func (m ThresholdPolicy) MarshalJSON() (buff []byte, e error)

MarshalJSON marshals to json representation

func (ThresholdPolicy) String Uses

func (m ThresholdPolicy) String() string

type UpdateAutoScalingConfigurationDetails Uses

type UpdateAutoScalingConfigurationDetails struct {

    // Defined tags for this resource. Each key is predefined and scoped to a
    // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm).
    // Example: `{"Operations": {"CostCenter": "42"}}`
    DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`

    // A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    DisplayName *string `mandatory:"false" json:"displayName"`

    // Free-form tags for this resource. Each tag is a simple key-value pair with no
    // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm).
    // Example: `{"Department": "Finance"}`
    FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`

    // Whether the autoscaling configuration is enabled.
    IsEnabled *bool `mandatory:"false" json:"isEnabled"`

    // The minimum period of time to wait between scaling actions. The cooldown period gives the system time
    // to stabilize before rescaling. The minimum value is 300 seconds, which is also the default.
    CoolDownInSeconds *int `mandatory:"false" json:"coolDownInSeconds"`
}

UpdateAutoScalingConfigurationDetails The representation of UpdateAutoScalingConfigurationDetails

func (UpdateAutoScalingConfigurationDetails) String Uses

func (m UpdateAutoScalingConfigurationDetails) String() string

type UpdateAutoScalingConfigurationRequest Uses

type UpdateAutoScalingConfigurationRequest struct {

    // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the autoscaling configuration.
    AutoScalingConfigurationId *string `mandatory:"true" contributesTo:"path" name:"autoScalingConfigurationId"`

    // Update details for an autoscaling configuration.
    UpdateAutoScalingConfigurationDetails `contributesTo:"body"`

    // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
    // parameter to the value of the etag from a previous GET or POST response for that resource.  The resource
    // will be updated or deleted only if the etag you provide matches the resource's current etag value.
    IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"`

    OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`

    // A token that uniquely identifies a request so it can be retried in case of a timeout or
    // server error without risk of executing that same action again. Retry tokens expire after 24
    // hours, but can be invalidated before then due to conflicting operations (for example, if a resource
    // has been deleted and purged from the system, then a retry of the original creation request
    // may be rejected).
    OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"`

    // Metadata about the request. This information will not be transmitted to the service, but
    // represents information that the SDK will consume to drive retry behavior.
    RequestMetadata common.RequestMetadata
}

UpdateAutoScalingConfigurationRequest wrapper for the UpdateAutoScalingConfiguration operation

func (UpdateAutoScalingConfigurationRequest) HTTPRequest Uses

func (request UpdateAutoScalingConfigurationRequest) HTTPRequest(method, path string) (http.Request, error)

HTTPRequest implements the OCIRequest interface

func (UpdateAutoScalingConfigurationRequest) RetryPolicy Uses

func (request UpdateAutoScalingConfigurationRequest) RetryPolicy() *common.RetryPolicy

RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.

func (UpdateAutoScalingConfigurationRequest) String Uses

func (request UpdateAutoScalingConfigurationRequest) String() string

type UpdateAutoScalingConfigurationResponse Uses

type UpdateAutoScalingConfigurationResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // The AutoScalingConfiguration instance
    AutoScalingConfiguration `presentIn:"body"`

    // For optimistic concurrency control. See `if-match`.
    Etag *string `presentIn:"header" name:"etag"`

    // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about
    // a particular request, please provide the request ID.
    OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
}

UpdateAutoScalingConfigurationResponse wrapper for the UpdateAutoScalingConfiguration operation

func (UpdateAutoScalingConfigurationResponse) HTTPResponse Uses

func (response UpdateAutoScalingConfigurationResponse) HTTPResponse() *http.Response

HTTPResponse implements the OCIResponse interface

func (UpdateAutoScalingConfigurationResponse) String Uses

func (response UpdateAutoScalingConfigurationResponse) String() string

type UpdateAutoScalingPolicyDetails Uses

type UpdateAutoScalingPolicyDetails interface {

    // A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    GetDisplayName() *string

    // The capacity requirements of the autoscaling policy.
    GetCapacity() *Capacity
}

UpdateAutoScalingPolicyDetails The representation of UpdateAutoScalingPolicyDetails

type UpdateAutoScalingPolicyRequest Uses

type UpdateAutoScalingPolicyRequest struct {

    // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the autoscaling configuration.
    AutoScalingConfigurationId *string `mandatory:"true" contributesTo:"path" name:"autoScalingConfigurationId"`

    // The ID of the autoscaling policy.
    AutoScalingPolicyId *string `mandatory:"true" contributesTo:"path" name:"autoScalingPolicyId"`

    // Update details for an autoscaling policy.
    UpdateAutoScalingPolicyDetails `contributesTo:"body"`

    // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
    // parameter to the value of the etag from a previous GET or POST response for that resource.  The resource
    // will be updated or deleted only if the etag you provide matches the resource's current etag value.
    IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"`

    OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`

    // A token that uniquely identifies a request so it can be retried in case of a timeout or
    // server error without risk of executing that same action again. Retry tokens expire after 24
    // hours, but can be invalidated before then due to conflicting operations (for example, if a resource
    // has been deleted and purged from the system, then a retry of the original creation request
    // may be rejected).
    OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"`

    // Metadata about the request. This information will not be transmitted to the service, but
    // represents information that the SDK will consume to drive retry behavior.
    RequestMetadata common.RequestMetadata
}

UpdateAutoScalingPolicyRequest wrapper for the UpdateAutoScalingPolicy operation

func (UpdateAutoScalingPolicyRequest) HTTPRequest Uses

func (request UpdateAutoScalingPolicyRequest) HTTPRequest(method, path string) (http.Request, error)

HTTPRequest implements the OCIRequest interface

func (UpdateAutoScalingPolicyRequest) RetryPolicy Uses

func (request UpdateAutoScalingPolicyRequest) RetryPolicy() *common.RetryPolicy

RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.

func (UpdateAutoScalingPolicyRequest) String Uses

func (request UpdateAutoScalingPolicyRequest) String() string

type UpdateAutoScalingPolicyResponse Uses

type UpdateAutoScalingPolicyResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // The AutoScalingPolicy instance
    AutoScalingPolicy `presentIn:"body"`

    // For optimistic concurrency control. See `if-match`.
    Etag *string `presentIn:"header" name:"etag"`

    // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about
    // a particular request, please provide the request ID.
    OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
}

UpdateAutoScalingPolicyResponse wrapper for the UpdateAutoScalingPolicy operation

func (UpdateAutoScalingPolicyResponse) HTTPResponse Uses

func (response UpdateAutoScalingPolicyResponse) HTTPResponse() *http.Response

HTTPResponse implements the OCIResponse interface

func (UpdateAutoScalingPolicyResponse) String Uses

func (response UpdateAutoScalingPolicyResponse) String() string

type UpdateConditionDetails Uses

type UpdateConditionDetails struct {
    Action *Action `mandatory:"true" json:"action"`

    Metric *Metric `mandatory:"true" json:"metric"`

    // A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    DisplayName *string `mandatory:"false" json:"displayName"`
}

UpdateConditionDetails Update details for a condition in a threshold-based autoscaling policy.

func (UpdateConditionDetails) String Uses

func (m UpdateConditionDetails) String() string

type UpdateThresholdPolicyDetails Uses

type UpdateThresholdPolicyDetails struct {

    // A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    DisplayName *string `mandatory:"false" json:"displayName"`

    // The capacity requirements of the autoscaling policy.
    Capacity *Capacity `mandatory:"false" json:"capacity"`

    Rules []UpdateConditionDetails `mandatory:"false" json:"rules"`
}

UpdateThresholdPolicyDetails The representation of UpdateThresholdPolicyDetails

func (UpdateThresholdPolicyDetails) GetCapacity Uses

func (m UpdateThresholdPolicyDetails) GetCapacity() *Capacity

GetCapacity returns Capacity

func (UpdateThresholdPolicyDetails) GetDisplayName Uses

func (m UpdateThresholdPolicyDetails) GetDisplayName() *string

GetDisplayName returns DisplayName

func (UpdateThresholdPolicyDetails) MarshalJSON Uses

func (m UpdateThresholdPolicyDetails) MarshalJSON() (buff []byte, e error)

MarshalJSON marshals to json representation

func (UpdateThresholdPolicyDetails) String Uses

func (m UpdateThresholdPolicyDetails) String() string

Package autoscaling imports 5 packages (graph) and is imported by 2 packages. Updated 2020-04-07. Refresh now. Tools for package owners.