public ActionResult GenerateException(int numberOfExceptions) { AppInsightsLogs.Initialize(RoleName); var operationId = Guid.NewGuid().ToString("N"); for (var i = 0; i < numberOfExceptions; i++) { AppInsightsLogs.Instance.GenerateException(operationId); AppInsightsLogs.Instance.Flush(); } Logs.AppendLine($"[{DateTime.Now}] Flush {numberOfExceptions} exception(s) for {RoleName}"); return(Json(numberOfExceptions)); }
public ActionResult StartRequestSender() { AppInsightsLogs.Initialize(RoleName); InitializeRequestSenderTimer(10); return(Json(new object())); }
public ActionResult StartGenerationAvailability() { AppInsightsLogs.Initialize(RoleName); InitializeAvailabilityTimer(60); return(Json(new object())); }