Have Questions?  Need Expert Answers?  JOIN LUNCH N' LEARNS!

Get Metric Data

Prev Next
Step Details
Introduced in Version9.0.0
Last Modified in Version9.0.0
LocationIntegration > 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 


Properties

Inputs

PropertyDescriptionData Type
RegionThe Amazon AWS Region the instance is located on.AmazonAWSRegion
EC2 Instance IdThe Id for the EC2 instance.String
Metric NameThe name of the metric that will be returned with data.String
NamespaceThe namespace used by metric.String
StatThe status code for the returned data.String
Start DateMarks the initial date used for retrieval.DateTime
End Datethe end date used for retrieval.DateTime
PeriodDefines 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:

AWS Cloudwatch