Package ai.vespa.metricsproxy.metric
Class Metric
java.lang.Object
ai.vespa.metricsproxy.metric.Metric
- Author:
- Jo Kristian Bergum
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic longadjustTime(long timestamp, long now) Return an adjusted (rounded up) time if necessaryclone()booleangetName()getValue()inthashCode()voidsetConsumers(Set<ConsumerId> consumers) voidsetDimensions(Map<DimensionId, String> dimensions) voidSet the name of this metrictoString()
-
Constructor Details
-
Method Details
-
setDimensions
-
getDimensions
- Returns:
- A map of the dimensions registered for this metric
-
setConsumers
-
getConsumers
- Returns:
- The consumers this metric should be routed to.
-
getValue
- Returns:
- The number that this metric name represent
-
setName
Set the name of this metric- Parameters:
name- The name to use for this metric
-
getName
- Returns:
- The name of the metric
-
getTimeStamp
- Returns:
- The UTC timestamp for when this metric was collected
-
toString
-
clone
-
equals
-
hashCode
public int hashCode() -
getDescription
- Returns:
- the description of this metric
-
adjustTime
public static long adjustTime(long timestamp, long now) Return an adjusted (rounded up) time if necessary
-