Skip to content

Instantly share code, notes, and snippets.

@AlonAm
Last active May 11, 2018 18:22
Show Gist options
  • Save AlonAm/d37e580788eaec8d62858f5bb0cbd246 to your computer and use it in GitHub Desktop.
Save AlonAm/d37e580788eaec8d62858f5bb0cbd246 to your computer and use it in GitHub Desktop.
AnyStatus Plugin
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