Class KubernetesEnginePodUsageFee (0.1.0)

KubernetesEnginePodUsageFee(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Details about a SKU pricing usage of software running on a Kubernetes Engine pod.

The SKU applies to pods annotated with the SKU's parent service name, and may be further scoped to a k8s pod resource type <https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/>__ (e.g. "CPU") and size range for that resource type. Running pods annotated with the parent service's service name and matching the pod resource type size range will be charged by the SKU. A service may be priced by multiple SKUs covering different combinations of pod resource type and size range, allowing a single running pod to be charged by up to one SKU per pod resource type, with pricing tiered according to pod shape.

.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields

Attributes

Name Description
price_per_unit google.type.money_pb2.Money
The price per unit of usage. The customer's usage charge is computed by measuring the customer's consumption denominated in price units and multiplying by this price. This field is a member of oneof_ price_structure.
pod_resource google.cloud.commerceproducer_v1beta.types.Sku.SkuPrice.KubernetesEnginePodUsageFee.PodResource
Output only. The pod resource type that the SKU applies to. SKUs with a non-default value are referred to as "resource-based" SKUs.
pod_resource_range google.cloud.commerceproducer_v1beta.types.Sku.SkuPrice.KubernetesEnginePodUsageFee.PodResourceRange
Output only. The range of pod resource values that the SKU applies to. The collection of SKUs in effect at any given time targeting the same service annotation and pod resource type will cover all possible values for that pod resource type without overlap. Such a collection of SKUs form a "tiered" price structure over the possible values of the pod resource, with each SKU acting as a "tier". NOTE: This is distinct from a SKU with `tiered pricing
usage_calculation google.cloud.commerceproducer_v1beta.types.Sku.SkuPrice.KubernetesEnginePodUsageFee.UsageCalculation
Output only. Determines how the customer's usage is calculated.
unit str
Output only. The price unit of the SKU. See https://ucum.org/ucum.html for the format of the price unit. For linear-priced memory SKUs, the price unit is 'GiBy.h'. For all other SKUs, the price unit is 'h'. This includes linear-priced VCPU, GPU, and TPU SKUs because these resources have unitless dimensions and the application of these scaling factors does not change the price unit.

Classes

PodResource

PodResource(value)

The pod resource type <https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/>__ that the SKU applies to.

PodResourceRange

PodResourceRange(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The range of pod resource values that the SKU applies to.

.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields

UsageCalculation

UsageCalculation(value)

Determines how the customer's usage is calculated.

    A SKU using this usage calculation is referred to as "flat"
    because the customer's usage charge is independent of the
    pod shape apart from determining whether the SKU applies to
    the pod.
LINEAR_RESOURCE_SCALED_POD_RUNTIME (2):
    Usage is calculated from pod runtime and size. This
    calculation mode is only applicable to resource-based SKUs.
    Usage is calculated by measuring the pod runtime in the same
    manner as for `POD_RUNTIME` and multiplying by the pod's
    resource value matching the SKU's pod resource type. This
    converts the price from per-pod-hour to
    per-pod-hour-per-resource, which changes the price unit for
    memory SKUs to 'GiBy.h'. The price unit otherwise remains
    'h' because the other 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 pod's resource value.