O365 to Exchange Total Duration Performance Collection

O365SMP.O365toExchangeTotal.Performance.Collection.Rule (Rule)

This rule measures the total amount of time it takes to send a test email from O365 and verify receipt of a test email from O365 to Exchange and collects the Time in MS.

Element properties:

TargetO365.SMP.WatcherNode.Registry.Class
CategoryPerformanceCollection
EnabledFalse
Alert GenerateFalse
RemotableTrue

Member Modules:

ID Module Type TypeId RunAs 
DataSource DataSource O365SMP.O365toExchange.MailFlow.Monitor.DataSourceModuleType Default
System.Performance.DataGenericMapper ConditionDetection System.Performance.DataGenericMapper Default
Microsoft.SystemCenter.CollectPerformanceData WriteAction Microsoft.SystemCenter.CollectPerformanceData Default
Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData WriteAction Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData Default

Source Code:

<Rule ID="O365SMP.O365toExchangeTotal.Performance.Collection.Rule" Enabled="false" Target="O365.SMP.WatcherNode.Registry.Class" ConfirmDelivery="false" Remotable="true" Priority="Normal" DiscardLevel="100">
<Category>PerformanceCollection</Category>
<DataSources>
<DataSource ID="DataSource" TypeID="O365SMP.O365toExchange.MailFlow.Monitor.DataSourceModuleType">
<TimeoutSeconds>300</TimeoutSeconds>
<IntervalSeconds>900</IntervalSeconds>
<SenderUser>$RunAs[Name="O365SMP.O365.Sender.Profile"]/UserName$</SenderUser>
<ReceiverUser>$RunAs[Name="O365SMP.Exchange.Reciever.Profile"]/UserName$</ReceiverUser>
<SenderPassword>$RunAs[Name="O365SMP.O365.Sender.Profile"]/Password$</SenderPassword>
<ReceiverPassword>$RunAs[Name="O365SMP.Exchange.Reciever.Profile"]/Password$</ReceiverPassword>
<O365URL>Enter O365 EWS URL</O365URL>
<ExchangeURL>Enter Exchange EWS URL</ExchangeURL>
<SleepINT>5</SleepINT>
</DataSource>
</DataSources>
<ConditionDetection ID="System.Performance.DataGenericMapper" TypeID="Performance!System.Performance.DataGenericMapper">
<ObjectName>Total Duration</ObjectName>
<CounterName>Response in MS</CounterName>
<InstanceName>O365toExchange.MailFlow</InstanceName>
<Value>$Data/Property[@Name='Total Duration in ms']$</Value>
</ConditionDetection>
<WriteActions>
<WriteAction ID="Microsoft.SystemCenter.CollectPerformanceData" TypeID="SC!Microsoft.SystemCenter.CollectPerformanceData"/>
<WriteAction ID="Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData" TypeID="SCDW!Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData"/>
</WriteActions>
</Rule>