Package com.snowflake.ingest.streaming
Class ChannelStatus
java.lang.Object
com.snowflake.ingest.streaming.ChannelStatus
ChannelStatus the channel status returned to the customer.
-
Constructor Summary
ConstructorsConstructorDescriptionChannelStatus default constructorChannelStatus(String databaseName, String schemaName, String pipeName, String channelName, String statusCode, String latestCommittedOffsetToken, Instant createdOn, long rowsInsertedCount, long rowsParsedCount, long rowsErrorCount, String lastErrorOffsetTokenUpperBound, String lastErrorMessage, Instant lastErrorTimestamp, Duration snowflakeAvgProcessingLatency, Instant lastRefreshedOn) ChannelStatus constructor -
Method Summary
Modifier and TypeMethodDescriptionGet the channel name of the channel statusGet the created on timestamp in ms for the channelGet the database name of the channel statusGet the last error message for the channelGet the last error offset upper bound for the channelGet the last error timestamp for the channelGet the last refreshed on timestamp for the channelGet the latest committed offset token for the channel with channel name in the snowflake server side.Deprecated.Get the pipe name of the channel statuslongGet the rows error count for the channellongGet the rows committed into the table for the channellongGet the rows parsed for the channelGet the schema name of the channel statusGet the snowflake avg processing latency for the channelGet the status code for the channel with channel name in the snowflake server side.
-
Constructor Details
-
ChannelStatus
public ChannelStatus()ChannelStatus default constructor -
ChannelStatus
public ChannelStatus(String databaseName, String schemaName, String pipeName, String channelName, String statusCode, @Nullable String latestCommittedOffsetToken, Instant createdOn, long rowsInsertedCount, long rowsParsedCount, long rowsErrorCount, @Nullable String lastErrorOffsetTokenUpperBound, @Nullable String lastErrorMessage, @Nullable Instant lastErrorTimestamp, @Nullable Duration snowflakeAvgProcessingLatency, Instant lastRefreshedOn) ChannelStatus constructor- Parameters:
databaseName- the database name of the channel statusschemaName- the schema name of the channel statuspipeName- the pipe name of the channel statuschannelName- the channel name of the channel statusstatusCode- the status code for the channel with channel name in the snowflake serverlatestCommittedOffsetToken- the last committed offset token for the channel with channel name in the snowflake server sidecreatedOn- the created on timestamp for the channelrowsInsertedCount- the rows committed into the table for the channelrowsParsedCount- the rows parsed for the channelrowsErrorCount- the rows error count for the channellastErrorOffsetTokenUpperBound- the last error offset upper bound for the channellastErrorMessage- the last error message for the channellastErrorTimestamp- the last error timestamp for the channelsnowflakeAvgProcessingLatency- the snowflake avg processing latency for the channellastRefreshedOn- the last refreshed on timestamp for the channel
-
-
Method Details
-
getDatabaseName
Get the database name of the channel status- Returns:
- the database name of the channel status
-
getSchemaName
Get the schema name of the channel status- Returns:
- the schema name of the channel status
-
getPipeName
Get the pipe name of the channel status- Returns:
- the pipe name of the channel status
-
getChannelName
Get the channel name of the channel status- Returns:
- the channel name of the channel status
-
getStatusCode
Get the status code for the channel with channel name in the snowflake server side.- Returns:
- the status code
-
getLatestCommittedOffsetToken
Get the latest committed offset token for the channel with channel name in the snowflake server side.- Returns:
- the latest committed offset token
-
getLatestOffsetToken
Deprecated.UsegetLatestCommittedOffsetToken()instead.Get the latest committed offset token for the channel with channel name in the snowflake server side.- Returns:
- the latest committed offset token
-
getCreatedOn
Get the created on timestamp in ms for the channel- Returns:
- the created on timestamp for the channel
-
getRowsInsertedCount
public long getRowsInsertedCount()Get the rows committed into the table for the channel- Returns:
- the rows committed into the table for the channel
-
getRowsParsedCount
public long getRowsParsedCount()Get the rows parsed for the channel- Returns:
- the rows parsed for the channel
-
getRowsErrorCount
public long getRowsErrorCount()Get the rows error count for the channel- Returns:
- the rows error count for the channel
-
getLastErrorOffsetTokenUpperBound
Get the last error offset upper bound for the channel- Returns:
- the last error offset upper bound for the channel
-
getLastErrorMessage
Get the last error message for the channel- Returns:
- the last error message for the channel
-
getLastErrorTimestamp
Get the last error timestamp for the channel- Returns:
- the last error timestamp for the channel
-
getServerAvgProcessingLatency
Get the snowflake avg processing latency for the channel- Returns:
- the snowflake avg processing latency for the channel
-
getLastRefreshedOn
Get the last refreshed on timestamp for the channel- Returns:
- the last refreshed on timestamp for the channel
-
getLatestCommittedOffsetToken()instead.