可存取 Web 服務監視器類型

Microsoft.SQLServer.2012.ReportingServices.MonitorType.Instance.WebServiceAccessibleMonitor (UnitMonitorType)

資料庫連線監視器類型 - Reporing Services 執行個體

Element properties:

RunAsMicrosoft.SQLServer.2012.ReportingServices.RunAsProfile.Monitoring
AccessibilityInternal
Support Monitor RecalculateFalse

Member Modules:

ID Module Type TypeId RunAs 
Trigger DataSource System.Scheduler Default
Probe ProbeAction Microsoft.SQLServer.2012.ReportingServices.ProbeAction.WebServiceAccessibleMonitor Default
IsError ConditionDetection System.ExpressionFilter.IntervalSuppression Default
IsSuccessful ConditionDetection System.ExpressionFilter Default
URLNotEmpty ConditionDetection System.ExpressionFilter Default

Overrideable Parameters:

IDParameterTypeSelectorDisplay NameDescription
SampleCountint$Config/SampleCount$範例數指出測量值在違反臨界值多少次之後,才會變更狀態。
TimeOutint$Config/TimeOut$Web 連線的逾時如果此工作流程無法在指定的時間間隔期間存取 Web 資源,則會失敗並登錄一則事件。
IntervalSecondsint$Config/IntervalSeconds$間隔 (秒)執行工作流程的週期性時間間隔 (秒)。
SyncTimestring$Config/SyncTime$同步處理時間

Source Code:

<UnitMonitorType ID="Microsoft.SQLServer.2012.ReportingServices.MonitorType.Instance.WebServiceAccessibleMonitor" Accessibility="Internal" RunAs="SQLRS!Microsoft.SQLServer.2012.ReportingServices.RunAsProfile.Monitoring">
<MonitorTypeStates>
<MonitorTypeState ID="Success" NoDetection="false"/>
<MonitorTypeState ID="Error" NoDetection="false"/>
</MonitorTypeStates>
<Configuration>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="ServiceName" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="ServiceUrl" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" minOccurs="1" name="SampleCount" type="xsd:int"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="TimeOut" type="xsd:int"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="IntervalSeconds" type="xsd:int"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="SyncTime" type="xsd:string"/>
</Configuration>
<OverrideableParameters>
<OverrideableParameter ID="SampleCount" ParameterType="int" Selector="$Config/SampleCount$"/>
<OverrideableParameter ID="TimeOut" ParameterType="int" Selector="$Config/TimeOut$"/>
<OverrideableParameter ID="IntervalSeconds" ParameterType="int" Selector="$Config/IntervalSeconds$"/>
<OverrideableParameter ID="SyncTime" ParameterType="string" Selector="$Config/SyncTime$"/>
</OverrideableParameters>
<MonitorImplementation>
<MemberModules>
<DataSource ID="Trigger" TypeID="System!System.Scheduler">
<Scheduler>
<SimpleReccuringSchedule>
<Interval>$Config/IntervalSeconds$</Interval>
<SyncTime>$Config/SyncTime$</SyncTime>
</SimpleReccuringSchedule>
<ExcludeDates/>
</Scheduler>
</DataSource>
<ProbeAction ID="Probe" TypeID="Microsoft.SQLServer.2012.ReportingServices.ProbeAction.WebServiceAccessibleMonitor">
<ServiceName>$Config/ServiceName$</ServiceName>
<ServiceUrl>$Config/ServiceUrl$</ServiceUrl>
<TimeOut>$Config/TimeOut$</TimeOut>
</ProbeAction>
<ConditionDetection ID="URLNotEmpty" TypeID="System!System.ExpressionFilter">
<Expression>
<RegExExpression>
<ValueExpression>
<Value Type="String">$Config/ServiceUrl$</Value>
</ValueExpression>
<Operator>MatchesWildcard</Operator>
<Pattern>?*</Pattern>
</RegExExpression>
</Expression>
</ConditionDetection>
<ConditionDetection ID="IsSuccessful" TypeID="System!System.ExpressionFilter">
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">Property[@Name='Status']</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">Success</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</ConditionDetection>
<ConditionDetection ID="IsError" TypeID="System!System.ExpressionFilter.IntervalSuppression">
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">Property[@Name='Status']</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">Error</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<SuppressionSettings>
<MatchCount>$Config/SampleCount$</MatchCount>
<SampleCount>$Config/SampleCount$</SampleCount>
</SuppressionSettings>
</ConditionDetection>
</MemberModules>
<RegularDetections>
<RegularDetection MonitorTypeStateID="Success">
<Node ID="IsSuccessful">
<Node ID="Probe">
<Node ID="URLNotEmpty">
<Node ID="Trigger"/>
</Node>
</Node>
</Node>
</RegularDetection>
<RegularDetection MonitorTypeStateID="Error">
<Node ID="IsError">
<Node ID="Probe">
<Node ID="URLNotEmpty">
<Node ID="Trigger"/>
</Node>
</Node>
</Node>
</RegularDetection>
</RegularDetections>
</MonitorImplementation>
</UnitMonitorType>