REPLICATION_GROUP_USAGE_HISTORY

functionsupportedReplication, failover & backupBusiness Critical+

docs.snowflake.com ↗

Information SchemaTable functions

Returns the replication usage history for secondary replication or failover groups within the last 14 days. Note This function is generally deprecated in favor of the ACCOUNT_USAGE.REPLICATION_GROUP_USAGE_HISTORY view, which provides a more complete data set and supports longer date ranges. Database and share replication are available to all accounts. Replication of other account objects & failover/failback require Business Critical Edition (or higher). To inquire about upgrading, please contact Snowflake Support.

Syntax

supportedpartialnot supportednot scored

REPLICATION_GROUP_USAGE_HISTORY(
   [ DATE_RANGE_START => <constant_expr> ]
   [, DATE_RANGE_END => <constant_expr> ]
   [, REPLICATION_GROUP_NAME => '<string>' ] )

Parameters

NameRequiredDescription
DATE_RANGE_START => constant_expr , DATE_RANGE_END => constant_exprrequiredThe date/time range, within the last 2 weeks, for which to retrieve the data load history: If an end date is not specified, then CURRENT_TIMESTAMP is used as the end of the range. If a start date is not specified, then the range starts 12 hours prior to the DATE_RANGE_END
REPLICATION_GROUP_NAME => stringrequiredA string specifying a replication or failover group. Only replication operations for the specified group are returned.

Usage notes

Output

The function returns the following columns: Column Name | Data Type | Description START_TIME | TIMESTAMP_LTZ | Start of the specified time range. END_TIME | TIMESTAMP_LTZ | End of the specified time range. REPLICATION_GROUP_NAME | TEXT | Name of the replication group. CREDITS_USED | TEXT | Number of credits billed for replication during the START_TIME and END_TIME window. BYTES_TRANSFERRED | NUMBER | Number of bytes transferred for replication during the START_TIME and END_TIME window. CHANGED_OBJECT_COUNT | NUMBER | Number of object changes in the source account that were replicated to the target account by replication refresh operations during the START_TIME and END_TIME window. The value is 0 if no changed-object count was recorded for the usage.