Instance / Action / unmonitor
unmonitor¶
- EC2.Instance.unmonitor(**kwargs)¶
Disables detailed monitoring for a running instance. For more information, see Monitoring your instances and volumes in the Amazon EC2 User Guide.
See also: AWS API Documentation
Request Syntax
response = instance.unmonitor( MetricCategoryIds=[ 'string', ], DryRun=True|False )
- Parameters:
MetricCategoryIds (list) –
The IDs of the metric categories to remove from the instances. If you specify metric categories, only those metric categories are removed and detailed monitoring remains enabled. If you don’t specify metric categories, detailed monitoring and all metric categories are turned off.
(string) –
DryRun (boolean) – Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. If you have the required permissions, the error response is
DryRunOperation. Otherwise, it isUnauthorizedOperation.
- Return type:
dict
- Returns:
Response Syntax
{ 'InstanceMonitorings': [ { 'InstanceId': 'string', 'Monitoring': { 'MetricCategoryIds': [ 'string', ], 'State': 'disabled'|'disabling'|'enabled'|'pending' } }, ] }
Response Structure
(dict) –
InstanceMonitorings (list) –
The monitoring information.
(dict) –
Describes the monitoring of an instance.
InstanceId (string) –
The ID of the instance.
Monitoring (dict) –
The monitoring for the instance.
MetricCategoryIds (list) –
The IDs of the metric categories that are associated with the instance.
(string) –
State (string) –
Indicates whether detailed monitoring is enabled. Otherwise, basic monitoring is enabled.