Instance / Action / monitor
monitor#
- EC2.Instance.monitor(**kwargs)#
Enables detailed monitoring for a running instance. Otherwise, basic monitoring is enabled. For more information, see Monitor your instances using CloudWatch in the Amazon EC2 User Guide.
To disable detailed monitoring, see UnmonitorInstances.
See also: AWS API Documentation
Request Syntax
response = instance.monitor( DryRun=True|False )
- Parameters:
DryRun (boolean) – Checks whether you have the required permissions for the action, 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': { '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.
State (string) –
Indicates whether detailed monitoring is enabled. Otherwise, basic monitoring is enabled.