# Measurement

A message representing a Measurement of a Trial. A Measurement contains the Metrics got by executing a Trial using suggested hyperparameter values.
Fields `elapsedDuration` ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#duration` format)`` Output only. time that the Trial has been running at the point of this Measurement.

A duration in seconds with up to nine fractional digits, ending with '`s`'. Example: `"3.5s"`.
`stepCount` `string (https://developers.google.com/discovery/v1/type-format format)` Output only. The number of steps the machine learning model has been trained for. Must be non-negative.
`metrics[]` ``object (`https://docs.cloud.google.com/gemini-enterprise-agent-platform/reference/rest/v1/Measurement#Metric`)`` Output only. A list of metrics got by evaluating the objective functions using suggested Parameter values.

| JSON representation |
|---|
| ``` { "elapsedDuration": string, "stepCount": string, "metrics": [ { object (`https://docs.cloud.google.com/gemini-enterprise-agent-platform/reference/rest/v1/Measurement#Metric`) } ] } ``` |

## Metric

A message representing a metric in the measurement.
Fields `metricId` `string` Output only. The id of the Metric. The Metric should be defined in `https://docs.cloud.google.com/gemini-enterprise-agent-platform/reference/rest/Shared.Types/StudySpec#FIELDS.metrics`.
`value` `number` Output only. The value for this metric.

| JSON representation |
|---|
| ``` { "metricId": string, "value": number } ``` |