Reference documentation and code samples for the Google Cloud Commerce Producer V1beta Client class UsageCalculation.
Determines how the customer's usage is calculated.
Protobuf type google.cloud.commerceproducer.v1beta.Sku.SkuPrice.ComputeEngineLicenseUsageFee.UsageCalculation
Namespace
Google \ Cloud \ CommerceProducer \ V1beta \ Sku \ SkuPrice \ ComputeEngineLicenseUsageFeeMethods
static::name
| Parameter | |
|---|---|
| Name | Description |
value |
mixed
|
static::value
| Parameter | |
|---|---|
| Name | Description |
name |
mixed
|
Constants
USAGE_CALCULATION_UNSPECIFIED
Value: 0Unused.
Generated from protobuf enum USAGE_CALCULATION_UNSPECIFIED = 0;
INSTANCE_RUNTIME
Value: 1Usage is calculated from instance runtime.
The customer's usage is metered according to the Compute Engine VM instance pricing model, measured on a per-instance basis in units of hours, with a minimum duration of one minute and an increment of one second. A SKU using this usage calculation is referred to as "flat" because the customer's usage charge is independent of the instance's machine resource shape apart from determining whether the SKU applies to the instance.
Generated from protobuf enum INSTANCE_RUNTIME = 1;
LINEAR_RESOURCE_SCALED_INSTANCE_RUNTIME
Value: 2Usage is calculated from instance runtime and size.
This calculation mode is only applicable to resource-based SKUs.
Usage is calculated by measuring the instance runtime in the same
manner as for INSTANCE_RUNTIME and multiplying by the instance's
machine resource value matching the SKU's machine resource type.
This converts the price from per-instance-hour to
per-instance-hour-per-machine-resource, which changes the price unit
for memory SKUs to 'GiBy.h'. The price unit otherwise remains 'h'
because the other machine resources are dimensionless.
A SKU using this usage calculation is referred to as "linear" because
the customer's usage charge is linearly proportional to the
instance's machine resource value.
Generated from protobuf enum LINEAR_RESOURCE_SCALED_INSTANCE_RUNTIME = 2;