func (service *UpdownMonitorService) Update(updownMonitor models.Monitor) {

	log.Println("Updown's Update method has been called")

	httpCheckItemObj := service.createHttpCheck(updownMonitor)
	_, httpResponse, err := service.client.Check.Update(updownMonitor.ID, httpCheckItemObj)
	log.Println("Updown's check Update request has been completed")

	if (httpResponse.StatusCode == http.StatusOK) && (err == nil) {
		log.Printf("Monitor %s has been updated with following parameters", updownMonitor.Name)

	} else {
		log.Printf("Monitor %s is not updated because of %s", updownMonitor.Name, err.Error())

	}

}
// Update method will update a monitor (updown check)
Update method will update a monitor (updown check)
// Update method will update a monitor ( updown check )
func (service *UpdownMonitorService) Update(updownMonitor models.Monitor) {
	log.Println("Updown's Update method has been called")
	httpCheckItemObj := service.createHttpCheck(updownMonitor)
	_, httpResponse, err := service.client.Check.Update(updownMonitor.ID, httpCheckItemObj)
	log.Println("Updown's check Update request has been completed")
	if (httpResponse.StatusCode == http.StatusOK) && (err == nil) {
		log.Printf("Monitor %s has been updated with following parameters", updownMonitor.Name)
	} else {
		log.Printf("Monitor %s is not updated because of %s", updownMonitor.Name, err.Error())
	}
}
func ( service * UpdownMonitorService ) Update ( updownMonitor models . Monitor ) { log . Println ( " " ) httpCheckItemObj := service . createHttpCheck ( updownMonitor ) _ , httpResponse , err := service . client . Check . Update ( updownMonitor . ID , httpCheckItemObj ) log . Println ( " " ) if ( httpResponse . StatusCode == http . StatusOK ) && ( err == nil ) { log . Printf ( " " , updownMonitor . Name ) } else { log . Printf ( " " , updownMonitor . Name , err . Error ( ) ) } }
Update method will update a monitor (updown check)
Update method will update a monitor ( updown check )