Schema:

ACCOUNT_USAGE

SERVERLESS_TASK_HISTORY view

This Account Usage view can be used to query the serverless task usage history. The information returned by the view includes the serverless task name and credits consumed by serverless task usage.

Columns

Column NameData TypeDescription
START_TIMETIMESTAMP_LTZStart of the specified time range.
END_TIMETIMESTAMP_LTZEnd of the specified time range.
CREDITS_USEDVARCHARNumber of credits billed for serverless task usage during the START_TIME and END_TIME window.
TASK_IDNUMBERInternal/system-generated identifier for the serverless task.
TASK_NAMEVARCHARName of the serverless task.
SCHEMA_IDNUMBERInternal/system-generated identifier for the schema that contains the serverless task.
SCHEMA_NAMEVARCHARName of the schema that contains the serverless task.
DATABASE_IDNUMBERInternal/system-generated identifier for the database that contains the serverless task.
DATABASE_NAMEVARCHARName of the database that contains the serverless task.
INSTANCE_IDNUMBERInternal/system-generated identifier for the instance which the object belongs to.

Usage notes

  • Latency for the view may be up to 180 minutes (3 hours).