Class TelemetryUtil
- java.lang.Object
-
- net.snowflake.client.jdbc.telemetry.TelemetryUtil
-
public class TelemetryUtil extends Object
-
-
Constructor Summary
Constructors Constructor Description TelemetryUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TelemetryDatabuildJobData(com.fasterxml.jackson.databind.node.ObjectNode obj)static TelemetryDatabuildJobData(String queryId, TelemetryField field, long value)Create a simple TelemetryData instance for Job metrics using given parameters
-
-
-
Field Detail
-
TYPE
public static final String TYPE
- See Also:
- Constant Field Values
-
QUERY_ID
public static final String QUERY_ID
- See Also:
- Constant Field Values
-
VALUE
public static final String VALUE
- See Also:
- Constant Field Values
-
-
Method Detail
-
buildJobData
public static TelemetryData buildJobData(String queryId, TelemetryField field, long value)
Create a simple TelemetryData instance for Job metrics using given parameters- Parameters:
queryId- the id of the queryfield- the field to log (represents the "type" field in telemetry)value- the value to log for the field- Returns:
- TelemetryData instance constructed from parameters
-
buildJobData
public static TelemetryData buildJobData(com.fasterxml.jackson.databind.node.ObjectNode obj)
-
-