Class: DatadogAPIClient::V2::ProductCatalogSKUDataAttributesResponse

Inherits:
Object
  • Object
show all
Includes:
BaseGenericModel
Defined in:
lib/datadog_api_client/v2/models/product_catalog_sku_data_attributes_response.rb

Overview

The pricing and allotment metadata of a SKU.

Instance Attribute Summary collapse

Method Summary

Methods included from BaseGenericModel

included

Instance Attribute Details

#additional_propertiesObject

Returns the value of attribute additional_properties.



73
74
75
# File 'lib/datadog_api_client/v2/models/product_catalog_sku_data_attributes_response.rb', line 73

def additional_properties
  @additional_properties
end

#allotmentsObject

The allotments the SKU provides to other SKUs. Every entry carries the code of this SKU as its parent_sku_code. Empty when the SKU provides no allotments.



26
27
28
# File 'lib/datadog_api_client/v2/models/product_catalog_sku_data_attributes_response.rb', line 26

def allotments
  @allotments
end

#billing_dimensionObject

The identifier of the billing dimension the SKU is billed on, as used by the usage metering endpoints. Several SKUs can share one billing dimension, so this value does not identify a SKU.



31
32
33
# File 'lib/datadog_api_client/v2/models/product_catalog_sku_data_attributes_response.rb', line 31

def billing_dimension
  @billing_dimension
end

#billing_unitsObject

The billable usage unit the SKU is priced per. null for SKUs that are not priced per unit of usage, such as those whose pricing_type is percent.



35
36
37
# File 'lib/datadog_api_client/v2/models/product_catalog_sku_data_attributes_response.rb', line 35

def billing_units
  @billing_units
end

#currencyObject

The ISO-4217 code of the currency the prices are expressed in.



38
39
40
# File 'lib/datadog_api_client/v2/models/product_catalog_sku_data_attributes_response.rb', line 38

def currency
  @currency
end

#default_on_demand_optionObject

The billing frequency applied to on-demand usage of the SKU by default.



41
42
43
# File 'lib/datadog_api_client/v2/models/product_catalog_sku_data_attributes_response.rb', line 41

def default_on_demand_option
  @default_on_demand_option
end

#number_of_units_included_in_priceObject

The number of billable usage units that one unit of price covers. Divide measured usage by this value before multiplying by the price. For example, a SKU priced at 18.00 with number_of_units_included_in_price of 1 costs 18.00 per host, while a SKU priced at 12.00 with number_of_units_included_in_price of 10000 costs 12.00 per 10,000 requests. It is a scaling factor on the price, not a free allotment; included quantities are in allotments. The same factor applies to the price of a tier in on_demand_tiered whose pricing_unit_type is unit. It does not apply to a tier whose pricing_unit_type is block: that tier's price is charged for the whole block bounded by min_usage_quantity and max_usage_quantity, however much of the block is used. 0 for SKUs that are not priced per unit of usage, such as those whose pricing_type is percent.



54
55
56
# File 'lib/datadog_api_client/v2/models/product_catalog_sku_data_attributes_response.rb', line 54

def number_of_units_included_in_price
  @number_of_units_included_in_price
end

#on_demand_list_priceObject

The public list price of on-demand usage of the SKU, as a decimal string. The number of decimal places is not normalized, so values such as 0, 0.9, and 30000.00 all occur. null when the SKU is priced with tiers, in which case the prices are in on_demand_tiered.



60
61
62
# File 'lib/datadog_api_client/v2/models/product_catalog_sku_data_attributes_response.rb', line 60

def on_demand_list_price
  @on_demand_list_price
end

#on_demand_tieredObject

The tiered pricing applied to on-demand usage of the SKU. null when the SKU is priced with a single list price instead.



64
65
66
# File 'lib/datadog_api_client/v2/models/product_catalog_sku_data_attributes_response.rb', line 64

def on_demand_tiered
  @on_demand_tiered
end

#pricing_typeObject

How the SKU is priced. usage prices each billable usage unit, and percent prices a percentage; percent-priced SKUs have no billing_units.



68
69
70
# File 'lib/datadog_api_client/v2/models/product_catalog_sku_data_attributes_response.rb', line 68

def pricing_type
  @pricing_type
end

#sku_nameObject

The human-readable name of the SKU.



71
72
73
# File 'lib/datadog_api_client/v2/models/product_catalog_sku_data_attributes_response.rb', line 71

def sku_name
  @sku_name
end