braket.jobs.metrics module

braket.jobs.metrics.log_metric(metric_name: str, value: float | int, timestamp: float | None = None, iteration_number: int | None = None) None[source]

Records Braket Hybrid Job metrics.

Parameters:
  • metric_name (str) – The name of the metric.

  • value (Union[float, int]) – The value of the metric.

  • timestamp (Optional[float]) – The time the metric data was received, expressed as the number of seconds since the epoch. Default: Current system time.

  • iteration_number (Optional[int]) – The iteration number of the metric.