Datum is an interface for metric datums, with a type, value and timestamp to be exported.
| 13 | |
| 14 | // Datum is an interface for metric datums, with a type, value and timestamp to be exported. |
| 15 | type Datum interface { |
| 16 | // // Type returns the Datum type. |
| 17 | // Type() metrics.Type |
| 18 | |
| 19 | // ValueString returns the value of a Datum as a string. |
| 20 | ValueString() string |
| 21 | |
| 22 | // TimeString returns the timestamp of a Datum as a string. |
| 23 | TimeString() string |
| 24 | |
| 25 | // Time returns the timestamp of the Datum as time.Time in UTC |
| 26 | TimeUTC() time.Time |
| 27 | } |
| 28 | |
| 29 | // BaseDatum is a struct used to record timestamps across all Datum implementations. |
| 30 | type BaseDatum struct { |
no outgoing calls
no test coverage detected