@@ -105,16 +105,16 @@ public function get_account_details() {
105105 * @param [type] $custom_up_ratio [description].
106106 * @param [Int] $logs [description].
107107 * @param [Int] $response_times [description].
108- * @param [Int] $response_time_average [description].
108+ * @param [Int] $response_average [description].
109109 * @param [Int] $alert_contacts [description].
110110 * @param [Int] $show_alert_contacts [description].
111111 * @param [Int] $show_timezone [description].
112112 * @return [type] [description]
113113 */
114- public function get_monitors ( $ search = '' , $ monitors = null , $ custom_up_ratio = null , $ logs = 0 , $ response_times = 0 , $ response_time_average = 0 , $ alert_contacts = 0 , $ show_alert_contacts = 0 , $ show_timezone = 0 ) {
114+ public function get_monitors ( $ search = '' , $ monitors = null , $ custom_up_ratio = null , $ logs = 0 , $ response_times = 0 , $ response_average = 0 , $ alert_contacts = 0 , $ show_alert_contacts = 0 , $ show_timezone = 0 ) {
115115 $ request = $ this ->base_uri . '/getMonitors ' ;
116116
117- $ request .= '?logs= ' . $ logs . '&responseTimes= ' . $ response_times . '&responseTimesAverage= ' . $ response_time_average . '&alertContacts= ' . $ alert_contacts . '&showMonitorAlertContacts= ' . $ show_alert_contacts . '&showTimezone= ' . $ show_timezone ;
117+ $ request .= '?logs= ' . $ logs . '&responseTimes= ' . $ response_times . '&responseTimesAverage= ' . $ response_average . '&alertContacts= ' . $ alert_contacts . '&showMonitorAlertContacts= ' . $ show_alert_contacts . '&showTimezone= ' . $ show_timezone ;
118118
119119 if ( ! empty ( $ search ) ) {
120120 $ request .= '&search= ' . htmlspecialchars ( $ search );
@@ -233,7 +233,7 @@ protected function reset_monitor() {
233233 public function get_alert_contacts ( $ alert_contacts = null ) {
234234 $ request = $ this ->base_uri . '/getAlertContacts ' ;
235235
236- if ( ! empty ( $ alertcontacts ) ) {
236+ if ( ! empty ( $ alert_contacts ) ) {
237237 $ request .= '?alertcontacts= ' . $ this ->get_implode ( $ alert_contacts );
238238 }
239239
0 commit comments