func (cs *clientServer) publishMetricsOnce() error {
	// Get the list of objects to send to backend.
	requests, err := cs.metricsToPublishMetricRequests()
	if err != nil {
		return err
	}

	// Make the publish metrics request to the backend.
	for _, request := range requests {
		err = cs.MakeRequest(request)
		if err != nil {
			return err
		}
	}
	return nil
}
func (cs *clientServer) publishMetricsOnce() error {
	
	requests, err := cs.metricsToPublishMetricRequests()
	if err != nil {
		return err
	}

	
	for _, request := range requests {
		err = cs.MakeRequest(request)
		if err != nil {
			return err
		}
	}
	return nil
}
func ( cs * clientServer ) publishMetricsOnce ( ) error { // Get the list of objects to send to backend. requests , err := cs . metricsToPublishMetricRequests ( ) if err != nil { return err } // Make the publish metrics request to the backend. for _ , request := range requests { err = cs . MakeRequest ( request ) if err != nil { return err } } return nil }
// publishMetricsOnce is invoked by the ticker to periodically publish metrics to backend.
publishMetricsOnce is invoked by the ticker to periodically publish metrics to backend .