Skip to main content
Version: SDK 5.0.x

Class Metric

public class Metric
extends Object
implements LoggerFields
Inheritance

java.lang.Object ← io.justtrack.Metric

All Implemented Interfaces

LoggerFields

Methods

getDefaultDimensions

@NonNull
public Map<String,String> getDefaultDimensions()

getFields

@NonNull
public Map<String,String> getFields()

Description copied from interface: LoggerFields

Return all fields as a map from the field name to the field value.

Returns

A map of all fields.

Specified by

getFields in interface LoggerFields

getMetric

@NonNull
public String getMetric()

getUnit

@NonNull
public MetricUnit getUnit()