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

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

	updownCheckItemObj := service.createHttpCheck(updownMonitor)

	_, httpResponse, err := service.client.Check.Add(updownCheckItemObj)
	log.Println("Monitor addition request has been completed")

	if (httpResponse.StatusCode == http.StatusCreated) && (err == nil) {
		log.Printf("Monitor %s has been added.", updownMonitor.Name)

	} else if (httpResponse.StatusCode == http.StatusBadRequest) && (err != nil) {
		log.Printf("Monitor %s is not created because of invalid parameters or it exists.", updownMonitor.Name)

	} else {
		log.Printf("Unable to create monitor %s ", updownMonitor.Name)

	}

}
// Add function method will add a monitor (updown check)
Add function method will add a monitor (updown check)
// Add function method will add a monitor ( updown check )
func (service *UpdownMonitorService) Add(updownMonitor models.Monitor) {
	log.Println("Updown monitor's Add method has been called")
	updownCheckItemObj := service.createHttpCheck(updownMonitor)
	_, httpResponse, err := service.client.Check.Add(updownCheckItemObj)
	log.Println("Monitor addition request has been completed")
	if (httpResponse.StatusCode == http.StatusCreated) && (err == nil) {
		log.Printf("Monitor %s has been added.", updownMonitor.Name)
	} else if (httpResponse.StatusCode == http.StatusBadRequest) && (err != nil) {
		log.Printf("Monitor %s is not created because of invalid parameters or it exists.", updownMonitor.Name)
	} else {
		log.Printf("Unable to create monitor %s ", updownMonitor.Name)
	}
}
func ( service * UpdownMonitorService ) Add ( updownMonitor models . Monitor ) { log . Println ( " " ) updownCheckItemObj := service . createHttpCheck ( updownMonitor ) _ , httpResponse , err := service . client . Check . Add ( updownCheckItemObj ) log . Println ( " " ) if ( httpResponse . StatusCode == http . StatusCreated ) && ( err == nil ) { log . Printf ( " " , updownMonitor . Name ) } else if ( httpResponse . StatusCode == http . StatusBadRequest ) && ( err != nil ) { log . Printf ( " " , updownMonitor . Name ) } else { log . Printf ( " " , updownMonitor . Name ) } }
Add function method will add a monitor (updown check)
Add function method will add a monitor ( updown check )