Alert Template can be personalized by including dynamic variables that are turned to the current system values upon sending an alert.

Syntax of Dynamic Templates

Dotcom-Monitor supports dynamic templates built upon Microsoft’s Razor parsing engine. Introduction to Razor syntax can be found here.

Customize Your Template with Dotcom-Monitor System Variables

Find a list of the most common system variables that can be used in a custom alert template here. For more details, please explore the Dotcom-Monitor ObjectModel and refer to the examples provided in this article.

Dotcom-Monitor ObjectModel

Find the Dotcom-Monitor ObjectModel class diagram with the classes’s source code below. Use the attributes as dynamic variables in the Alert Template script.

  • Dotcom-Monitor ObjectModel

  • MVTemplateModel (MetricsView Platform)

  • SVTemplateModel (ServerView Platform)

  • UVTemplateModel (UserView/BrowserView Platform)

  • Response

  • Device

  • Monitor

  • Task

  • State

Examples of Alert Templates

  • Basic JSON Template

  • Comprehensive JSON Template

  • UserView/BrowserView Device TXT Template

  • ServerView Device TXT Template

  • MetricsView Device TXT Template

For more real examples or questions, create a ticket.