Microsoft.SystemCenter.WebApplication.PerProbe.Scheduler

The Microsoft.SystemCenter.WebApplication.PerProbe.Scheduler data source module type generates System.TriggerData to activate the Microsoft.SystemCenter.WebApplication.UrlProbe.

Usage

This module is commonly used to trigger Microsoft.SystemCenter.WebApplication.UrlProbe. Unlike System.Scheduler, this module allows you to control cookdown by providing a UniquenessKey parameter. For more information about cookdown, see Cookdown in the Operations Manager 2007 R2 Authoring Guide.

Type Definition

<DataSourceModuleType ID="Microsoft.SystemCenter.WebApplication.PerProbe.Scheduler" Accessibility="Public" Batching="false">
  <Configuration>
    <IncludeSchemaTypes>
      <SchemaType>System!System.ExpressionEvaluatorSchema</SchemaType>
    </IncludeSchemaTypes>
    <xsd:element name="Scheduler" type="PublicSchedulerType" xmlns:xsd="http://www.w3.org/2001/XMLSchema" />
    <xsd:element name="UniquenessKey" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema" />
  </Configuration>
  <ModuleImplementation Isolation="Any">
    <Native>
      <ClassID>C3339855-80B3-4c06-B7AB-5C5D97B59A0D</ClassID>
    </Native>
  </ModuleImplementation>
  <OutputType>System!System.TriggerData</OutputType>
</DataSourceModuleType>

Parameters

The Microsoft.SystemCenter.WebApplication.PerProbe.Scheduler module supports the following configuration parameters.

Parameter Type Description

Scheduler

PublicSchedulerType

Specifies how often the probe is triggered, either a simple interval, or on a recurring schedule.

UniquenessKey

String

A key value, usually a variable, to indicate uniqueness in the response. If the variable resolves to a different value for each instance of the workflow using the module, then the probe will not cookdown.

Composition

The Microsoft.SystemCenter.WebApplication.PerProbe.Scheduler module is a native module.

Module Type Usage

Microsoft.SystemCenter.WebApplication.Scheduler.Internal

Similar to System.Discovery.Scheduler, but provides a UniquenessKey like Microsoft.SystemCenter.WebApplication.PerProbe.Scheduler does.

Microsoft.SystemCenter.WebApplication.UrlProbe

Data source module that is commonly triggered.

External Module References

None

Sample

The following example shows a data source module that includes a Microsoft.SystemCenter.WebApplication.UrlProbe, and uses Microsoft.SystemCenter.WebApplication.PerProbe.Scheduler to set the schedule for the probe. In this case the UniquenessKey is set to the ID of the target meaning that all instances of the workflow for the target will participate in cookdown.

<DataSourceModuleType ID="MPAuthor.WebApplication.UrlDataSource" Accessibility="Public" Batching="false">
  <Configuration />
  <ModuleImplementation Isolation="Any">
    <Composite>
      <MemberModules>
        <DataSource ID="Scheduler" TypeID="MicrosoftSystemCenterWebApplicationLibrary!Microsoft.SystemCenter.WebApplication.PerProbe.Scheduler">
          <Scheduler>
            <SimpleReccuringSchedule>
              <Interval>120</Interval>
              <SpreadInitializationOverInterval>120</SpreadInitializationOverInterval>
            </SimpleReccuringSchedule>
            <ExcludeDates />
          </Scheduler>
          <UniquenessKey>$Target/Id$</UniquenessKey>
        </DataSource>
        <ProbeAction ID="Probe" TypeID="MicrosoftSystemCenterWebApplicationLibrary!Microsoft.SystemCenter.WebApplication.UrlProbe">
          <Proxy />
          <ProxyUserName />
          <ProxyPassword />
          <ProxyAuthenticationScheme>None</ProxyAuthenticationScheme>
          <CredentialUserName />
          <CredentialPassword />
          <AuthenticationScheme>None</AuthenticationScheme>
          <FollowRedirects>true</FollowRedirects>
          <RetryCount>0</RetryCount>
          <RequestTimeout>0</RequestTimeout>
          <Requests>
            <Request>
              <RequestID>1</RequestID>
              <URL>https://www.bing.com</URL>
              <Verb>GET</Verb>
              <Version>HTTP/1.1</Version>
              <HttpHeaders>
                <HttpHeader>
                  <Name>User-Agent</Name>
                  <Value>Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)</Value>
                </HttpHeader>
              </HttpHeaders>
              <Body />
              <CheckContentChange>false</CheckContentChange>
              <ContentHash>00000000-0000-0000-0000-000000000000</ContentHash>
              <Depth>1</Depth>
              <ThinkTime>0</ThinkTime>
              <CheckInternalLinks>false</CheckInternalLinks>
              <CheckExternalLinks>true</CheckExternalLinks>
              <CheckResources>true</CheckResources>
              <RequestEvaluationCriteria>
                <StopProcessingIfWarningCriteriaIsMet>false</StopProcessingIfWarningCriteriaIsMet>
                <StopProcessingIfErrorCriteriaIsMet>false</StopProcessingIfErrorCriteriaIsMet>
                <BasePageEvaluationCriteria>
                  <WarningCriteria>
                    <NumericCriteriaExpressions>
                      <NumericCriteriaExpression>
                       <NumericRequestMetric>BasePageData/StatusCode</NumericRequestMetric>
                        <Operator>Equal</Operator>
                        <Value>301</Value>
                      </NumericCriteriaExpression>
                      <NumericCriteriaExpression>
                        <NumericRequestMetric>BasePageData/TotalResponseTime</NumericRequestMetric>
                        <Operator>Greater</Operator>
                        <Value>3</Value>
                      </NumericCriteriaExpression>
                    </NumericCriteriaExpressions>
                    <ContentMatchCriteria>
                      <SimpleStringOperator>NotEqual</SimpleStringOperator>
                      <Value>Popular now</Value>
                    </ContentMatchCriteria>
                  </WarningCriteria>
                  <ErrorCriteria>
                    <NumericCriteriaExpressions />
                    <ContentMatchCriteria>
                      <RegExOperator>DoesNotContainSubstring</RegExOperator>
                      <Value>Popular now11111</Value>
                    </ContentMatchCriteria>
                    <CustomCriteria>
                      <Expression>
                        <SimpleExpression>
                          <ValueExpression>
                            <XPathQuery Type="UnsignedInteger">BasePageData/ContentSize</XPathQuery>
                          </ValueExpression>
                          <Operator>Greater</Operator>
                          <ValueExpression>
                            <Value Type="UnsignedInteger">5000</Value>
                          </ValueExpression>
                        </SimpleExpression>
                      </Expression>
                    </CustomCriteria>
                  </ErrorCriteria>
                </BasePageEvaluationCriteria>
                <LinksEvaluationCriteria>
                  <WarningCriteria>
                    <NumericCriteriaExpressions />
                    <StatusCodeCriteria>
                      <ListNumericRequestMetric>StatusCode</ListNumericRequestMetric>
                      <Operator>GreaterEqual</Operator>
                      <Value>400</Value>
                    </StatusCodeCriteria>
                  </WarningCriteria>
                  <ErrorCriteria>
                    <NumericCriteriaExpressions />
                  </ErrorCriteria>
                </LinksEvaluationCriteria>
                <ResourcesEvaluationCriteria>
                  <WarningCriteria>
                    <NumericCriteriaExpressions />
                    <StatusCodeCriteria>
                      <ListNumericRequestMetric>StatusCode</ListNumericRequestMetric>
                      <Operator>GreaterEqual</Operator>
                      <Value>400</Value>
                    </StatusCodeCriteria>
                  </WarningCriteria>
                  <ErrorCriteria>
                    <NumericCriteriaExpressions />
                  </ErrorCriteria>
                </ResourcesEvaluationCriteria>
                <WebPageTotalEvaluationCriteria>
                  <WarningCriteria>
                    <NumericCriteriaExpressions />
                  </WarningCriteria>
                  <ErrorCriteria>
                    <NumericCriteriaExpressions />
                  </ErrorCriteria>
                </WebPageTotalEvaluationCriteria>
                <DepthEvaluationCriteria>
                  <WarningCriteria />
                  <ErrorCriteria />
                </DepthEvaluationCriteria>
              </RequestEvaluationCriteria>
              <FormsAuthCredentials />
              <CollectResponseBody>OnContentMatchCriteria</CollectResponseBody>
              <CollectLinksHeaders>false</CollectLinksHeaders>
              <CollectResourcesHeaders>false</CollectResourcesHeaders>
            </Request>
          </Requests>
        </ProbeAction>
      </MemberModules>
      <Composition>
        <Node ID="Probe">
          <Node ID="Scheduler" />
        </Node>
      </Composition>
    </Composite>
  </ModuleImplementation>
  <OutputType>MicrosoftSystemCenterWebApplicationLibrary!Microsoft.SystemCenter.WebApplication.WebApplicationData</OutputType>
</DataSourceModuleType>

Information

   

Module Type

DataSourceModuleType

Input Type

None

Output Type

System.TriggerData

Implementation

Native

Library

Microsoft.SystemCenter.WebApplication.Library