this could probably be extracted into mehotds `failed_reports_count` and `report_logs`, used directly when constructing the `foreman_report _hash`, so that this method would look like this:

```ruby
def create_foreman_report
        foreman_report = { "report" => {
            "host" => @host,
            "reported_at" => Time.now.utc.to_s,
            "status" => { "applied" => 0,
                               "restarted" => 0,
                               "failed" => failed_reports_count,
                               "failed_restarts" => 0,
                               "skipped" => 0,
                               "pending" => 0
                             },
            "metrics" => { "resources" => { "total" => 0 },
                               "time" => { "total" => 0 }
                             },
            "logs" => report_logs
            }
      }
```