

# MetricSpecification
<a name="API_MetricSpecification"></a>

An object containing information about a metric.

## Contents
<a name="API_MetricSpecification_Contents"></a>

**Important**  
This data type is a UNION, so only one of the following members can be specified when used or returned.

 ** Customized **   <a name="sagemaker-Type-MetricSpecification-Customized"></a>
Information about a customized metric.  
Type: [CustomizedMetricSpecification](API_CustomizedMetricSpecification.md) object  
Required: No

 ** Predefined **   <a name="sagemaker-Type-MetricSpecification-Predefined"></a>
Information about a predefined metric.  
Type: [PredefinedMetricSpecification](API_PredefinedMetricSpecification.md) object  
Required: No

## See Also
<a name="API_MetricSpecification_SeeAlso"></a>

For more information about using this API in one of the language-specific Amazon SDKs, see the following:
+  [Amazon SDK for C\+\+](https://docs.amazonaws.cn/goto/SdkForCpp/sagemaker-2017-07-24/MetricSpecification) 
+  [Amazon SDK for Java V2](https://docs.amazonaws.cn/goto/SdkForJavaV2/sagemaker-2017-07-24/MetricSpecification) 
+  [Amazon SDK for Ruby V3](https://docs.amazonaws.cn/goto/SdkForRubyV3/sagemaker-2017-07-24/MetricSpecification) 