Package codes.grow.packages.datadogapm
Class DatadogTime
java.lang.Object
codes.grow.packages.datadogapm.DatadogTime
A point in time for a Datadog query: an absolute instant (sent as ISO-8601 in UTC with
milliseconds) or a Datadog date expression (
now-15m, ISO-8601, epoch milliseconds) sent
as is.-
Method Summary
Modifier and TypeMethodDescriptionstatic DatadogTimeAn absolute time.static DatadogTimeepochMillis(long epochMillis) An absolute time from epoch milliseconds.booleanstatic DatadogTimeA Datadog date expression such asnow-15m.inthashCode()toString()The wire form: ISO-8601 for an instant, the expression otherwise.
-
Method Details
-
at
An absolute time.- Parameters:
at- instant- Returns:
- time
-
epochMillis
An absolute time from epoch milliseconds.- Parameters:
epochMillis- milliseconds since the epoch- Returns:
- time
-
expr
A Datadog date expression such asnow-15m.- Parameters:
expr- expression- Returns:
- time
-
toString
The wire form: ISO-8601 for an instant, the expression otherwise. -
equals
-
hashCode
public int hashCode()
-