code: func LabelsToV2(labels map[string]CommandLabel) map[string]CommandLabelV2 {
  	out := make(map[string]CommandLabelV2, len(labels))
  	for key, val := range labels {
  		out[key] = CommandLabelV2{
  			Period:  NewDuration(val.GetPeriod()),
  			Result:  val.GetResult(),
  			Command: val.GetCommand(),
  		}
  	}
  	return out
  }
docs: // LabelsToV2 converts labels from interface to V2 spec