Get the agent logs

This API will fetch the running logs messages for given agent id

Code

$http.get("https://api.agenty.com/2.0/logs/{AgentId}?key={ApiKey}")
            .success(function (response) {
               console.log(response)
            }).error(function (response) {
               console.log(response) 
            });

Sample output

{
  "agent_id": "78142457cb",
  "job_id": 199,
  "job_status": "Completed",
  "version": 35,
  "started_at": "2018-03-08 06:02:43Z",
  "completed_at": "2018-03-08 09:33:41Z",
  "collection": 0,
  "is_modified": false,
  "total": 173,
  "offset": 0,
  "limit": 25,
  "returned": 25,
  "result": [
     {
      "Time": "03-08-2018 06:02:57",
      "Event": "Executing",
      "Message": "extract prices example.scraping - JobId : 199, BatchId : 1004, BatchNumber : 1"
    },
    {
      "Time": "03-08-2018 06:02:57",
      "Event": "Info",
      "Message": "24 inputs added in queue"
    },
    {
      "Time": "03-08-2018 06:02:57",
      "Event": "Info",
      "Message": "Job started"
    },
    {
      "Time": "03-08-2018 06:02:57",
      "Event": "Info",
      "Message": "Requesting 1 of 24"
    },
    {
      "Time": "03-08-2018 06:02:57",
      "Event": "Traversed",
      "Message": "https://cdn.agenty.com/sample_content/list/ecommerce-product-list.html"
    },
    {
      "Time": "03-08-2018 06:02:57",
      "Event": "CSS",
      "Message": ".list-group-item-heading Extracted 6 matches"
    }
  ]
}