定价方案清单参考¶
以编程方式创建 Snowflake 定价方案需要使用以 YAML (https://yaml.org/spec/ (https://yaml.org/spec/)) 编写的清单。使用此处提供的信息了解定价方案清单中可用的参数。
定价方案清单¶
#
# Pricing plan manifest
#
pricing_plan_display_name: <pricing_plan_name>
currency: <three_letter_currency_code>
pricing_model: <pricing_plan_pricing_model>
usage_details:
free_units: <number_of_free_monthly_queries>
free_unit_kind: <free_unit_kind>
usage_unit_price: <price_per_unit>
usage_unit_kind: <usage_unit_kind>
max_fee: <maximum_fee_per_month>
billing_events:
class: <class_name>
display_name: <billing_event_display_name>
billing_quantity: <price_per_unit>
billing_unit: <display_units>
description: <description_for_the_billing_event>
compute_pool_surcharge:
surcharge_type: <surcharge_type>
compute_pool_rates:
- identifier_type: <compute_pool_type>
identifier_name: <compute_pool_name>
surcharge_price: <price_per_credit>
description: <compute_pool_rate_description>
- identifier_type: <compute_pool_type>
identifier_name: <compute_pool_name>
surcharge_price: <price_per_credit>
description: <compute_pool_rate_description>
base_fee: <monthly_fixed_fee>
billing_duration: <billing_duration_in_months>
sales_motion: <pricing_plan_type>
comment: <a_note_visible_only_to_the_provider>
metadata:
description: <pricing_plan_description>
price_prefix: <pricing_plan_prefix>
pricing_unit: <|sf-web-interface|_pricing_plan_pricing_unit>
button_text: <|sf-web-interface|_button_text>
index: <|sf-web-interface|_pricing_plan_index>
value_propositions: <pricing_plan_value_proposition>
visibility: <pricing_plan_visibility>
#
# Default offer fields
#
contract_type: <pricing plan contract type>
contract_duration_months: <pricing plan contract duration>
定价方案参数¶
定价方案清单中的参数允许您创建满足特定业务要求的定价方案。标明了必填参数和可选参数。
- pricing_plan_display_name
必填。字符串。对提供商和使用者可见的定价方案名称。
- currency
必填。字符串。定价方案的三字母货币代码。默认为 USD。
- pricing_model
必填。字符串。定价方案的定价模式。可用值为 FLAT_FEE 和 USAGE_BASED。有关定价模式的更多信息,请参阅 付费列表定价模式。
- usage_details
可选。定义定价方案使用限制。您可以指定以下可选参数。
长整型。使用者在不支付月费的情况下可以进行的查询次数。
字符串。免费单位类型。可接受的值为 QUERY。
双精度。每单位种类的价格。
字符串。使用单位类型。可接受的值为 QUERY。
双精度。每月向使用者收取的最高费用。可接受的值为 QUERY。
- billing_events
可选。定义使用者计费事件。您可以指定以下可选参数。
字符串。计费类别名称。
字符串。计费事件名称。
双精度。每单位的价格。
字符串。要显示的计费单位。
字符串。计费事件描述。
- compute_pool_surcharge
可选。定义计算池使用费率。您可以指定以下可选参数。
字符串。计算池附加费用类型。可接受的值为 HOUR 或 CREDIT。
字符串。定义计算池访问的收费费率。您可以指定以下参数。
字符串。计算池标识符类型。可接受的值为 COMPUTE_POOL_NAME。
字符串。计算池标识符名称。此值必须与应用程序中使用的计算池的名称相同。
双精度。当值为 CREDIT 时,每个计算池 Credit 的价格,或者当值为 HOUR 时,每个计算小时的价格。启动或恢复计算节点时,至少会消耗 5 分钟的 Snowflake credit。计算节点启动或恢复后,虚拟仓库和计算节点按秒计费,四舍五入到最接近的整数秒。
字符串。计算池描述。
- base_fee
必填。双精度。定价方案每月固定费用。
- billing_duration
必填。长整型。定价方案的期限(以月为单位)。
- sales_motion
必填。字符串。定价方案类型。可接受的值为 SELF_SERVE 和 TALK_TO_SALES。
- comment
可选。字符串。仅对提供商可见的定价方案信息。
- 元数据
可选。提供其他定价方案信息。您可以指定以下可选参数。
字符串。定价方案的描述。
字符串。定价方案定价的前缀。
字符串。要在 Snowsight 中显示的定价方案定价单位。
字符串。要显示在 Snowsight 定价方案按钮上的文本。
字符串。显示在 Snowsight 中的定价方案索引。
字符串。定价方案价值主张。
- visibility
必填。字符串。定义定价方案可见性。可接受的值为 VISIBLE 和 HIDDEN。
- contract_type
必填。字符串。定价方案合同类型。可接受的值为 SUBSCRIPTION 和 LIMITED_TIME。
- contract_duration_months
必填。长整型。定价方案合同期限(以月为单位)。