hunk.code_window: 		BucketName,
   		func(id uint64) (int, interface{}) {
   			edgeJob.ID = portainer.EdgeJobID(id)
   			return int(edgeJob.ID), edgeJob
   		},
   	)
   }
   // UpdateEdgeJob updates an Edge job by ID
  
hunk.labels: keep replace replace replace replace keep keep keep keep
hunk.after_edit: 		int(edgeJob.ID),
   		edgeJob,
  
hunk.file_path: api/dataservices/edgejob/edgejob.go
hunk.type: replace
file: import angular from 'angular';
  import PortainerError from 'Portainer/error';
  
  class KubernetesHealthService {
    /* @ngInject */
    constructor($async, KubernetesHealth) {
      this.$async = $async;
      this.KubernetesHealth = KubernetesHealth;
  
      this.pingAsync = this.pingAsync.bind(this);
    }
  
    /**
     * PING
     */
    async pingAsync(endpointID) {
      try {
        return await this.KubernetesHealth.ping({ id: endpointID }).$promise;
      } catch (err) {
        throw new PortainerError('Unable to retrieve environment health', err);
      }
    }
  
    ping(endpointID) {
      return this.$async(this.pingAsync, endpointID);
    }
  }
  
  export default KubernetesHealthService;
  angular.module('portainer.kubernetes').service('KubernetesHealthService', KubernetesHealthService);
  