Step Details | |
Introduced in Version | 9.0.0 |
Last Modified in Version | 9.0.0 |
Location | Integration > Amazon AWS > Cloud Watch |
The Get Max CPU Utilization for Instance step retrieves the maximum CPU utilization over a period of time for an EC2 instance.
Prerequisites
- This step requires the Amazon AWS Module to be installed before it will be available in the toolbox, and an active AWS account. The Amazon WebServices Settings must also be configured.
- A dependency must be created after installing the module in order for the the steps to be properly used.
Properties
Inputs
Property | Description | Data Type |
---|---|---|
Region | The Amazon AWS Region the instance is located on. | AmazonAWSRegion |
EC2 Instance Id | The Id of the EC2 instance to retrieve maximum CPU utilization for. | String |
Start Date | Marks the start date used for retrieval. | DateTime |
End Date | Marks the end date used for retrieval. | DateTime |
Period | Defines the period when data is gathered. | Int32 |
Outputs
Property | Description | Data Type |
---|---|---|
Done | Outputs maximum CPU utilization in a defined instance. | GetMetricDataResult |
Common Errors
The Parameter 'Period' must be a value in the set [1, 5, 10, 20, 30]
If the period input is not one of the integers in the above set, the step will cause an error.
To correct this, change the period input to a value within this given set.
Exception Message:
DecisionsFramework.Design.Flow.ErrorRunningFlowStep: Error running step Get Avg CPU Utilization for Instance 1[GetAvgCPUUtilizationForInstance] in flow [Step Library Flow]: Exception invoking method GetAvgCPUUtilizationForInstance on class CloudWatchSteps
---> DecisionsFramework.LoggedException: Exception invoking method GetAvgCPUUtilizationForInstance on class CloudWatchSteps
---> System.AggregateException: One or more errors occurred. (The parameter MetricDataQueries.member.1.MetricStat.Period must be a value in the set [ 1, 5, 10, 20, 30 ]. )
---> Amazon.CloudWatch.AmazonCloudWatchException: The parameter MetricDataQueries.member.1.MetricStat.Period must be a value in the set [ 1, 5, 10, 20, 30 ].
---> Amazon.Runtime.Internal.HttpErrorResponseException: Exception of type 'Amazon.Runtime.Internal.HttpErrorResponseException' was thrown. at Amazon.Runtime.HttpWebRequestMessage.ProcessHttpResponseMessage(HttpResponseMessage responseMessage)
at Amazon.Runtime.HttpWebRequestMessage.GetResponseAsync(CancellationToken cancellationToken)
at Amazon.Runtime.Internal.HttpHandler`1.InvokeAsync[T](IExecutionContext executionContext)
at Amazon.Runtime.Internal.Unmarshaller.InvokeAsync[T](IExecutionContext executionContext)
at Amazon.Runtime.Internal.ErrorHandler.InvokeAsync[T](IExecutionContext executionContext)
--- End of inner exception stack trace ---
The Parameter EndTime must be greater than StartTime.
If the EndTime value is less than or equal to the StartTime, the step will cause an error.
To correct this, make the EndTime value greater than the StartTime value.
Exception Message:
DecisionsFramework.Design.Flow.ErrorRunningFlowStep: Error running step Get Avg CPU Utilization for Instance 1[GetAvgCPUUtilizationForInstance] in flow [Step Library Flow]: Exception invoking method GetAvgCPUUtilizationForInstance on class CloudWatchSteps
---> DecisionsFramework.LoggedException: Exception invoking method GetAvgCPUUtilizationForInstance on class CloudWatchSteps
---> System.AggregateException: One or more errors occurred. (The parameter EndTime must be greater than StartTime. )
---> Amazon.CloudWatch.AmazonCloudWatchException: The parameter EndTime must be greater than StartTime.
---> Amazon.Runtime.Internal.HttpErrorResponseException: Exception of type 'Amazon.Runtime.Internal.HttpErrorResponseException' was thrown. at Amazon.Runtime.HttpWebRequestMessage.ProcessHttpResponseMessage(HttpResponseMessage responseMessage)
at Amazon.Runtime.HttpWebRequestMessage.GetResponseAsync(CancellationToken cancellationToken)
at Amazon.Runtime.Internal.HttpHandler`1.InvokeAsync[T](IExecutionContext executionContext)
at Amazon.Runtime.Internal.Unmarshaller.InvokeAsync[T](IExecutionContext executionContext)
at Amazon.Runtime.Internal.ErrorHandler.InvokeAsync[T](IExecutionContext executionContext)
--- End of inner exception stack trace ---
Related Information
Related Articles: