﻿<?xml version="1.0" encoding="utf-8" ?>
<!-- This is the configuration file used by the EwsErrorDetectionAnalyzer.
Transient Exceptions node contains list of transient exceptions that are common to all features that need to be ignored.
Each feature can be defined with the following elements. Elements marked * are Mandatory
Name*: Name of the feature
Activity (API*) : Server API
MinUsers: Min no of users to be impacted by an expection to raise an alert
MinErrors: Min no of times an user is impacted by an exception to raise an alert
Interval: Monitoring interval for the feature. This is how long back we will look for errors in the logs
Exception(s): List of Exceptions that are whitelisted. We will never alert for these exceptions
Non mandatory params inherit the default values present in the EDS config file Microsoft.Exchange.Diagnostics.Service.exe.config

NOTE: Don't remove the TransientException and Test features from the XML since these are used by unit tests
-->
<Configuration>
  <TransientExceptions>
    <Exception TypeName="TransientException" />
    <!-- this exception is commonly occuring one and not related to anything that an oncall can do as its an admin issue --> 
    <Exception TypeName="Microsoft.Exchange.Services.Core.Types.InvalidSmtpAddressException" />
    <!--This exception is quiet common and is an expected exception -->
    <Exception TypeName="System.ServiceModel.CommunicationException" />
  </TransientExceptions>
  <Feature Name="TestFeature1"
           Activity="TestApi1"
           >
    <Exception TypeName="TestException1" />
    <Exception TypeName="TestException2" />
  </Feature>
  <Feature Name="TestFeature2"
           Activity="TestApi2"
          />
  <Feature Name="TestFeature3"
           Activity="TestApi3"
           />  
  <Feature Name="Ews HD photo Upload Photo"
      Activity="GetUserPhoto">
    <Exception TypeName="TransientException" />
 <!--MailboxInfoStaleException (derived from ConnectionFailedPermanentException)
This exception is expected, and is retriable. 
 It means a cached EWS session is no longer valid, probably because the active copy of the user’s mailbox database has failed over or been switched over to another server. 
 EWS handles it and deletes the cached mailbox session so that a retry can succeed. 
-->
    <Exception TypeName="Microsoft.Exchange.Data.Storage.MailboxInfoStaleException" />
<!--ADConfigurationException:It is thrown for a variety of problems with the SMTP address provided to identify a mailbox, most of which are caused by administrator error-->
    <Exception TypeName="Microsoft.Exchange.Services.Core.Types.ADConfigurationException" />
    <Exception TypeName="Microsoft.Exchange.Services.Core.BailOutException" />
    <Exception TypeName="Microsoft.Exchange.Services.Core.Types.AuthZFailureException" />
    <Exception TypeName="Microsoft.Exchange.Services.Core.Types.RequestTimeoutException" />
    <Exception TypeName="Microsoft.Exchange.Diagnostics.ExAssertException" />
    <Exception TypeName="Microsoft.Exchange.Services.Core.Types.InvalidUserSidException" />
    <Exception TypeName="System.ServiceModel.CommunicationObjectAbortedException" />
    <Exception TypeName="Microsoft.Exchange.Data.Directory.ADPossibleOperationException" />
    <Exception TypeName="Microsoft.Exchange.Data.Directory.SystemConfiguration.OverBudgetException" />
    <Exception TypeName="Microsoft.Exchange.Services.Core.Types.ServiceAccessDeniedException" />
    <Exception TypeName="Microsoft.Exchange.Data.Directory.ADTopologyEndpointNotFoundException" />
    <Exception TypeName="Microsoft.Exchange.Data.Directory.Recipient.NonUniqueRecipientException" />
    <Exception TypeName="Client disconnected*" />
    <Exception TypeName="OverBudget*" />
  </Feature>  
</Configuration>