產生交易失敗 CSM 事件的警示

Microsoft.SystemCenter.Apm.CsmWebPageTransaction.AlertAppFailureAspectRule (Rule)

Knowledge Base article:

摘要

當設定交易的用戶端例外狀況事件總數超過監視閾值時,物件狀態會變為狀況不良。

原因

用戶端應用程式失敗的警示是由網際網路瀏覽器中未處理的 JavaScript 例外狀況所造成。 警示詳細資料會顯示與例外狀況相關的資訊,連同例外狀況發生時擷取的堆疊追蹤和詳細的瀏覽器狀態資料。 用戶端例外狀況是由應用程式程式碼中的錯誤所造成,了解造成原因需要分析警示詳細資料所提供的例外狀況堆疊追蹤和資料。

解決方式

若要解決用戶端應用程式中未處理的 JavaScript 例外狀況,請參閱警示所提供的例外狀況詳細資料。 解決應用程式例外狀況通常需要存取應用程式原始碼。

您可以使用 [警示內容] 索引標籤上 [警示描述] 中事件詳細資料中提供的連結來存取與此警示相關的其他詳細資訊。 該連結會在 [Application Diagnostics] 主控台中開啟事件。 [Application Diagnostics] 主控台內含與此事件相關的資訊,以及偵測到的相關及類似事件。

Element properties:

TargetMicrosoft.SystemCenter.Apm.CsmWebPageTransaction
CategoryAlert
EnabledFalse
Alert GenerateTrue
Alert SeverityWarning
Alert PriorityNormal
RemotableFalse
Alert Message
用戶端頁面應用程式例外狀況
於交易 {3} 的 {2} 上之應用程式 {1} 中偵測到 {0}。 如需詳細資訊,請使用下列連結: $Url[Query='{4}']/APMEvent$

Member Modules:

ID Module Type TypeId RunAs 
LOBProvider DataSource Microsoft.SystemCenter.Apm.Csm.CsmWebPageTransaction.LobDataProvider Default
AlertWriteAction WriteAction System.Health.GenerateAlert Default

Source Code:

<Rule ID="Microsoft.SystemCenter.Apm.CsmWebPageTransaction.AlertAppFailureAspectRule" Enabled="false" ConfirmDelivery="false" Target="Microsoft.SystemCenter.Apm.CsmWebPageTransaction" Remotable="false">
<Category>Alert</Category>
<DataSources>
<DataSource ID="LOBProvider" TypeID="Microsoft.SystemCenter.Apm.Csm.CsmWebPageTransaction.LobDataProvider">
<Name>$Target/Host/Property[Type="AL!Microsoft.SystemCenter.Apm.ApplicationInstanceBase"]/ApplicationName$ (Client)</Name>
<AspectType>applicationfailure</AspectType>
<RootName>$Target/Property[Type="Microsoft.SystemCenter.Apm.CsmWebPageTransaction"]/PageName$</RootName>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="AlertWriteAction" TypeID="Health!System.Health.GenerateAlert">
<Priority>1</Priority>
<Severity>1</Severity>
<AlertMessageId>$MPElement[Name='Microsoft.SystemCenter.Apm.CsmWebPageTransaction.AlertAppFailureAspectRule.AlertMessage']$</AlertMessageId>
<AlertParameters>
<AlertParameter1>$Data/EventData/problemDescription$</AlertParameter1>
<AlertParameter2>$Target/Host/Property[Type="AL!Microsoft.SystemCenter.Apm.ApplicationInstanceBase"]/ApplicationName$</AlertParameter2>
<AlertParameter3>$Target/Host/Host/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/PrincipalName$</AlertParameter3>
<AlertParameter4>$Target/Property[Type="AL!Microsoft.SystemCenter.Apm.TransactionBase"]/TransactionName$</AlertParameter4>
<AlertParameter5>$Data/EventData/ViewDetail$</AlertParameter5>
</AlertParameters>
<Suppression>
<SuppressionValue>$Data/EventData/eventConsolidationHash$</SuppressionValue>
</Suppression>
<Custom1>ApplicationFailure</Custom1>
</WriteAction>
</WriteActions>
</Rule>