M365 MailFlow - ExchangeOnline Mailbox Cleanup AverageDeleteTimePerInboxMessage (ms) Performance Collection Rule

M365SMAIL.MailFlow.M365MailboxCleanup.AverageDeleteTimePerInboxMessage.ms.Performance.Collection.Rule (Rule)

This rule measures the average amount of time (ms) it takes to perform a message deletion.

Element properties:

TargetM365SMAIL.MailFlow.ExchangeOnline
CategoryPerformanceCollection
EnabledTrue
Alert GenerateFalse
RemotableTrue

Member Modules:

ID Module Type TypeId RunAs 
DS DataSource M365SMAIL.M365MailboxCleanup.DS Default
CD ConditionDetection System.Performance.DataGenericMapper Default
CollectToDB WriteAction Microsoft.SystemCenter.CollectPerformanceData Default
CollectToDW WriteAction Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData Default

Source Code:

<Rule ID="M365SMAIL.MailFlow.M365MailboxCleanup.AverageDeleteTimePerInboxMessage.ms.Performance.Collection.Rule" Target="M365SMAIL.MailFlow.ExchangeOnline" Enabled="true" ConfirmDelivery="false" Remotable="true" Priority="Normal" DiscardLevel="100">
<Category>PerformanceCollection</Category>
<DataSources>
<DataSource ID="DS" TypeID="M365SMAIL.M365MailboxCleanup.DS">
<ApiTokenScopeURL>$Target/Host/Property[Type="M365SL!M365SL.WatcherNode"]/ApiTokenScopeURL$</ApiTokenScopeURL>
<ApiTokenURL>$Target/Host/Property[Type="M365SL!M365SL.WatcherNode"]/ApiTokenURL$</ApiTokenURL>
<ApiURL>$Target/Host/Property[Type="M365SL!M365SL.WatcherNode"]/ApiURL$</ApiURL>
<M365_ClientID>$Target/Property[Type="M365SL!M365SL.M365ServiceComponent"]/M365_ClientID$</M365_ClientID>
<M365_ClientSecret>$Target/Property[Type="M365SL!M365SL.M365ServiceComponent"]/M365_ClientSecret$</M365_ClientSecret>
<M365_AccountName>$Target/Property[Type="M365SMAIL.MailFlow"]/M365_ReceiverEmailAddress$</M365_AccountName>
<M365_AccountPassword>$Target/Property[Type="M365SMAIL.MailFlow"]/M365_ReceiverPassword$</M365_AccountPassword>
<EventIDFilter/>
<IntervalSeconds>43400</IntervalSeconds>
<PoshLibraryPath/>
<ProbeActionTimeoutSeconds>300</ProbeActionTimeoutSeconds>
<MaxMessagesToKeep>100</MaxMessagesToKeep>
<MaxMessagesToDelete>500</MaxMessagesToDelete>
<SyncTime/>
<DeletionTimeoutSeconds>300</DeletionTimeoutSeconds>
<TenantName>$Target/Property[Type="M365SL!M365SL.M365ServiceComponent"]/TenantName$</TenantName>
<TLSVersion>$Target/Host/Property[Type="M365SL!M365SL.WatcherNode"]/TLSVersion$</TLSVersion>
<WorkflowName/>
<WriteToEventLog>false</WriteToEventLog>
</DataSource>
</DataSources>
<ConditionDetection ID="CD" TypeID="Perf!System.Performance.DataGenericMapper">
<ObjectName>M365Email</ObjectName>
<CounterName>AverageDeleteTimePerInboxMessageMS</CounterName>
<InstanceName>$Target/Property[Type="M365SL!M365SL.M365ServiceComponent"]/TenantName$:$Target/Property[Type="M365SL!M365SL.M365ServiceComponent"]/M365_AccountName$</InstanceName>
<Value>$Data/Property[@Name='AverageDeleteTimePerInboxMessageMS']$</Value>
</ConditionDetection>
<WriteActions>
<WriteAction ID="CollectToDB" TypeID="SC!Microsoft.SystemCenter.CollectPerformanceData"/>
<WriteAction ID="CollectToDW" TypeID="MSDL!Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData"/>
</WriteActions>
</Rule>