TFS Project Collection Availability Monitor

TeamFoundationServer2017.TfsProjectCollectionAvailabilityMonitor (UnitMonitor)

Checks the availability of a single Project Collection

Knowledge Base article:

Summary

This monitor checks availability of a Team Project Collection by calling the TFS Server APIs to query the list of associated projects.

Element properties:

TargetTeamFoundationServer2017.TfsProjectCollection
Parent MonitorSystem.Health.AvailabilityState
CategoryAvailabilityHealth
EnabledTrue
Alert GenerateFalse
Alert Auto ResolveTrue
Monitor TypeTeamFoundationServer2017.TfsPowerShellMonitor
RemotableTrue
AccessibilityPublic
RunAsTeamFoundationServer2017.Tfs2017UserProfile

Source Code:

<UnitMonitor ID="TeamFoundationServer2017.TfsProjectCollectionAvailabilityMonitor" Accessibility="Public" Enabled="true" Target="TeamFoundationServer2017.TfsProjectCollection" ParentMonitorID="Health!System.Health.AvailabilityState" Remotable="true" Priority="Normal" RunAs="TeamFoundationServer2017.Tfs2017UserProfile" TypeID="TeamFoundationServer2017.TfsPowerShellMonitor" ConfirmDelivery="false">
<Category>AvailabilityHealth</Category>
<OperationalStates>
<OperationalState ID="Error" MonitorTypeStateID="Error" HealthState="Warning"/>
<OperationalState ID="Success" MonitorTypeStateID="Success" HealthState="Success"/>
</OperationalStates>
<Configuration>
<ClassName>ProjectCollectionMonitor</ClassName>
<ObjectPath>$Target/Property[Type="TeamFoundationServer2017.TfsProjectCollection"]/ObjectPath$</ObjectPath>
<BaseInstallPath/>
<IntervalSeconds>600</IntervalSeconds>
<ScriptDebugEnabled>0</ScriptDebugEnabled>
</Configuration>
</UnitMonitor>