Step Details | |
Introduced in Version | 9.0.0 |
Last Modified in Version | 9.0.0 |
Location | Integration > Amazon AWS > Cloud Watch |
The Get Metric Data step is used to retrieve CloudWatch metric values, such timestamps and other identifying information for a data set.
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 for the EC2 instance. | String |
Metric Name | The name of the metric that will be returned with data. | String |
Namespace | The namespace used by metric. | String |
Stat | The status code for the returned data. | String |
Start Date | Marks the initial date used for retrieval. | DateTime |
End Date | the end date used for retrieval. | DateTime |
Period | Defines the period of time when data is gathered. | Int32 |
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: