Exemple #1
0
        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));
        }
Exemple #2
0
 public ActionResult Index()
 {
     ViewBag.Instances = PerformanceSampler.ListInstances();
     return(View());
 }