MCPcopy
hub / github.com/google/mtail / Datum

Interface Datum

internal/metrics/datum/datum.go:15–27  ·  view source on GitHub ↗

Datum is an interface for metric datums, with a type, value and timestamp to be exported.

Source from the content-addressed store, hash-verified

13
14// Datum is an interface for metric datums, with a type, value and timestamp to be exported.
15type 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.
30type BaseDatum struct {

Callers 14

TestScalarMetricFunction · 0.65
TestDimensionedMetricFunction · 0.65
TestTimerFunction · 0.65
TestDatumSetAndValueFunction · 0.65
TestDatumSetInstrsFunction · 0.65
metricToVarzFunction · 0.65
metricToStatsdFunction · 0.65
metricToCollectdFunction · 0.65
TestDatumSetAndValueFunction · 0.65
metricToCollectdFunction · 0.65
metricToGraphiteFunction · 0.65
GcMethod · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected