gogol-autoscaler-0.0.1: Google Compute Engine Autoscaler SDK.

Copyright(c) 2015 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.Google.Autoscaler.Types

Contents

Description

 

Synopsis

Service Configuration

autoscalerService :: Service Source

Default request referring to version v1beta2 of the Google Compute Engine Autoscaler API. This contains the host and root path used as a starting point for constructing service requests.

OAuth Scopes

computeScope :: OAuthScope Source

View and manage your Google Compute Engine resources

computeReadonlyScope :: OAuthScope Source

View your Google Compute Engine resources

OperationWarningsItemDataItem

operationWarningsItemDataItem :: OperationWarningsItemDataItem Source

Creates a value of OperationWarningsItemDataItem with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

DeprecationStatus

deprecationStatus :: DeprecationStatus Source

Creates a value of DeprecationStatus with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

AutoscalingPolicyCustomMetricUtilization

autoscalingPolicyCustomMetricUtilization :: AutoscalingPolicyCustomMetricUtilization Source

Creates a value of AutoscalingPolicyCustomMetricUtilization with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

apcmuUtilizationTarget :: Lens' AutoscalingPolicyCustomMetricUtilization (Maybe Double) Source

Target value of the metric which Autoscaler should maintain. Must be a positive value.

apcmuMetric :: Lens' AutoscalingPolicyCustomMetricUtilization (Maybe Text) Source

Identifier of the metric. It should be a Cloud Monitoring metric. The metric can not have negative values. The metric should be an utilization metric (increasing number of VMs handling requests x times should reduce average value of the metric roughly x times). For example you could use: compute.googleapis.com/instance/network/received_bytes_count.

apcmuUtilizationTargetType :: Lens' AutoscalingPolicyCustomMetricUtilization (Maybe Text) Source

Defines type in which utilization_target is expressed.

OperationList

operationList :: OperationList Source

Creates a value of OperationList with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

olKind :: Lens' OperationList Text Source

Output Only
Type of resource. Always compute#operations for Operations resource.

Operation

oKind :: Lens' Operation Text Source

Output Only
Type of the resource. Always compute#Operation for Operation resources.

AutoscalingPolicyLoadBalancingUtilization

autoscalingPolicyLoadBalancingUtilization :: AutoscalingPolicyLoadBalancingUtilization Source

Creates a value of AutoscalingPolicyLoadBalancingUtilization with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

aplbuUtilizationTarget :: Lens' AutoscalingPolicyLoadBalancingUtilization (Maybe Double) Source

Fraction of backend capacity utilization (set in HTTP load balancing configuration) that Autoscaler should maintain. Must be a positive float value. If not defined, the default is 0.8. For example if your maxRatePerInstance capacity (in HTTP Load Balancing configuration) is set at 10 and you would like to keep number of instances such that each instance receives 7 QPS on average, set this to 0.7.

Zone

zone :: Zone Source

Creates a value of Zone with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

zKind :: Lens' Zone Text Source

Output Only
Type of the resource. Always kind#zone for zones.

zSelfLink :: Lens' Zone (Maybe Text) Source

Output Only
Server defined URL for the resource.

ZoneMaintenanceWindowsItem

zoneMaintenanceWindowsItem :: ZoneMaintenanceWindowsItem Source

Creates a value of ZoneMaintenanceWindowsItem with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

ZoneList

zoneList :: ZoneList Source

Creates a value of ZoneList with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

zlKind :: Lens' ZoneList Text Source

Type of resource.

zlSelfLink :: Lens' ZoneList (Maybe Text) Source

Server defined URL for this resource (output only).

AutoscalerListResponse

autoscalerListResponse :: AutoscalerListResponse Source

Creates a value of AutoscalerListResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

alrNextPageToken :: Lens' AutoscalerListResponse (Maybe Text) Source

Output only
A token used to continue a truncated list request.

AutoscalingPolicy

autoscalingPolicy :: AutoscalingPolicy Source

Creates a value of AutoscalingPolicy with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

apCustomMetricUtilizations :: Lens' AutoscalingPolicy [AutoscalingPolicyCustomMetricUtilization] Source

Configuration parameters of autoscaling based on custom metric.

apMaxNumReplicas :: Lens' AutoscalingPolicy (Maybe Int32) Source

The maximum number of replicas that the Autoscaler can scale up to.

apCPUUtilization :: Lens' AutoscalingPolicy (Maybe AutoscalingPolicyCPUUtilization) Source

Exactly one utilization policy should be provided. Configuration parameters of CPU based autoscaling policy.

apLoadBalancingUtilization :: Lens' AutoscalingPolicy (Maybe AutoscalingPolicyLoadBalancingUtilization) Source

Configuration parameters of autoscaling based on load balancer.

apMinNumReplicas :: Lens' AutoscalingPolicy (Maybe Int32) Source

The minimum number of replicas that the Autoscaler can scale down to.

apCoolDownPeriodSec :: Lens' AutoscalingPolicy (Maybe Int32) Source

The number of seconds that the Autoscaler should wait between two succeeding changes to the number of virtual machines. You should define an interval that is at least as long as the initialization time of a virtual machine and the time it may take for replica pool to create the virtual machine. The default is 60 seconds.

OperationError

operationError :: OperationError Source

Creates a value of OperationError with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

Autoscaler

autoscaler :: Autoscaler Source

Creates a value of Autoscaler with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

aKind :: Lens' Autoscaler Text Source

Type of resource.

aSelfLink :: Lens' Autoscaler (Maybe Text) Source

Output Only
A self-link to the Autoscaler configuration resource.

aName :: Lens' Autoscaler (Maybe Text) Source

Name of the Autoscaler resource. Must be unique per project and zone.

aCreationTimestamp :: Lens' Autoscaler (Maybe Text) Source

Output Only
Creation timestamp in RFC3339 text format.

aAutoscalingPolicy :: Lens' Autoscaler (Maybe AutoscalingPolicy) Source

Configuration parameters for autoscaling algorithm.

aId :: Lens' Autoscaler (Maybe Word64) Source

Output Only
Unique identifier for the resource; defined by the server.

aDescription :: Lens' Autoscaler (Maybe Text) Source

An optional textual description of the resource provided by the client.

aTarget :: Lens' Autoscaler (Maybe Text) Source

URL to the entity which will be autoscaled. Currently the only supported value is ReplicaPool?s URL. Note: it is illegal to specify multiple Autoscalers for the same target.

OperationErrorErrorsItem

operationErrorErrorsItem :: OperationErrorErrorsItem Source

Creates a value of OperationErrorErrorsItem with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

AutoscalingPolicyCPUUtilization

autoscalingPolicyCPUUtilization :: AutoscalingPolicyCPUUtilization Source

Creates a value of AutoscalingPolicyCPUUtilization with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

apcuUtilizationTarget :: Lens' AutoscalingPolicyCPUUtilization (Maybe Double) Source

The target utilization that the Autoscaler should maintain. It is represented as a fraction of used cores. For example: 6 cores used in 8-core VM are represented here as 0.75. Must be a float value between (0, 1]. If not defined, the default is 0.8.

OperationWarningsItem

operationWarningsItem :: OperationWarningsItem Source

Creates a value of OperationWarningsItem with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired: