CBitrixCloudMonitoringWebService :: actionStart: Bitrix method

      
<?php 
//  CBitrixCloudMonitoringWebService :: actionStart()
//  /dist/bitrix/modules/bitrixcloud/classes/general/monitoring_webservice.php:77

    
public function actionStart($domain$is_https$language_id$emails$tests)
    {
        
$this->addStr "";
        
$this->addParams = array(
            
"domain" => $domain,
            
"domain_is_https" => $is_https"Y""N",
            
"lang" => $language_id,
        );

        if (
is_array($emails))
        {
            foreach(
$emails as $email)
            {
                
$email trim($email);
                if (
strlen($email) > 0)
                    
$this->addStr .= "&ar_emails[]=".urlencode($email);
            }
        }

        if (
is_array($tests))
        {
            foreach(
$tests as $test)
            {
                
$test trim($test);
                if (
strlen($test) > 0)
                    
$this->addStr .= "&ar_tests[]=".urlencode($test);
            }
        }

        
$option CBitrixCloudOption::getOption('monitoring_devices');
        
$devices $option->getArrayValue();
        foreach(
$devices as $domain_device)
        {
            if (list (
$myDomain$myDevice) = explode("|"$domain_device2))
            {
                if (
$myDomain === $domain)
                    
$this->addStr .= "&ar_devices[]=".urlencode($myDevice);
            }
        }

        
$this->monitoring_action("monitoring_start");
    }