Class/Check.Class.ps1

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
class Check
{
    [String]$Name
    [String]$Tag
    [UInt32]$Timeout
    [UInt32]$Grace
    [Uri]$PingURL
    [Uint32]$PingCount
    [Nullable[DateTime]]$LastPing
    [Nullable[DateTime]]$NextPing

    Check()
    {
        $this.Name
        $this.Tag
        $this.Timeout
        $this.Grace
        $this.PingURL
        $this.PingCount
        $this.LastPing
        $this.NextPing
    }
    Check([String]$Name,[String]$Tag,[UInt32]$Timeout,[UInt32]$Grace,[Uri]$PingURL,[Uint32]$PingCount,[Nullable[DateTime]]$LastPing,[Nullable[DateTime]]$NextPing)
    {
        $this.Name = $Name
        $this.Tag = $Tag
        $this.Timeout = $Timeout
        $this.Grace = $Grace
        $this.PingURL = $PingURL
        $this.PingCount = $PingCount
        $this.LastPing = $LastPing
        $this.NextPing = $NextPing
    }
}