Interface Record
- All Known Implementing Classes:
DefaultRecord
public interface Record
The interface to a record. Records consistent of a timestamp, any number of
named metrics, annotations (arbitrary key-value pairs) and dimensions (arbitrary key-value pairs).
- Author:
- Brandon Arp (brandon dot arp at inscopemetrics dot io), Ville Koskela (ville dot koskela at inscopemetrics dot io), Ryan Ascheman (rascheman at groupon dot com)
-
Method Details
-
getId
String getId()Gets the unique identifier of the record.- Returns:
- the identifier.
-
getTime
ZonedDateTime getTime()Gets the time stamp of the record.- Returns:
- the time stamp.
-
getRequestTime
Optional<ZonedDateTime> getRequestTime()Gets the "received at" time stamp of the record.- Returns:
- the time stamp
-
getMetrics
Gets metrics.- Returns:
- the metrics
-
getAnnotations
Gets annotations.- Returns:
- the annotations
-
getDimensions
Gets dimensions.- Returns:
- the dimensions
-