annotate ServerMonitor/Attributes.cs @ 22:48044d9ac000

Change default check interval from 5 seconds to 5 minutes.
author Brad Greco <brad@bgreco.net>
date Thu, 30 May 2019 21:40:02 -0400
parents 68d7834dc28e
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
3e1a2131f897 Initial commit. Ping check, scheduling, UI working. SSH check mostly working.
Brad Greco <brad@bgreco.net>
parents:
diff changeset
1 using System;
3e1a2131f897 Initial commit. Ping check, scheduling, UI working. SSH check mostly working.
Brad Greco <brad@bgreco.net>
parents:
diff changeset
2
3e1a2131f897 Initial commit. Ping check, scheduling, UI working. SSH check mostly working.
Brad Greco <brad@bgreco.net>
parents:
diff changeset
3 namespace ServerMonitorApp
3e1a2131f897 Initial commit. Ping check, scheduling, UI working. SSH check mostly working.
Brad Greco <brad@bgreco.net>
parents:
diff changeset
4 {
17
68d7834dc28e More comments.
Brad Greco <brad@bgreco.net>
parents: 0
diff changeset
5 /// <summary>
68d7834dc28e More comments.
Brad Greco <brad@bgreco.net>
parents: 0
diff changeset
6 /// Attribute for use by check controls to indicate
68d7834dc28e More comments.
Brad Greco <brad@bgreco.net>
parents: 0
diff changeset
7 /// the type of check they correspond to.
68d7834dc28e More comments.
Brad Greco <brad@bgreco.net>
parents: 0
diff changeset
8 /// </summary>
0
3e1a2131f897 Initial commit. Ping check, scheduling, UI working. SSH check mostly working.
Brad Greco <brad@bgreco.net>
parents:
diff changeset
9 internal class CheckTypeAttribute : Attribute
3e1a2131f897 Initial commit. Ping check, scheduling, UI working. SSH check mostly working.
Brad Greco <brad@bgreco.net>
parents:
diff changeset
10 {
3e1a2131f897 Initial commit. Ping check, scheduling, UI working. SSH check mostly working.
Brad Greco <brad@bgreco.net>
parents:
diff changeset
11 public Type CheckType { get; private set; }
3e1a2131f897 Initial commit. Ping check, scheduling, UI working. SSH check mostly working.
Brad Greco <brad@bgreco.net>
parents:
diff changeset
12
3e1a2131f897 Initial commit. Ping check, scheduling, UI working. SSH check mostly working.
Brad Greco <brad@bgreco.net>
parents:
diff changeset
13 public CheckTypeAttribute(Type checkType) { CheckType = checkType; }
3e1a2131f897 Initial commit. Ping check, scheduling, UI working. SSH check mostly working.
Brad Greco <brad@bgreco.net>
parents:
diff changeset
14 }
3e1a2131f897 Initial commit. Ping check, scheduling, UI working. SSH check mostly working.
Brad Greco <brad@bgreco.net>
parents:
diff changeset
15
17
68d7834dc28e More comments.
Brad Greco <brad@bgreco.net>
parents: 0
diff changeset
16 /// <summary>
68d7834dc28e More comments.
Brad Greco <brad@bgreco.net>
parents: 0
diff changeset
17 /// Attribute for use by checks to determine the order
68d7834dc28e More comments.
Brad Greco <brad@bgreco.net>
parents: 0
diff changeset
18 /// they appear in the check type selection combo box.
68d7834dc28e More comments.
Brad Greco <brad@bgreco.net>
parents: 0
diff changeset
19 /// </summary>
0
3e1a2131f897 Initial commit. Ping check, scheduling, UI working. SSH check mostly working.
Brad Greco <brad@bgreco.net>
parents:
diff changeset
20 internal class DisplayWeightAttribute : Attribute
3e1a2131f897 Initial commit. Ping check, scheduling, UI working. SSH check mostly working.
Brad Greco <brad@bgreco.net>
parents:
diff changeset
21 {
3e1a2131f897 Initial commit. Ping check, scheduling, UI working. SSH check mostly working.
Brad Greco <brad@bgreco.net>
parents:
diff changeset
22 public int DisplayWeight { get; private set; }
3e1a2131f897 Initial commit. Ping check, scheduling, UI working. SSH check mostly working.
Brad Greco <brad@bgreco.net>
parents:
diff changeset
23
3e1a2131f897 Initial commit. Ping check, scheduling, UI working. SSH check mostly working.
Brad Greco <brad@bgreco.net>
parents:
diff changeset
24 public DisplayWeightAttribute(int displayWeight) { DisplayWeight = displayWeight; }
3e1a2131f897 Initial commit. Ping check, scheduling, UI working. SSH check mostly working.
Brad Greco <brad@bgreco.net>
parents:
diff changeset
25 }
3e1a2131f897 Initial commit. Ping check, scheduling, UI working. SSH check mostly working.
Brad Greco <brad@bgreco.net>
parents:
diff changeset
26 }