English 中文(简体)
ASP.Net Health Monitoring - How to check Requests Queued
原标题:

I have just discovered ASP.Net Health Monitoring - it looks awesome. I have been developing ASP.Net apps for years, and have even taken the Microsoft certs and have never seen it before. I can t believe it is so hidden. It must be one of the best kept secrets of .Net... anyway, I digress. Here is my question:

I would like to use ASP.Net Health Monitoring to do the following (below). I am having trouble working out exactly how I would achieve this. Any advice appreciated!

Goal 1:

  • Receive an email once a day
  • Email to contain a list of the number requests that were queued at 5 minute intervals throughout the day

E.G: I would like to receive an email like the following

~~Daily Request Queue Summary~~

  • 0:00 am - 2
  • 0:05 am - 10
  • 0:10 am - 7
  • ...

Goal 2: I would like to receive a warning email if the number of queued requests goes over X amount


~Update~

I know I can create a custom event. I also know that I can get the queued requests using the WebProcessStatistics class. Here are the things I am now struggling with

  • How can I get this event to fire every X many minuets? Can the WebHeartBeat event be used for this? I don t really understand how the WebHeartBeat event can be used
  • How can I get this information to go into a daily email? Is it just a question of setting up 24 hour buffering, or is there a better way?

Thanks

Thanks in advance for any help

问题回答

暂无回答




相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Transaction handling with TransactionScope

I am implementing Transaction using TransactionScope with the help this MSDN article http://msdn.microsoft.com/en-us/library/system.transactions.transactionscope.aspx I just want to confirm that is ...

System.Web.Mvc.Controller Initialize

i have the following base controller... public class BaseController : Controller { protected override void Initialize(System.Web.Routing.RequestContext requestContext) { if (...

Microsoft.Contracts namespace

For what it is necessary Microsoft.Contracts namespace in asp.net? I mean, in what cases I could write using Microsoft.Contracts;?

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签