class_docstr: Defines a container of event triggers' metadata.
class_docstr_tok: ["Defines","a","container","of","event","triggers","'","metadata","."]
code: def from_runs(cls, run_objs):
      run_objs.sort(key=lambda x: x.finished_at, reverse=True)
      trigger = Trigger(
          [
              {
                  "type": "run",
                  "timestamp": run_obj.finished_at,
                  "name": "metaflow.%s.%s"
                  % (run_obj.parent.id, run_obj["end"].id),
                  "id": run_obj.end_task.pathspec,
              }
              for run_obj in run_objs
          ]
      )
      trigger._runs = run_objs
      return trigger
  
file_path: metaflow/metaflow/events.py
imports: from collections import OrderedDict, namedtuple
  from datetime import datetime
label_desc: Use image node_id 2 for calling the Trigger obj's underlying member method code with example usage: obj.from_runs(cls, run_objs) and returns: trigger