METERING_DAILY_HISTORY 视图¶
ORGANIZATION_USAGE 架构中的 METERING_DAILY_HISTORY 视图可用于返回组织在过去 365 天(1 年)内的每日 Credit 使用量和云服务回扣。
备注
As of March 1, 2026, Snowflake no longer bills customers for hybrid table requests, and metering was disabled soon after this pricing change took effect. Any new data in the view as of March 1, 2026, will not be billed to customers, and you can still query the historical data in the view.
列¶
列名称 |
数据类型 |
描述 |
|---|---|---|
SERVICE_TYPE |
VARCHAR |
Type of service that is consuming credits. The following list includes many, but not all, of the possible service types:
|
ORGANIZATION_NAME |
VARCHAR |
实际进行使用的组织的名称。 |
ACCOUNT_NAME |
VARCHAR |
实际进行使用的账户的名称。 |
USAGE_DATE |
DATE |
使用发生的日期(UTC 时区)。 |
CREDITS_USED_COMPUTE |
NUMBER |
USAGE_DATE 期间仓库和无服务器计算资源使用的 Credit。 |
CREDITS_USED_CLOUD_SERVICES |
NUMBER |
USAGE_DATE 期间云服务使用的 Credit。 |
CREDITS_USED |
NUMBER |
CREDITS_USED_COMPUTE 和 CREDITS_USED_CLOUD_SERVICES 的总和。 |
CREDITS_ADJUSTMENT_CLOUD_SERVICES |
NUMBER |
根据云服务进行调整 后的 Credit 数量。此值为负值(如 -9)。 |
CREDITS_BILLED |
NUMBER |
该账户当日计费的 Credit 总数。这是 CREDITS_USED_COMPUTE、CREDITS_USED_CLOUD_SERVICES 和 CREDITS_ADJUSTMENT_CLOUD_SERVICES 的总和。 |
REGION |
VARCHAR |
账户所在的 Snowflake 区域的 ID。 |
ACCOUNT_LOCATOR |
VARCHAR |
实际进行使用的账户的定位器。 |
使用说明¶
视图的延迟时间最长可达 120 分钟(2 小时)。
数据会保留 365 天(1 年)。
示例¶
仅当 云服务的使用量 超过虚拟仓库每日使用量的 10% 时,才会收取使用费用。此查询返回特定日期实际计费的云服务使用量,按最高计费金额排序。