MCPcopy
hub / github.com/grafana/dskit / GetRegisteredAt

Method GetRegisteredAt

ring/model.go:144–150  ·  view source on GitHub ↗

GetRegisteredAt returns the timestamp when the instance has been registered to the ring or a zero value if unknown.

()

Source from the content-addressed store, hash-verified

142// GetRegisteredAt returns the timestamp when the instance has been registered to the ring
143// or a zero value if unknown.
144func (i *InstanceDesc) GetRegisteredAt() time.Time {
145 if i == nil || i.RegisteredTimestamp == 0 {
146 return time.Time{}
147 }
148
149 return time.Unix(i.RegisteredTimestamp, 0)
150}
151
152// GetLastHeartbeatAt returns the timestamp of the last heartbeat sent by the instance
153// or a zero value if unknown.

Calls

no outgoing calls