MCPcopy Index your code
hub / github.com/coder/coder / IsHeartbeat

Method IsHeartbeat

coderd/usage/usagetypes/events.go:50–52  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

48}
49
50func (e UsageEventType) IsHeartbeat() bool {
51 return e.Valid() && strings.HasPrefix(string(e), "hb_")
52}
53
54// ParseEvent parses the raw event data into the provided event. It fails if
55// there is any unknown fields or extra data at the end of the JSON. The

Callers 2

RegisterMethod · 0.80

Calls 1

ValidMethod · 0.95

Tested by

no test coverage detected