Office 365 Connection State monitor type

Microsoft.SystemCenter.O365.MonitorType.ConnectionState (UnitMonitorType)

Connection state monitor type for Office 365 Subscription

Element properties:

RunAsMicrosoft.SystemCenter.O365.RunAsProfile.Proxy
AccessibilityInternal
Support Monitor RecalculateFalse

Member Modules:

ID Module Type TypeId RunAs 
Trigger DataSource System.Scheduler Default
CheckConnection ProbeAction Microsoft.SystemCenter.O365.ProbeAction.ConnectionInfo Default
IsError ConditionDetection System.ExpressionFilter Default
IsSuccessful ConditionDetection System.ExpressionFilter Default

Overrideable Parameters:

IDParameterTypeSelectorDisplay NameDescription
IntervalSecondsint$Config/IntervalSeconds$Interval SecondsInterval Seconds
SyncTimestring$Config/SyncTime$Synchronization TimeSynchronization Time

Source Code:

<UnitMonitorType ID="Microsoft.SystemCenter.O365.MonitorType.ConnectionState" Accessibility="Internal" RunAs="Microsoft.SystemCenter.O365.RunAsProfile.Proxy">
<MonitorTypeStates>
<MonitorTypeState ID="Success" NoDetection="false"/>
<MonitorTypeState ID="Error" NoDetection="false"/>
</MonitorTypeStates>
<Configuration>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="APIEndPoint" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="IntervalSeconds" type="xsd:int"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="SyncTime" type="xsd:string"/>
</Configuration>
<OverrideableParameters>
<OverrideableParameter ID="IntervalSeconds" ParameterType="int" Selector="$Config/IntervalSeconds$"/>
<OverrideableParameter ID="SyncTime" ParameterType="string" Selector="$Config/SyncTime$"/>
</OverrideableParameters>
<MonitorImplementation>
<MemberModules>
<DataSource ID="Trigger" TypeID="System!System.Scheduler">
<Scheduler>
<SimpleReccuringSchedule>
<Interval>$Config/IntervalSeconds$</Interval>
<SyncTime>$Config/SyncTime$</SyncTime>
</SimpleReccuringSchedule>
<ExcludeDates/>
</Scheduler>
</DataSource>
<ProbeAction ID="CheckConnection" TypeID="Microsoft.SystemCenter.O365.ProbeAction.ConnectionInfo">
<APIEndPoint>$Config/APIEndPoint$</APIEndPoint>
<UserName>$RunAs[Name="Microsoft.SystemCenter.O365.RunAsProfile.Password"]/UserName$</UserName>
<Password>$RunAs[Name="Microsoft.SystemCenter.O365.RunAsProfile.Password"]/Password$</Password>
</ProbeAction>
<ConditionDetection ID="IsSuccessful" TypeID="System!System.ExpressionFilter">
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">Property[@Name='Status']</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">StatusOk</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</ConditionDetection>
<ConditionDetection ID="IsError" TypeID="System!System.ExpressionFilter">
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">Property[@Name='Status']</XPathQuery>
</ValueExpression>
<Operator>NotEqual</Operator>
<ValueExpression>
<Value Type="String">StatusOk</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</ConditionDetection>
</MemberModules>
<RegularDetections>
<RegularDetection MonitorTypeStateID="Success">
<Node ID="IsSuccessful">
<Node ID="CheckConnection">
<Node ID="Trigger"/>
</Node>
</Node>
</RegularDetection>
<RegularDetection MonitorTypeStateID="Error">
<Node ID="IsError">
<Node ID="CheckConnection">
<Node ID="Trigger"/>
</Node>
</Node>
</RegularDetection>
</RegularDetections>
</MonitorImplementation>
</UnitMonitorType>