O365 to O365 Receive Duration Performance Collection
O365SMP.O365toO365Receive.Performance.Collection.Rule (Rule)
This rule measures the amount of time it takes to receive and verify a test email from O365 to O365 and collects the Time in MS.
Element properties:
Member Modules:
Source Code:
<Rule ID="O365SMP.O365toO365Receive.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.O365toO365.MailFlow.Monitor.DataSourceModuleType">
<TimeoutSeconds>300</TimeoutSeconds>
<IntervalSeconds>900</IntervalSeconds>
<SenderUser>$RunAs[Name="O365SMP.O365.Sender.Profile"]/UserName$</SenderUser>
<ReceiverUser>$RunAs[Name="O365SMP.O365.Receiver.Profile"]/UserName$</ReceiverUser>
<SenderPassword>$RunAs[Name="O365SMP.O365.Sender.Profile"]/Password$</SenderPassword>
<ReceiverPassword>$RunAs[Name="O365SMP.O365.Receiver.Profile"]/Password$</ReceiverPassword>
<O365URL>Enter O365 EWS URL</O365URL>
<SleepINT>5</SleepINT>
</DataSource>
</DataSources>
<ConditionDetection ID="System.Performance.DataGenericMapper" TypeID="Performance!System.Performance.DataGenericMapper">
<ObjectName>Receive Duration</ObjectName>
<CounterName>Response in MS</CounterName>
<InstanceName>O365toO365.MailFlow</InstanceName>
<Value>$Data/Property[@Name='Message Receive 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>