github.com/prometheus/client_model/go.Metric.TimestampMs (field)
19 uses
github.com/prometheus/client_model/go (current package)
metrics.pb.go#L433: TimestampMs *int64 `protobuf:"varint,6,opt,name=timestamp_ms,json=timestampMs" json:"timestamp_ms,omitempty"`
metrics.pb.go#L506: if m != nil && m.TimestampMs != nil {
metrics.pb.go#L507: return *m.TimestampMs
github.com/prometheus/client_golang/prometheus
metric.go#L156: pb.TimestampMs = proto.Int64(m.t.Unix()*1000 + int64(m.t.Nanosecond()/1000000))
github.com/prometheus/client_golang/prometheus/internal
metric.go#L57: if s[i].TimestampMs == nil {
metric.go#L60: if s[j].TimestampMs == nil {
github.com/prometheus/common/expfmt
decode.go#L221: if m.TimestampMs != nil {
decode.go#L222: smpl.Timestamp = model.TimeFromUnixNano(*m.TimestampMs * 1000000)
decode.go#L252: if m.TimestampMs != nil {
decode.go#L253: smpl.Timestamp = model.TimeFromUnixNano(*m.TimestampMs * 1000000)
decode.go#L283: if m.TimestampMs != nil {
decode.go#L284: smpl.Timestamp = model.TimeFromUnixNano(*m.TimestampMs * 1000000)
decode.go#L304: if m.TimestampMs != nil {
decode.go#L305: timestamp = model.TimeFromUnixNano(*m.TimestampMs * 1000000)
decode.go#L361: if m.TimestampMs != nil {
decode.go#L362: timestamp = model.TimeFromUnixNano(*m.TimestampMs * 1000000)
text_create.go#L314: if metric.TimestampMs != nil {
text_create.go#L320: n, err = writeInt(w, *metric.TimestampMs)
text_parse.go#L470: p.currentMetric.TimestampMs = proto.Int64(timestamp)
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |