code: func (s *StatusReport) Report() *Report {
  	rep := &Report{
  		TokendVersion:  s.Version,
  		ServiceVersion: s.ServiceVersion,
  		StartedTS:      s.Started.Unix(),
  		TotalDuration:  s.Finished.Sub(s.Started).Nanoseconds() / 1000,
  		RPCDuration:    s.MintTokenDuration.Nanoseconds() / 1000,
  		UpdateOutcome:  string(s.UpdateOutcome),
  		UpdateReason:   string(s.UpdateReason),
  	}
  	if s.FailureError != nil {
  		rep.FailureError = s.FailureError.Error()
  	}
  	if s.LastToken != nil {
  		rep.TokenLastUpdateTS = s.LastToken.LastUpdate
  		rep.TokenNextUpdateTS = s.LastToken.NextUpdate
  		rep.TokenExpiryTS = s.LastToken.Expiry
  	}
  	return rep
  }
docs: // Report gathers the report into single JSON-serializable struct.