Example #1
0
        public ActionResult MemUsage()
        {
            string[] blobNames = new string[1];
            blobNames[0] = "nuget-prod-0-search" + @"\Memory\Available MBytes" + string.Format("{0:MMdd}", DateTimeUtility.GetPacificTimeNow());

            return(PartialView("~/Views/Shared/PartialChart.cshtml", ChartingUtilities.GetLineChartFromBlobName(blobNames, "Memory_Usage_todayInMB", 24 * 4, 800)));
        }
        public ActionResult RestoreTrend()
        {
            int    hour     = 30;
            string blobName = "Restore" + hour + "Day";

            return(PartialView("~/Views/Shared/PartialChart.cshtml", ChartingUtilities.GetLineChartFromBlobName(blobName, "Restore_Trend_For_Last_" + hour + "_Day", 24, 700)));
        }
Example #3
0
        public ActionResult CpuUsage()
        {
            string[] blobNames = new string[1];
            blobNames[0] = "nuget-prod-0-search" + @"\Processor(_Total)\% Processor Time" + string.Format("{0:MMdd}", DateTimeUtility.GetPacificTimeNow());

            return(PartialView("~/Views/Shared/PartialChart.cshtml", ChartingUtilities.GetLineChartFromBlobName(blobNames, "CpuUsagetoday", 24 * 4, 800)));
        }
Example #4
0
 public ActionResult DBConnectionsThisWeek()
 {
     string[] blobNames = new string[8];
     for (int i = 0; i < 8; i++)
     {
         blobNames[i] = "DBConnections" + string.Format("{0:MMdd}", DateTimeUtility.GetPacificTimeNow().AddDays(-i));
     }
     return(PartialView("~/Views/Shared/PartialChart.cshtml", ChartingUtilities.GetLineChartFromBlobName(blobNames, "DBConnections", 50, 600)));
 }
 public ActionResult PackageRestoreThisWeek()
 {
     string[] blobNames = new string[8];
     for (int i = 0; i < 8; i++)
     {
         blobNames[i] = "package.restore.download" + string.Format("{0:MMdd}", DateTimeUtility.GetPacificTimeNow().AddDays(-i)) + "DetailedReport";
     }
     return(PartialView("~/Views/Shared/PartialChart.cshtml", ChartingUtilities.GetLineChartFromBlobName(blobNames, "PackageRestoreThisWeek", 24, 800)));
 }
 public ActionResult UsersThiSWeek()
 {
     string[] blobNames = new string[4];
     for (int i = 0; i < 4; i++)
     {
         blobNames[i] = "Users" + string.Format("{0:MMdd}", DateTimeUtility.GetPacificTimeNow().AddDays(-i)) + "HourlyReport";
     }
     return(PartialView("~/Views/Shared/PartialChart.cshtml", ChartingUtilities.GetLineChartFromBlobName(blobNames, "UsersPerHour", 24, 800)));
 }
Example #7
0
        public ActionResult LatencyReport()
        {
            string today = String.Format("{0:yyyy-MM-dd}", DateTimeUtility.GetPacificTimeNow());

            string[] blobNames = new string[3];
            blobNames[0] = "UploadPackageTimeElapsed" + today;
            blobNames[1] = "SearchPackageTimeElapsed" + today;
            blobNames[2] = "DownloadPackageTimeElapsed" + today;
            return(PartialView("~/Views/Shared/PartialChart.cshtml", ChartingUtilities.GetLineChartFromBlobName(blobNames, "LatencyInMilliseconds", 3, 800)));
        }
        public ActionResult OperationTrend()
        {
            int hour = 30;

            string[] Operation = new JavaScriptSerializer().Deserialize <string[]>(BlobStorageService.Load("OperationType.json"));

            List <string> blobNames = new List <string>();

            foreach (string opt in Operation)
            {
                blobNames.Add(opt + hour + "Day");
            }
            return(PartialView("~/Views/Shared/PartialChart.cshtml", ChartingUtilities.GetLineChartFromBlobName(blobNames.ToArray(), "Operations_Trend_For_Last_" + hour + "_Day", 24, 700)));
        }
Example #9
0
 public ActionResult DBConnections()
 {
     return(PartialView("~/Views/Shared/PartialChart.cshtml", ChartingUtilities.GetLineChartFromBlobName("DBConnections" + string.Format("{0:MMdd}", DateTimeUtility.GetPacificTimeNow()), "DBConnections", 12)));
 }
 public ActionResult ResponseTimeOverview()
 {
     string[] blobNames = new string[] { "feed.raw.packages.listHourlyReport", "package.restore.downloadHourlyReport", "package.restore.lookupHourlyReport", "feed.top.30.by.downloadsHourlyReport", "packages.page.searchHourlyReport" };
     return(PartialView("~/Views/Shared/PartialChart.cshtml", ChartingUtilities.GetLineChartFromBlobName(blobNames, "PingdomResponsesInMillSec")));
 }
Example #11
0
 public ActionResult Throughput()
 {
     return(PartialView("~/Views/Shared/PartialChart.cshtml", ChartingUtilities.GetLineChartFromBlobName("IISRequests" + string.Format("{0:MMdd}", DateTimeUtility.GetPacificTimeNow()), "RequestsPerHour")));
 }
Example #12
0
 public ActionResult ErrorRate()
 {
     return(PartialView("~/Views/Shared/PartialChart.cshtml", ChartingUtilities.GetLineChartFromBlobName("ErrorRate" + string.Format("{0:MMdd}", DateTimeUtility.GetPacificTimeNow()), "ErrorsPerHour")));
 }