Scalr\Service\Aws\Ec2\V20150415\Ec2Api::monitorInstances PHP 메소드

monitorInstances() 공개 메소드

Enables monitoring for a running instance.
public monitorInstances ( ListDataType $instanceIdList ) : Scalr\Service\Aws\Ec2\DataType\MonitorInstancesResponseSetList
$instanceIdList Scalr\Service\Aws\DataType\ListDataType One or more instance IDs
리턴 Scalr\Service\Aws\Ec2\DataType\MonitorInstancesResponseSetList Returns the MonitorInstancesResponseSetList
    public function monitorInstances(ListDataType $instanceIdList)
    {
        $result = null;
        $options = $instanceIdList->getQueryArrayBare('InstanceId');
        $action = ucfirst(__FUNCTION__);
        $response = $this->client->call($action, $options);
        if ($response->getError() === false) {
            $sxml = simplexml_load_string($response->getRawContent());
            $response = null;
            $result = $this->_loadListByName('MonitorInstancesResponseSet', $sxml->instancesSet);
        }
        return $result;
    }
Ec2Api