code: func (p *Plugin) publishAgentData() error {
  	p.agentStat.LastUpdate = time.Now().Unix()
  	if p.Transport != nil {
  		return p.Transport.Put(status.AgentStatusKey(), p.agentStat)
  	}
  	return nil
  }
docs: // publishAgentData writes the current global agent state into ETCD.