Schema:

ACCOUNT_USAGE

COPY_FILES_HISTORY view

This Account Usage view includes information about compute credit usage, number of bytes copied, and number of files copied for the following operations:

  • Using COPY FILES to copy files from a source stage to an output stage.
  • Cloning named internal stages.
See also:

COPY FILES , CREATE <object> … CLONE

Columns

Column nameData typeDescription
DATABASE_IDNUMBERID of the database from which the files are copied. You can map this to the ENTITY_ID in the METERING_HISTORY view view.
DATABASE_NAMEVARCHARName of the database from which the staged files are copied.
SUB_SERVICE_TYPEVARCHAR

Type of service that is copying files, which can be one of the following:

JOB_ROOT_ENTITY_IDNUMBEREntity ID for the root job; varies by SUB_SERVICE_TYPE. For COPY STAGE FILES, indicates the ID of the stage from which files are copied. For SCHEMA CLONE, indicates the schema ID. For DATABASE CLONE, indicates the database ID.
START_TIMETIMESTAMP_LTZThe date and beginning of the hour (in the local time zone) in which the copy operation took place.
END_TIMETIMESTAMP_LTZThe date and end of the hour (in the local time zone) in which the copy operation took place.
CREDITS_USEDNUMBERNumber of compute credits used by warehouses and serverless compute resources between the START_TIME and END_TIME.
BYTES_COPIEDNUMBERNumber of bytes copied from the root entity (stage, schema, or database) between the START_TIME and END_TIME.
FILES_COPIEDNUMBERNumber of files copied from the root entity (stage, schema, or database) between the START_TIME and END_TIME.