public ActionResult Sample() { var samples = PerformanceSampler.ListInstances().Select(i => new { name = i, duration = PerformanceSampler.ForInstance(i).SampleAverageMessageHandlingDuration(), receivedRate = PerformanceSampler.ForInstance(i).SampleMessagesReceivedRate(), sentRate = PerformanceSampler.ForInstance(i).SampleMessagesSentRate(), timeStamp = DateTime.Now, } ).ToList(); return(Json(samples, JsonRequestBehavior.AllowGet)); }
public ActionResult Index() { ViewBag.Instances = PerformanceSampler.ListInstances(); return(View()); }