CBitrixCloudMonitoringTest :: fromXMLNode: Bitrix method

      
<?php 
//  CBitrixCloudMonitoringTest :: fromXMLNode()
//  /dist/bitrix/modules/bitrixcloud/classes/general/monitoring_result.php:90

    
public static function fromXMLNode(CDataXMLNode $node)
    {
        return new 
CBitrixCloudMonitoringTest(
            
$node->getAttribute("id"),
            
$node->getAttribute("status") == 2CBitrixCloudMonitoringResult::RED_LAMPCBitrixCloudMonitoringResult::GREEN_LAMP,
            
strtotime($node->getAttribute("time")),
            
$node->getAttribute("uptime"),
            
$node->textContent()
        );
    }