- Schema:
PROVIDER_ APPLICATION_ DAILY_ USAGE_ HISTORY view¶
Use this view to analyze the daily credit and storage usage for each consumer account of your Snowflake Native App listings. The view returns a record for each consumer account that had credit or storage activity for a given date.
Columns¶
The following table provides definitions for the columns in this view:
PROVIDER_APPLICATION_DAILY_USAGE_HISTORY
| Field | Type | Description |
|---|---|---|
| CONSUMER_SNOWFLAKE_REGION | VARCHAR | Snowflake Region where the consumer account is located. |
| CONSUMER_ORGANIZATION_NAME | VARCHAR | Organization name of the consumer account. |
| CONSUMER_ACCOUNT_LOCATOR | VARCHAR | Account locator of the consumer account. |
| CONSUMER_ACCOUNT_NAME | VARCHAR | Account name of the consumer account. |
| APPLICATION_NAME_HASH | VARCHAR | A hash that uniquely identifies the application installation on the consumer account. This value matches the result of the SYSTEM$GET_HASH_FOR_APPLICATION function, which consumers can call to look up the hash for their installed application. |
| LISTING_GLOBAL_NAME | VARCHAR | Global name of the listing associated with the application. |
| USAGE_DATE | DATE | The date the usage occurred. |
| CREDITS_USED | NUMBER | Daily total credits consumed by the Snowflake Native App in the consumer account. |
| CREDITS_USED_BREAKDOWN | ARRAY | An array of objects identifying the Snowflake service and credits consumed. See CREDITS_USED_BREAKDOWN array for formatting. |
| STORAGE_BYTES | NUMBER | Daily average storage bytes used by the Snowflake Native App in the consumer account. |
| STORAGE_BYTES_BREAKDOWN | ARRAY | An array of objects identifying the type and number of storage bytes used. See STORAGE_BYTES_BREAKDOWN array for formatting. |
Usage notes¶
- Latency for the view may be up to 2 days.
- The data is retained for 365 days (1 year).
- The view only returns data for listings owned by the current account.
CREDITS_ USED_ BREAKDOWN array¶
The CREDITS_USED_BREAKDOWN array provides details about the services that consumed daily credits.
Example:
The following table provides descriptions for the key-value pairs in the objects in the array.
| Field | Data type | Description |
|---|---|---|
Credits | DECIMAL | Number of credits consumed by the service type specified by ServiceType on the usage date. |
ServiceType | VARCHAR | The service type, which can be one of the following values:
|
The following are used in the determination of credit consumption:
- The credits used by objects in the Snowflake Native App. For example, auto-clustering on tables in the Snowflake Native App.
- The credits used by the warehouses owned by the Snowflake Native App.
- The credits used by the compute pools dedicated to the Snowflake Native App.
STORAGE_ BYTES_ BREAKDOWN array¶
The STORAGE_BYTES_BREAKDOWN array provides details about the storage types that consumed storage.
Example:
The following table provides descriptions for the key-value pairs in the objects in the array.
| Field | Data type | Description |
|---|---|---|
Bytes | INTEGER | Number of storage bytes used. |
ServiceType | VARCHAR | The storage type, which can be one of the following values:
|
Only data stored in the Snowflake Native App is used to determine storage byte consumption. External databases created by the Snowflake Native App are not included in the determination of this value.
Examples¶
Shows top applications by credit usage for the last month:
Shows credit and storage consumption per application with the number of distinct consumer accounts for the last month: