addTrialMeasurement method
Adds a measurement of the objective metrics to a Trial. This measurement is assumed to have been taken before the Trial is complete.
Throws a http.ClientException if there were problems communicating with
the API service. Throws a StatusException if the API failed with a
Status message. Throws a ServiceException for any other failure.
Implementation
Future<Trial> addTrialMeasurement(AddTrialMeasurementRequest request) async {
final url = Uri.https(
_host,
'/v1beta1/${request.trialName}:addTrialMeasurement',
);
final response = await _client.post(url, body: request);
return Trial.fromJson(response);
}