Skip to content

Agent log storage #2274

@mssalvatore

Description

@mssalvatore

Refactor

Component(s) to be refactored

  • monkey_island.cc.resources.log
  • agent

Explanation

Agent log contents can now be stored in the Agent model.

Tasks

  • Define IAgentLogRepository (0d) @mssalvatore
  • Implement an FileAgentLogRepository (0d) - @shreyamalviya
  • Remove log_contents field from Agent model (0d) @ilija-lazoroski
  • Provide a new, better-named API endpoint for agents to push their logs to ("/api/agent-logs/{AGENT_ID}") (0d) @ilija-lazoroski
    • Implement PUT
    • Implement GET
  • Push logs to the new endpoint (0d) - @shreyamalviya
  • Subscribe FileAgentLogRepository.reset() to CLEAR_SIMULATION_DATA` (0d) - @shreyamalviya

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions