Enum MetricsUtil.EventType
- java.lang.Object
-
- java.lang.Enum<MetricsUtil.EventType>
-
- com.snowflake.kafka.connector.internal.metrics.MetricsUtil.EventType
-
- All Implemented Interfaces:
Serializable,Comparable<MetricsUtil.EventType>
- Enclosing class:
- MetricsUtil
public static enum MetricsUtil.EventType extends Enum<MetricsUtil.EventType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description COMMIT_LAGTime difference between file being uploaded to internal stage to time invoking insertFiles API.INGESTION_LAGTime difference between file being uploaded to internal stage to time knowing the successful file ingestion status through insertReport or loadHistoryScan API.KAFKA_LAGTime difference between the record put into kafka to record fetched into Kafka Connector Can be null if the value was not set inside a record.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetMetricName()static MetricsUtil.EventTypevalueOf(String name)Returns the enum constant of this type with the specified name.static MetricsUtil.EventType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
KAFKA_LAG
public static final MetricsUtil.EventType KAFKA_LAG
Time difference between the record put into kafka to record fetched into Kafka Connector Can be null if the value was not set inside a record.ConnectRecord.timestamp()
-
COMMIT_LAG
public static final MetricsUtil.EventType COMMIT_LAG
Time difference between file being uploaded to internal stage to time invoking insertFiles API.
-
INGESTION_LAG
public static final MetricsUtil.EventType INGESTION_LAG
Time difference between file being uploaded to internal stage to time knowing the successful file ingestion status through insertReport or loadHistoryScan API.
-
-
Method Detail
-
values
public static MetricsUtil.EventType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (MetricsUtil.EventType c : MetricsUtil.EventType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MetricsUtil.EventType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getMetricName
public String getMetricName()
-
-