code: func (l *State) CheckStates() map[types.CheckID]*CheckState {
  	l.RLock()
  	defer l.RUnlock()
  
  	m := make(map[types.CheckID]*CheckState)
  	for id, c := range l.checks {
  		if c.Deleted {
  			continue
  		}
  		m[id] = c.Clone()
  	}
  	return m
  }
docs: // CheckStates returns a shallow copy of all health check state records.
  // The health check records and the deferred checks still point to
  // the original values and must not be modified.