grr/server/grr_response_server/hunt.py
def GetHuntOutputPluginErrors(hunt_id, offset, count):
  """Gets hunt's output plugins errors."""

  # TODO(user): this is a simplistic implementation that may return
  # more results than requested. Refactor and improve.
  flows = data_store.REL_DB.ReadHuntFlows(
      hunt_id,
      offset,
      count,
      filter_condition=db.HuntFlowsCondition.FLOWS_WITH_RESULTS_ONLY)
  errors = []
  for f in flows:
    for op_state in f.output_plugins_states:
      errors.extend(op_state.plugin_state["errors"])

  return errors
Gets hunt's output plugins errors.
Gets hunt's output plugins errors.
Gets hunt ' s output plugins errors .
def GetHuntOutputPluginErrors(hunt_id, offset, count):
  flows = data_store.REL_DB.ReadHuntFlows(
      hunt_id,
      offset,
      count,
      filter_condition=db.HuntFlowsCondition.FLOWS_WITH_RESULTS_ONLY)
  errors = []
  for f in flows:
    for op_state in f.output_plugins_states:
      errors.extend(op_state.plugin_state["errors"])
  return errors
def GetHuntOutputPluginErrors ( hunt_id , offset , count ) : flows = data_store . REL_DB . ReadHuntFlows ( hunt_id , offset , count , filter_condition = db . HuntFlowsCondition . FLOWS_WITH_RESULTS_ONLY ) errors = [ ] for f in flows : for op_state in f . output_plugins_states : errors . extend ( op_state . plugin_state [ "errors" ] ) return errors
Gets hunt's output plugins errors.
Gets hunt ' s output plugins errors .
"""Gets hunt's output plugins errors.""" # TODO(user): this is a simplistic implementation that may return # more results than requested. Refactor and improve.
hunt_id
offset
count