batchPutMetrics method

Future<BatchPutMetricsResponse> batchPutMetrics({
  1. required List<RawMetricData> metricData,
  2. required String trialComponentName,
})

Used to ingest training metrics into SageMaker. These metrics can be visualized in SageMaker Studio.

Parameter metricData : A list of raw metric values to put.

Parameter trialComponentName : The name of the Trial Component to associate with the metrics. The Trial Component name must be entirely lowercase.

Implementation

Future<BatchPutMetricsResponse> batchPutMetrics({
  required List<RawMetricData> metricData,
  required String trialComponentName,
}) async {
  final $payload = <String, dynamic>{
    'MetricData': metricData,
    'TrialComponentName': trialComponentName,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'PUT',
    requestUri: '/BatchPutMetrics',
    exceptionFnMap: _exceptionFns,
  );
  return BatchPutMetricsResponse.fromJson(response);
}