Copyright | (c) 2015-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
- Service Configuration
- OAuth Scopes
- API Declaration
- Resources
- Types
- OperationWarningsItemDataItem
- DeprecationStatus
- AutoscalingPolicyCustomMetricUtilization
- OperationList
- Operation
- AutoscalingPolicyLoadBalancingUtilization
- Zone
- ZoneList
- AutoscalerListResponse
- AutoscalingPolicy
- OperationError
- Autoscaler
- OperationErrorErrorsItem
- AutoscalingPolicyCPUUtilization
- OperationWarningsItem
The Google Compute Engine Autoscaler API provides autoscaling for groups of Cloud VMs.
- autoscalerService :: ServiceConfig
- computeScope :: Proxy '["https://www.googleapis.com/auth/compute"]
- computeReadOnlyScope :: Proxy '["https://www.googleapis.com/auth/compute.readonly"]
- type AutoscalerAPI = ZonesListResource :<|> (AutoscalersInsertResource :<|> (AutoscalersListResource :<|> (AutoscalersPatchResource :<|> (AutoscalersGetResource :<|> (AutoscalersDeleteResource :<|> (AutoscalersUpdateResource :<|> (ZoneOperationsListResource :<|> (ZoneOperationsGetResource :<|> ZoneOperationsDeleteResource))))))))
- module Network.Google.Resource.Autoscaler.Autoscalers.Delete
- module Network.Google.Resource.Autoscaler.Autoscalers.Get
- module Network.Google.Resource.Autoscaler.Autoscalers.Insert
- module Network.Google.Resource.Autoscaler.Autoscalers.List
- module Network.Google.Resource.Autoscaler.Autoscalers.Patch
- module Network.Google.Resource.Autoscaler.Autoscalers.Update
- module Network.Google.Resource.Autoscaler.ZoneOperations.Delete
- module Network.Google.Resource.Autoscaler.ZoneOperations.Get
- module Network.Google.Resource.Autoscaler.ZoneOperations.List
- module Network.Google.Resource.Autoscaler.Zones.List
- data OperationWarningsItemDataItem
- operationWarningsItemDataItem :: OperationWarningsItemDataItem
- owidiValue :: Lens' OperationWarningsItemDataItem (Maybe Text)
- owidiKey :: Lens' OperationWarningsItemDataItem (Maybe Text)
- data DeprecationStatus
- deprecationStatus :: DeprecationStatus
- dsState :: Lens' DeprecationStatus (Maybe Text)
- dsDeleted :: Lens' DeprecationStatus (Maybe Text)
- dsReplacement :: Lens' DeprecationStatus (Maybe Text)
- dsObsolete :: Lens' DeprecationStatus (Maybe Text)
- dsDeprecated :: Lens' DeprecationStatus (Maybe Text)
- data AutoscalingPolicyCustomMetricUtilization
- autoscalingPolicyCustomMetricUtilization :: AutoscalingPolicyCustomMetricUtilization
- apcmuUtilizationTarget :: Lens' AutoscalingPolicyCustomMetricUtilization (Maybe Double)
- apcmuMetric :: Lens' AutoscalingPolicyCustomMetricUtilization (Maybe Text)
- apcmuUtilizationTargetType :: Lens' AutoscalingPolicyCustomMetricUtilization (Maybe Text)
- data OperationList
- operationList :: OperationList
- olNextPageToken :: Lens' OperationList (Maybe Text)
- olKind :: Lens' OperationList Text
- olItems :: Lens' OperationList [Operation]
- olSelfLink :: Lens' OperationList (Maybe Text)
- olId :: Lens' OperationList (Maybe Text)
- data Operation
- operation :: Operation
- oTargetId :: Lens' Operation (Maybe Word64)
- oStatus :: Lens' Operation (Maybe Text)
- oInsertTime :: Lens' Operation (Maybe Text)
- oProgress :: Lens' Operation (Maybe Int32)
- oStartTime :: Lens' Operation (Maybe Text)
- oKind :: Lens' Operation Text
- oError :: Lens' Operation (Maybe OperationError)
- oHTTPErrorMessage :: Lens' Operation (Maybe Text)
- oZone :: Lens' Operation (Maybe Text)
- oWarnings :: Lens' Operation [OperationWarningsItem]
- oHTTPErrorStatusCode :: Lens' Operation (Maybe Int32)
- oUser :: Lens' Operation (Maybe Text)
- oSelfLink :: Lens' Operation (Maybe Text)
- oName :: Lens' Operation (Maybe Text)
- oStatusMessage :: Lens' Operation (Maybe Text)
- oCreationTimestamp :: Lens' Operation (Maybe Text)
- oEndTime :: Lens' Operation (Maybe Text)
- oId :: Lens' Operation (Maybe Word64)
- oOperationType :: Lens' Operation (Maybe Text)
- oRegion :: Lens' Operation (Maybe Text)
- oDescription :: Lens' Operation (Maybe Text)
- oTargetLink :: Lens' Operation (Maybe Text)
- oClientOperationId :: Lens' Operation (Maybe Text)
- data AutoscalingPolicyLoadBalancingUtilization
- autoscalingPolicyLoadBalancingUtilization :: AutoscalingPolicyLoadBalancingUtilization
- aplbuUtilizationTarget :: Lens' AutoscalingPolicyLoadBalancingUtilization (Maybe Double)
- data Zone
- zone :: Zone
- zStatus :: Lens' Zone (Maybe Text)
- zKind :: Lens' Zone Text
- zSelfLink :: Lens' Zone (Maybe Text)
- zName :: Lens' Zone (Maybe Text)
- zCreationTimestamp :: Lens' Zone (Maybe Text)
- zId :: Lens' Zone (Maybe Word64)
- zRegion :: Lens' Zone (Maybe Text)
- zDescription :: Lens' Zone (Maybe Text)
- zDeprecated :: Lens' Zone (Maybe DeprecationStatus)
- data ZoneList
- zoneList :: ZoneList
- zlNextPageToken :: Lens' ZoneList (Maybe Text)
- zlKind :: Lens' ZoneList Text
- zlItems :: Lens' ZoneList [Zone]
- zlSelfLink :: Lens' ZoneList (Maybe Text)
- zlId :: Lens' ZoneList (Maybe Text)
- data AutoscalerListResponse
- autoscalerListResponse :: AutoscalerListResponse
- alrNextPageToken :: Lens' AutoscalerListResponse (Maybe Text)
- alrKind :: Lens' AutoscalerListResponse Text
- alrItems :: Lens' AutoscalerListResponse [Autoscaler]
- data AutoscalingPolicy
- autoscalingPolicy :: AutoscalingPolicy
- apCustomMetricUtilizations :: Lens' AutoscalingPolicy [AutoscalingPolicyCustomMetricUtilization]
- apMaxNumReplicas :: Lens' AutoscalingPolicy (Maybe Int32)
- apCPUUtilization :: Lens' AutoscalingPolicy (Maybe AutoscalingPolicyCPUUtilization)
- apLoadBalancingUtilization :: Lens' AutoscalingPolicy (Maybe AutoscalingPolicyLoadBalancingUtilization)
- apMinNumReplicas :: Lens' AutoscalingPolicy (Maybe Int32)
- apCoolDownPeriodSec :: Lens' AutoscalingPolicy (Maybe Int32)
- data OperationError
- operationError :: OperationError
- oeErrors :: Lens' OperationError [OperationErrorErrorsItem]
- data Autoscaler
- autoscaler :: Autoscaler
- aKind :: Lens' Autoscaler Text
- aSelfLink :: Lens' Autoscaler (Maybe Text)
- aName :: Lens' Autoscaler (Maybe Text)
- aCreationTimestamp :: Lens' Autoscaler (Maybe Text)
- aAutoscalingPolicy :: Lens' Autoscaler (Maybe AutoscalingPolicy)
- aId :: Lens' Autoscaler (Maybe Word64)
- aDescription :: Lens' Autoscaler (Maybe Text)
- aTarget :: Lens' Autoscaler (Maybe Text)
- data OperationErrorErrorsItem
- operationErrorErrorsItem :: OperationErrorErrorsItem
- oeeiLocation :: Lens' OperationErrorErrorsItem (Maybe Text)
- oeeiCode :: Lens' OperationErrorErrorsItem (Maybe Text)
- oeeiMessage :: Lens' OperationErrorErrorsItem (Maybe Text)
- data AutoscalingPolicyCPUUtilization
- autoscalingPolicyCPUUtilization :: AutoscalingPolicyCPUUtilization
- apcuUtilizationTarget :: Lens' AutoscalingPolicyCPUUtilization (Maybe Double)
- data OperationWarningsItem
- operationWarningsItem :: OperationWarningsItem
- owiData :: Lens' OperationWarningsItem [OperationWarningsItemDataItem]
- owiCode :: Lens' OperationWarningsItem (Maybe Text)
- owiMessage :: Lens' OperationWarningsItem (Maybe Text)
Service Configuration
autoscalerService :: ServiceConfig 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 :: Proxy '["https://www.googleapis.com/auth/compute"] Source #
View and manage your Google Compute Engine resources
computeReadOnlyScope :: Proxy '["https://www.googleapis.com/auth/compute.readonly"] Source #
View your Google Compute Engine resources
API Declaration
type AutoscalerAPI = ZonesListResource :<|> (AutoscalersInsertResource :<|> (AutoscalersListResource :<|> (AutoscalersPatchResource :<|> (AutoscalersGetResource :<|> (AutoscalersDeleteResource :<|> (AutoscalersUpdateResource :<|> (ZoneOperationsListResource :<|> (ZoneOperationsGetResource :<|> ZoneOperationsDeleteResource)))))))) Source #
Represents the entirety of the methods and resources available for the Google Compute Engine Autoscaler API service.
Resources
autoscaler.autoscalers.delete
autoscaler.autoscalers.get
autoscaler.autoscalers.insert
autoscaler.autoscalers.list
autoscaler.autoscalers.patch
autoscaler.autoscalers.update
autoscaler.zoneOperations.delete
autoscaler.zoneOperations.get
autoscaler.zoneOperations.list
autoscaler.zones.list
Types
OperationWarningsItemDataItem
data OperationWarningsItemDataItem Source #
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
data DeprecationStatus Source #
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
data AutoscalingPolicyCustomMetricUtilization Source #
Custom utilization metric policy.
See: autoscalingPolicyCustomMetricUtilization
smart constructor.
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
data OperationList Source #
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.
olSelfLink :: Lens' OperationList (Maybe Text) Source #
Operation
operation :: Operation Source #
Creates a value of Operation
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
oKind :: Lens' Operation Text Source #
- Output Only
- Type of the resource. Always compute#operation for Operation resources.
AutoscalingPolicyLoadBalancingUtilization
data AutoscalingPolicyLoadBalancingUtilization Source #
Load balancing utilization policy.
See: autoscalingPolicyLoadBalancingUtilization
smart constructor.
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
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:
ZoneList
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:
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.
alrItems :: Lens' AutoscalerListResponse [Autoscaler] Source #
Autoscaler resources.
AutoscalingPolicy
data AutoscalingPolicy Source #
Cloud Autoscaler policy.
See: autoscalingPolicy
smart constructor.
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 #
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
data OperationError Source #
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
data Autoscaler Source #
Cloud Autoscaler resource.
See: autoscaler
smart constructor.
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:
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
data AutoscalingPolicyCPUUtilization Source #
CPU utilization policy.
See: autoscalingPolicyCPUUtilization
smart constructor.
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
data OperationWarningsItem Source #
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: