SUPPORT / SAMPLES & SAS NOTES
 

Support

Usage Note 51268: Monitoring flow response time, event counts, and node counts in SAS® Decision Services 5.6 (SAS® Real-Time Decision Services 6.1)

DetailsAboutRate It

A new feature in SAS Decision Services 5.6 (SAS Real-Time Decision Manager 6.1) enables you to monitor the performance of your decision campaigns.

You can track both counts and response times as follows:

  1. Record how many flows were executed during a specified time period.
  2. Record how many times a specific node or nodes (scoped by flow or campaign) were executed during a specified time period.
  3. Record the response time of flows, aggregated over a specified time period.

The second feature mentioned above is a particularly flexible feature. You can track how many times a flow is executed by tracking the counts of a Start node. You can track the number of times an Activity is called from a flow by tracking the activity Call node. You can also track the number of times a subflow is called from a flow by tracking the subflow Call node. Finally, you can count the number of times that SAS Decision Services returns the "standard" or fault response.


There are three options for specifying the sampling time period:

  1. during a period with a specified start time and specified end time
  2. since a specified time
  3. until the current time (reset at restart of the SAS Decision Services Design Server or Engine Server)

The counts are useful even when running transactions in a batch, which is another feature of SAS Real-Time Decision Services 6.1 and SAS Decision Services 5.6.

These features are exposed by SAS Decision Services as a web service.

The SOAP call looks like this example:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:dcsv="http://www.sas.com/xml/schema/sas-svcs/dcsv-1.1">
   <soapenv:Header/>
   <soapenv:Body>
      <dcsv:GetSystemStatistics/>
   </soapenv:Body>
</soapenv:Envelope>

Included below is some example output from the call. As you can see, it shows how many times the engine received an event, the node counts, and the average flow response time.

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
   <SOAP-ENV:Header/>
   <SOAP-ENV:Body>
      <ns2:GetSystemStatisticsResponse xmlns:ns2="http://www.sas.com/xml/schema/sas-svcs/dcsv-1.1">
         <ns2:EventCount count="1" name="jelegg_SoapUI"/>
         <ns2:EventCount count="5" name="TS_FAHEK252PBFQTRZQ_H3PN8Y"/>
         <ns2:EventCount count="5" name="AE_DDDEJAMT2VEPQCSE_GYXQLQ"/>
         <ns2:EventCount count="5" name="AE_HFAC13DFVJFNX1KY_1J13D3"/>
         <ns2:EventCount count="11" name="_SAS_RETRIEVE_STAGED_EVENT"/>
         <ns2:NodeCount count="5" name="Treatment _2_1_CABGFWHOZNHLT0ZS_XAS5BS.BGEATYN30BBLTEIL"/>
         <ns2:NodeCount count="11" name="_SAS_RETRIEVE_STAGED_FLOW.PREPARE"/>
         <ns2:NodeCount count="11" name="_SAS_RETRIEVE_STAGED_FLOW.START"/>
         <ns2:NodeCount count="5" name="Treatment _3_1_CAEFN0AYCJGQTXYC_HPCS20.EEEGRZN5AJGGVOBV"/>
         <ns2:NodeCount count="5" name="Treatment _3_1_CAEFN0AYCJGQTXYC_HPCS20.FABA53XLYRARUVA1"/>
         <ns2:NodeCount count="1" name="Staged Retrieve _4_1_ABCHIKCSP3EXVVZH.errorReply"/>
         <ns2:NodeCount count="5" name="Treatment _2_1_CABGFWHOZNHLT0ZS_XAS5BS.CGHBXQAAGBEIQAZV"/>
         <ns2:NodeCount count="5" name="Treatment Set _1_TS_FAHEK252PBFQTRZQ_H3PN8Y.reply"/>
         <ns2:NodeCount count="5" name="Treatment Set _1_TS_FAHEK252PBFQTRZQ_H3PN8Y.DDDEJAMT2VEPQCSE"/>
         <ns2:NodeCount count="5" name="Treatment _3_1_CAEFN0AYCJGQTXYC_HPCS20.defaultAssignments"/>
         <ns2:NodeCount count="5" name="Treatment Set _1_TS_FAHEK252PBFQTRZQ_H3PN8Y.wait"/>
         <ns2:NodeCount count="5" name="Treatment Set _1_TS_FAHEK252PBFQTRZQ_H3PN8Y.HFAC13DFVJFNX1KY"/>
         <ns2:NodeCount count="5" name="Treatment _3_1_CAEFN0AYCJGQTXYC_HPCS20.BCCGYSBZONCFX5ZQ"/>
         <ns2:NodeCount count="11" name="_SAS_RETRIEVE_STAGED_FLOW.BUILD_TABLES"/>
         <ns2:NodeCount count="5" name="Treatment Set _1_TS_FAHEK252PBFQTRZQ_H3PN8Y.start"/>
         <ns2:NodeCount count="11" name="_SAS_RETRIEVE_STAGED_FLOW.RETRIEVE"/>
        <ns2:NodeCount count="11" name="_SAS_RETRIEVE_STAGED_FLOW.REPLY"/>
         <ns2:NodeCount count="5" name="Treatment _2_1_CABGFWHOZNHLT0ZS_XAS5BS.GHACA0Q1YFBHQQ4N"/>
         <ns2:NodeCount count="5" name="Treatment Set _1_TS_FAHEK252PBFQTRZQ_H3PN8Y.mergeTreatments"/>
         <ns2:NodeCount count="1" name="Staged Retrieve _4_1_ABCHIKCSP3EXVVZH.errorAssignments"/>
         <ns2:NodeCount count="1" name="Staged Retrieve _4_1_ABCHIKCSP3EXVVZH.ECBCA3BBPFDBS25L"/>
         <ns2:NodeCount count="5" name="Treatment _2_1_CABGFWHOZNHLT0ZS_XAS5BS.defaultAssignments"/>
         <ns2:AverageFlowResponseTime name="SAS_Activity_variable_test" responseTimeInMilliseconds="0.0"/>
         <ns2:AverageFlowResponseTime name="BI_Webservice_Activity_variable_test" responseTimeInMilliseconds="0.0"/>
         <ns2:AverageFlowResponseTime name="BI_Webservice_Activity_market_basket_test" responseTimeInMilliseconds="0.0"/>
         <ns2:AverageFlowResponseTime name="jelegg_Slimmed_Down _2_1_CDCC4HOYKFCQTUUN" responseTimeInMilliseconds="0.0"/>
         <ns2:AverageFlowResponseTime name="Treatment _2_1_CABGFWHOZNHLT0ZS_XAS5BS" responseTimeInMilliseconds="0.024414679359746127"/>
         <ns2:AverageFlowResponseTime name="BI_Webservice_Activity_echo_string" responseTimeInMilliseconds="0.0"/>
         <ns2:AverageFlowResponseTime name="Jelegg_Slimmed_Down _1_1_GADGSLSXY3EKXTXB" responseTimeInMilliseconds="0.0"/>
         <ns2:AverageFlowResponseTime name="RTDMConfigTest" responseTimeInMilliseconds="0.0"/>
         <ns2:AverageFlowResponseTime name="_SAS_RETRIEVE_STAGED_FLOW" responseTimeInMilliseconds="116.60305778314896"/>
         <ns2:AverageFlowResponseTime name="Jelegg_Slimmed_Down _2_1_HDHA4ME4J3HWWZDU" responseTimeInMilliseconds="0.0"/>
         <ns2:AverageFlowResponseTime name="SAS_Activity_echo_string" responseTimeInMilliseconds="0.0"/>
         <ns2:AverageFlowResponseTime name="Treatment _3_1_CAEFN0AYCJGQTXYC_HPCS20" responseTimeInMilliseconds="0.020421072439384208"/>
         <ns2:AverageFlowResponseTime name="Treatment Set _1_TS_FAHEK252PBFQTRZQ_H3PN8Y" responseTimeInMilliseconds="0.055926563422196963"/>
         <ns2:AverageFlowResponseTime name="Staged Retrieve _4_1_ABCHIKCSP3EXVVZH" responseTimeInMilliseconds="0.29578579549674716"/>
         <ns2:AverageFlowResponseTime name="_SAS_REMOVE_STAGED_FLOW" responseTimeInMilliseconds="0.0"/>
         <ns2:AverageFlowResponseTime name="_SAS_ADD_STAGED_FLOW" responseTimeInMilliseconds="0.0"/>
         <ns2:AverageFlowResponseTime name="SoapUI _1_1_DBCCSLBLRRH2TCBF" responseTimeInMilliseconds="0.0"/>
         <ns2:AverageFlowResponseTime name="jolopr_camp_soap_1_HCAHET4PNFGARVIL" responseTimeInMilliseconds="0.0"/>
         <ns2:AverageFlowResponseTime name="DecisionCampaignSimple??_1_ECAHBUOZKJBYSAJL" responseTimeInMilliseconds="0.0"/>
      </ns2:GetSystemStatisticsResponse>
   </SOAP-ENV:Body>
</SOAP-ENV:Envelope>



Operating System and Release Information

Product FamilyProductSystemProduct ReleaseSAS Release
ReportedFixed*ReportedFixed*
SAS SystemSAS Decision ServicesMicrosoft® Windows® for x645.69.3 TS1M2
64-bit Enabled AIX5.69.3 TS1M2
64-bit Enabled Solaris5.69.3 TS1M2
HP-UX IPF5.69.3 TS1M2
Linux for x645.69.3 TS1M2
Solaris for x645.69.3 TS1M2
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.