郵件觀察儀的使用
1. 添加監聽器—郵件觀察儀
[img]http://dl2.iteye.com/upload/attachment/0103/2023/d16e8da2-8a9a-37f5-ae68-c19173cf7bf2.png[/img]
2. 設定郵件資訊
[img]http://dl2.iteye.com/upload/attachment/0103/2025/95cb4632-ec0c-3294-95e3-f6fdba80d1a0.png[/img]
3. 對Failure Limit ,Success Limit參數的解釋
Success Limit: Once this number of successful responses is exceeded after previously reaching the failure limit , a success email is sent. The mailer will thus only send out messages in a sequence of failed-succeeded-failed-succeeded, etc.
Failure Limit: Once this number of failed responses is exceeded, a failure email is sent - i.e. set the count to 0 to send an e-mail on the first failure.(一旦失敗的事物數超過這個值,就會發生失敗的郵件)
郵件的發送情況分如下三種情況:
1)不發送郵件:
如果始終沒有達到設定失敗數,則不發送郵件;
2)隻有失敗郵件:
如果達到設定失敗的個數,在失敗後開始從0統計成功的次數,如果始終沒有達到設定的成功值,則隻發送失敗的郵件;
3)失敗和成功的郵件
如果達到失敗的個數(先發送一個失敗的郵件),同時在達到失敗的個數後,從0開始統計成功的次數,如果達到設定成功數,則發送一個成功的郵件;然後再從0開始統計失敗的次數,如果失敗次數達到設定的數,則發送一個失敗郵件,再從0開始統計成功的次數,如果成功發送成功郵件;如此往複,是以發送的郵件序列應該為:失敗-成功-失敗-成功
(是以成功率100%時是不會發生郵件的,成功的郵件隻有在滿足下面的條件後才會發送:
在有失敗發生,且失敗數超過設定的值後,且成功數也超過設定的值)
4. 關于郵件内容
收到的郵件樣式如下,隻有标題是自己填寫的,郵件内容是自動生成的。
[img]http://dl2.iteye.com/upload/attachment/0103/2027/a6f82c41-90c2-3fd7-b5a0-53aa6be80d88.png[/img]