Disables monitoring of group metrics for the Auto Scaling group specified in
AutoScalingGroupName. You can specify the list of affected metrics with the
Metrics parameter.
Access
public
Parameters
Parameter |
Type |
Required |
Description |
|---|---|---|---|
|
|
Required |
The name or ARN of the Auto Scaling Group. [Constraints: The value must be between 1 and 1600 characters, and must match the following regular expression pattern: |
|
|
|
Optional |
An associative array of parameters that can have the following keys:
|
Returns
Type |
Description |
|---|---|
|
A |
Examples
Disable the collection of metrics.
// Instantiate the class
$as = new AmazonAS();
$response = $as->disable_metrics_collection('my-scaling-group', array(
'Metrics' => array(
'GroupMinSize',
'GroupMaxSize',
'GroupDesiredCapacity',
'GroupInServiceInstances',
'GroupPendingInstances',
'GroupTerminatingInstances',
'GroupTotalInstances'
)
));
// Success?
var_dump($response->isOK());
Result:
bool(true)
Related Methods
Source
Method defined in services/as.class.php | Toggle source view (16 lines) | View on GitHub

