Last active
May 11, 2018 18:22
-
-
Save AlonAm/d37e580788eaec8d62858f5bb0cbd246 to your computer and use it in GitHub Desktop.
AnyStatus Plugin
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using AnyStatus.API; | |
using System.ComponentModel; | |
using System.ComponentModel.DataAnnotations; | |
[DisplayName("Health Check Example")] | |
[DisplayColumn("My Category")] | |
[Description("My health check description.")] | |
public class MyHealthCheck : Widget, IHealthCheck, IWebPage, ISchedulable, IStartable, IStoppable, IRestartable | |
{ | |
[Required] | |
[Category("My property category")] | |
[Description("My property description.")] | |
public string MyProperty { get; set; } | |
[Browsable(false)] //this attribute tells AnyStatus to hide the property from the user. | |
public string URL => "https://my-health-check-web-page-URL"; //this URL address will open when clicking on "Open in Browser" in AnyStatus. | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment