

# MetricsByTime


Contains efficiency metrics for a specific point in time, including an efficiency score, potential savings, optimizable spend, and timestamp.

## Contents


 ** savings **   <a name="awscostmanagement-Type-CostOptimizationHub_MetricsByTime-savings"></a>
The estimated savings amount for this time period, representing the potential cost reduction achieved through optimization recommendations.  
Type: Double  
Required: No

 ** score **   <a name="awscostmanagement-Type-CostOptimizationHub_MetricsByTime-score"></a>
The efficiency score for this time period. The score represents a measure of how effectively the cloud resources are being optimized, with higher scores indicating better optimization performance.  
Type: Double  
Required: No

 ** spend **   <a name="awscostmanagement-Type-CostOptimizationHub_MetricsByTime-spend"></a>
The total spending amount for this time period.  
Type: Double  
Required: No

 ** timestamp **   <a name="awscostmanagement-Type-CostOptimizationHub_MetricsByTime-timestamp"></a>
The timestamp for this data point. The format depends on the granularity: YYYY-MM-DD for daily metrics, or YYYY-MM for monthly metrics.  
Type: String  
Required: No

## See Also


For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/cost-optimization-hub-2022-07-26/MetricsByTime) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/cost-optimization-hub-2022-07-26/MetricsByTime) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/cost-optimization-hub-2022-07-26/MetricsByTime) 