Company
Date Published
Author
Joydip Kanjilal
Word count
2114
Language
English
Hacker News points
None

Summary

The text discusses how to retrieve performance stats of an ASP.NET Core 5 web application using C# and send out text notifications at pre-configured intervals of time using the Vonage SMS API. The application uses Quartz.NET for background jobs, NLog for logging data, and custom classes to encapsulate the functionality of sending notifications and retrieving performance stats. The application is configured by setting up dependencies such as NuGet packages, a Vonage API account, and configuration variables in the appsettings.json file. Once set up, the application schedules a job using a custom scheduler that runs every 5 seconds and sends notifications when CPU or memory usage crosses predefined thresholds.