public IActionResult Post(string testId, LogEventDto[] batch) { if (!healthService.GetIsHealthy()) { return(StatusCode(StatusCodes.Status503ServiceUnavailable)); } var logEvents = batch.Select(logEvent => logEvent.ToLogEvent()); logEventService.AddBatch(testId, logEvents); return(NoContent()); }