CollectorEntry

This class provides a way to encapsulate collectors inside a MonitorPack. It provide ways to do the following:
  • Specify collector dependencies
  • A way to enable/disable a collector
  • Keeps last known state/details/error
  • House the custom configuration of the collector

public class CollectorEntry
{
    #region Properties
    public string Name { get; set; }
    public string UniqueId { get; set; }
    public bool Enabled { get; set; }
    public bool IsFolder { get; set; }
    public string CollectorRegistrationName { get; set; }
    public ICollector Collector { get; set; }
    public string Configuration { get; set; }
    public string ParentCollectorId { get; set; }
    public bool CollectOnParentWarning { get; set; }
    public MonitorStates LastMonitorState { get; set; }
    public CollectorMessage LastMonitorDetails { get; set; }
    public DateTime LastStateChange { get; set; }
    public int RepeatAlertInXMin { get; set; }
    public ServiceWindows ServiceWindows { get; set; }
    public int AlertOnceInXMin { get; set; }
    public DateTime LastAlertTime { get; set; }
    public object Tag { get; set; }
    #endregion

    #region Get/Set configuration
    public static CollectorEntry FromConfig(XmlElement xmlCollectorEntry)
    public string ToConfig()
    #endregion

    public static ICollector CreateCollectorEntry(string assemblyPath, string className)
    public void ShowStatusDetails()
    public override string ToString()
}

Last edited Sep 12, 2011 at 8:38 AM by RudolfHenning, version 4

Comments

No comments yet.