Class SnowflakeTelemetryBasicInfo
- java.lang.Object
-
- com.snowflake.kafka.connector.internal.telemetry.SnowflakeTelemetryBasicInfo
-
- Direct Known Subclasses:
SnowflakeTelemetryChannelCreation,SnowflakeTelemetryChannelStatus,SnowflakeTelemetryPipeCreation,SnowflakeTelemetryPipeStatus
public abstract class SnowflakeTelemetryBasicInfo extends Object
Minimum information needed to sent to Snowflake through Telemetry API
-
-
Field Summary
Fields Modifier and Type Field Description static KCLoggerLOGGERStringtableNameSnowflakeTelemetryService.TelemetryTypetelemetryType
-
Constructor Summary
Constructors Constructor Description SnowflakeTelemetryBasicInfo(String tableName, SnowflakeTelemetryService.TelemetryType telemetryType)Base Constructor.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract voiddumpTo(net.snowflake.client.jdbc.internal.fasterxml.jackson.databind.node.ObjectNode msg)Adds the required fields into the given ObjectNode which will then be used as payload in Telemetry APIabstract booleanisEmpty()
-
-
-
Field Detail
-
tableName
public final String tableName
-
telemetryType
public final SnowflakeTelemetryService.TelemetryType telemetryType
-
LOGGER
public static final KCLogger LOGGER
-
-
Constructor Detail
-
SnowflakeTelemetryBasicInfo
public SnowflakeTelemetryBasicInfo(String tableName, SnowflakeTelemetryService.TelemetryType telemetryType)
Base Constructor. Accepts a tableName and StageName.- Parameters:
tableName- Checks for Nullability
-
-
Method Detail
-
dumpTo
public abstract void dumpTo(net.snowflake.client.jdbc.internal.fasterxml.jackson.databind.node.ObjectNode msg)
Adds the required fields into the given ObjectNode which will then be used as payload in Telemetry API- Parameters:
msg- ObjectNode in which extra fields needs to be added.
-
isEmpty
public abstract boolean isEmpty()
- Returns:
- true if it would suggest that their was no update to corresponding implementation's member variables. Or, in other words, the corresponding partition didnt receive any records, in which case we would not call telemetry API.
-
-