class_docstr: Specifies collection of metrics that the trial reported.
  
  Attributes:
      trial_id: The ID of the trial that reported the metric.
      trial_run_id: The ID of the trial run that reported the metric.
      steps_completed: The number of steps that the trial had completed when the metric was
          reported. Most generally, the value passed to a call to report_metrics as
          "steps_completed."
      end_time: The time when the metric was reported.
      metrics: A dict of metrics that the trial reported.
      group: The group that the metric was reported under. Usually either "validation" or
          "training", but this can be any value passed to master when reporting metrics during
          training (usually via a context's `report_metrics`).
      batch_metrics: <do not use>
class_docstr_tok: ["Specifies","collection","of","metrics","that","the","trial","reported",".","Attributes",":","trial_id",":","The","ID","of","the","trial","that","reported","the","metric",".","trial_run_id",":","The","ID","of","the","trial","run","that","reported","the","metric",".","steps_completed",":","The","number","of","steps","that","the","trial","had","completed","when","the","metric","was","reported",".","Most","generally",",","the","value","passed","to","a","call","to","report_metrics","as","``","steps_completed",".","''","end_time",":","The","time","when","the","metric","was","reported",".","metrics",":","A","dict","of","metrics","that","the","trial","reported",".","group",":","The","group","that","the","metric","was","reported","under",".","Usually","either","``","validation","''","or","``","training","''",",","but","this","can","be","any","value","passed","to","master","when","reporting","metrics","during","training","(","usually","via","a","context","'s","`","report_metrics","`",")",".","batch_metrics",":","<","do","not","use",">"]
docstr: @deprecated: Use steps_completed instead.
docstr_tok: ["@","deprecated",":","Use","steps_completed","instead","."]
code: def total_batches(self) -> int:
      """@deprecated: Use steps_completed instead."""
      return self.steps_completed
  
file_path: determined/harness/determined/common/experimental/metrics.py
imports: import dataclasses
  import datetime
  from typing import Any, Dict, List, Optional, cast
  from determined.common import util
  from determined.common.api import bindings
label_desc: Use image node_id 2 for calling the TrialMetrics obj's underlying member method code with example usage: obj.total_batches() and returns: self