Schemas:

ACCOUNT_USAGE, READER_ACCOUNT_USAGE

Ansicht METERING_HISTORY

Die METERING_HISTORY-Ansicht im ACCOUNT_USAGE-Schema kann verwendet werden, um die stündliche Credit-Nutzung eines Kontos für die letzten 365 Tage (1 Jahr) zurückzugeben.

Spalten

Spaltenname

Datentyp

Beschreibung

SERVICE_TYPE

VARCHAR

Typ des Services, der Credits verbraucht. Die folgende Liste enthält viele, aber nicht alle der möglichen Servicetypen:

START_TIME

TIMESTAMP_LTZ

Datum und Beginn der Stunde (in der lokalen Zeitzone), in der die Nutzung stattgefunden hat.

END_TIME

TIMESTAMP_LTZ

Datum und Ende der Stunde (in der lokalen Zeitzone), in der die Nutzung stattgefunden hat.

ENTITY_ID

NUMBER

Internal/system-generated identifier for the entity type. When the service type is COPY_FILES, this column shows the ID of the database, schema, or stage from which files are copied. NULL when the SERVICE_TYPE is one of the Openflow types.

ENTITY_TYPE

VARCHAR

Type of Snowflake resource that consumed credits, such as WAREHOUSE, TASK, or TABLE. Note that TABLE is used for all table-like objects.

NAME

VARCHAR

Name of the service type. When the service type is SNOWPIPE_STREAMING, there are two cost entries. One entry is for the name of the Snowflake Table object and the other one is for the colon-separated Snowpipe Streaming, CLIENT_NAME and SNOWFLAKE_PROVIDED_ID. When the service type is COPY_FILES, this column shows the name of the database from which files are copied. When the service type is one of the Openflow types, the column shows NULL.

DATABASE_ID

NUMBER

Internal/system-generated identifier of the database associated with the resource of type ENTITY_TYPE. Contains a NULL value when the resource isn’t associated with a specific database (for example, a warehouse or compute pool).

DATABASE_NAME

VARCHAR

Name of the database associated with the resource of type ENTITY_TYPE. Contains a NULL value when the resource isn’t associated with a specific database.

SCHEMA_ID

NUMBER

Internal/system-generated identifier of the schema associated with the resource of type ENTITY_TYPE. Contains a NULL value when the resource isn’t associated with a specific schema.

SCHEMA_NAME

VARCHAR

Name of the schema associated with the resource of type ENTITY_TYPE. Contains a NULL value when the resource isn’t associated with a specific schema.

CREDITS_USED_COMPUTE

NUMBER

Anzahl der Credits, die von Warehouses, serverlosen Computeressourcen und Openflow-Ressourcen in der Stunde verbraucht wurden.

CREDITS_USED_CLOUD_SERVICES

NUMBER

Anzahl der für Clouddienste pro Stunde verbrauchten Credits. Immer 0, wenn der SERVICE_TYPE einer der Openflow-Typen ist.

CREDITS_USED

NUMBER

Gesamtzahl der pro Stunde für das Konto verbrauchten Credits. Dies ist die Summe aus CREDITS_USED_COMPUTE und CREDITS_USED_CLOUD_SERVICES. Dieser Wert berücksichtigt nicht die Anpassung für Clouddienste und kann daher höher sein als Ihr tatsächlicher Credit-Verbrauch.

BYTES

NUMBER

Wenn der Diensttyp auto_clustering ist, wird die Anzahl der im START_TIME/END_TIME-Zeitfenster beim Reclustering verarbeiteten Bytes angegeben. Wenn der Diensttyp pipe ist, wird die Anzahl der im START_TIME/END_TIME-Zeitfenster eingefügten Bytes angegeben. Wenn der Diensttyp SNOWPIPE_STREAMING ist, wird die Anzahl der im START_TIME/END_TIME-Zeitfenster migrierten Bytes angegeben. Wenn der Diensttyp COPY_FILES ist, werden die Spalten auf Datenbankebene aggregiert.

ROWS

NUMBER

Wenn der Diensttyp auto_clustering ist, wird die Anzahl der im START_TIME/END_TIME-Zeitfenster beim Reclustering verarbeiteten Zeilen angegeben. Wenn der Diensttyp SNOWPIPE_STREAMING ist, wird die Anzahl der im START_TIME/END_TIME-Zeitfenster migrierten Zeilen angegeben.

FILES

NUMBER

Wenn der Diensttyp pipe ist, wird die Anzahl der im START_TIME/END_TIME-Zeitfenster geladenen Zeilen angegeben. Wenn der Diensttyp SNOWPIPE_STREAMING ist, ist dieser Wert null. Wenn der Diensttyp COPY_FILES ist, werden die Spalten auf Datenbankebene aggregiert.

Nutzungshinweise

  • Die Latenz der Ansicht kann bis zu 180 Minuten (3 Stunden) betragen. Ausnahme bildet die Spalte CREDITS_USED_CLOUD_SERVICES. Die Latenz von CREDITS_USED_CLOUD_SERVICES kann bis zu 6 Stunden betragen.

  • Die Latenz für die Anzeige des Credit-Verbrauchs von SNOWPIPE_STREAMING kann bis zu 12 Stunden betragen.