Reference documentation and code samples for the Google Cloud Commerce Producer V1beta Client class ManagedServiceMetricUsageFee.
Details about a SKU pricing usage of a partner-reported custom billing metric defined by the partner in the Service Management API and reported using the Service Control API.
The customer's usage charge is computed by converting the customer's reported consumption to the SKU's composite price unit and applying the graduated price from the appropriate price tier.
Generated from protobuf message google.cloud.commerceproducer.v1beta.Sku.SkuPrice.ManagedServiceMetricUsageFee
Namespace
Google \ Cloud \ CommerceProducer \ V1beta \ Sku \ SkuPriceMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ tiered_price |
TieredPrice
Output only. Tiered pricing of the SKU. |
↳ canonical_metric |
string
Output only. The name of the metric, in canonical format. Note that in the canonical format the first character of the path component of the metric name is always uppercase, which may differ from the metric name in the service config. For example, a metric appearing in the service config as 'example.com/example_metric' will appear here in the SKU as 'example.com/Example_metric'. In the Service Management and Service Control APIs these two metric names are considered distinct, either or both may be defined, and usage must be reported using a name matching the name of a metric defined in the service config. But for billing purposes usage reported using either name will be aggregated under the canonical metric name. Example: "example.com/Example_metric" |
getTieredPrice
Output only. Tiered pricing of the SKU.
| Returns | |
|---|---|
| Type | Description |
TieredPrice|null |
|
hasTieredPrice
setTieredPrice
Output only. Tiered pricing of the SKU.
| Parameter | |
|---|---|
| Name | Description |
var |
TieredPrice
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getCanonicalMetric
Output only. The name of the metric, in canonical format.
Note that in the canonical format the first character of the path component of the metric name is always uppercase, which may differ from the metric name in the service config. For example, a metric appearing in the service config as 'example.com/example_metric' will appear here in the SKU as 'example.com/Example_metric'. In the Service Management and Service Control APIs these two metric names are considered distinct, either or both may be defined, and usage must be reported using a name matching the name of a metric defined in the service config. But for billing purposes usage reported using either name will be aggregated under the canonical metric name. Example: "example.com/Example_metric"
| Returns | |
|---|---|
| Type | Description |
string |
|
setCanonicalMetric
Output only. The name of the metric, in canonical format.
Note that in the canonical format the first character of the path component of the metric name is always uppercase, which may differ from the metric name in the service config. For example, a metric appearing in the service config as 'example.com/example_metric' will appear here in the SKU as 'example.com/Example_metric'. In the Service Management and Service Control APIs these two metric names are considered distinct, either or both may be defined, and usage must be reported using a name matching the name of a metric defined in the service config. But for billing purposes usage reported using either name will be aggregated under the canonical metric name. Example: "example.com/Example_metric"
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getPriceStructure
| Returns | |
|---|---|
| Type | Description |
string |
|