Zend_Cloud_Infrastructure_AdapterAdaptersThe Zend_Cloud_Infrastructure supports the following adapters: AMAZON EC2To initialize the AMAZON EC2 adapter you have to use the following code:
To create a new instance for AMAZON EC2 adapter you have to use the following parameters:
The monitor an instance of AMAZON EC2 you can use the starting time and ending time optional parameters. The times must be specified using the ISO 8601 format.
The instanceType parameter is optional. This parameter specify the type of the instance to create (for instance, 't1.micro'). Rackspace Cloud ServersTo initialize the Rackspace Cloud Servers adapter you have to use the following code:
To create a new instance for Rackspace Cloud Servers adapter you have to use the following parameters:
The metadata array and the file array are optional parameters. To monitor an instance of Rackspace Cloud Servers we can use only the SSH2 extension. The Rackspace API does not offer a dedicated service to monitor the instance. The monitoring features using the SSH2 connection are limited to the CPU usage, the RAM usage and the DISK usage.
The $options contains the username and the password to be used for the SSH connection.
|