Knowledge Base

cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Hybris with AppDynamics - Collect application data

Sales and order volumes per currency

 

If the SAP Hybris installation uses the de.hybris.platform.commercefacades.order.CheckoutFacade, follow these instructions to track the details of orders placed in AppDynamics setup data collectors.

 

 

Open the Data Collectors tab  in the Configuration > Instrumentation configuration page and add the following Method Invocation Data Collector:

  • Name Placed Orders
  • Enable Data Collector for Transaction Snapshots
  • Enable Data Collector for Transaction Analytics
  • Class that implements an interface which equals de.hybris.platform.commercefacades.order.CheckoutFacade
  • Method Name placeOrder
  • Match Conditions: 
    • ReturnValue.getClass().getCanonicalName() Contains OrderData
  • Data To Collect:
    • TotalPrice: ReturnValue.getTotalPrice().getValue().longValue()
    • Currency: ReturnValue.getTotalPrice().getCurrencyIso()
    • UnitCount: ReturnValue.getTotalUnitCount().longValue()
    • Order ID: ReturnValue.getCode()
    • Payment Type: ReturnValue.getPaymentInfo().getCardType()
    • Site: ReturnValue.getSite()
    • User: ReturnValue.getUser().getName()

You can use the same configuration to setup Information Points for the Revenue and Order Volume of each provided currency. Go to More > Information Points and add the following for each currency provided:

  • Name Placed Orders (USD)
  • Agent Type: Java
  • Class that implements an interface which equals de.hybris.platform.commercefacades.order.CheckoutFacade
  • Method Name placeOrder
  • Match Conditions: 
    • ReturnValue.getClass().getCanonicalName() Contains OrderData
    • ReturnValue.getTotalPrice().getCurrencyIso() Equals USD
  • Custom Metrics:
    • TotalPrice: ReturnValue.getTotalPrice().getValue().longValue()
    • UnitCount: ReturnValue.getTotalUnitCount().longValue()

Repeat the information point configuration for every currency. The currency is given as ISO 4217 code, e.g. GBP, USD, EUR, CHF, JPY 

 

User logins & registrations

 

To track registrations open the Data Collectors tab in the Configuration > Instrumentation configuration page and add the following Method Invocation Data Collector

 

  • Name: User Registrations
  • Enable Data Collector for Transaction Snapshots
  • Enable Data Collector for Transaction Analytics
  • Class that implements an interface which equals de.hybris.platform.commerceservices.customer.CustomerAccountService
  • Method Name register
  • Data To Collect:
    • Email: ParamIndex_0.getContactEmail()
    • CustomerID: ParamIndex_0.getCustomerID()

Use the same configuration to set up an information point for the number of registrations. Go to More > Information Points and add the following:

  • Name User Registrations
  • Agent Type: Java
  • Class that implements an interface which equals de.hybris.platform.commerceservices.customer.CustomerAccountService
  • Method Name register

 

Cronjobs

 

To increase the insight into your CronJobs open the Data Collectors tab  in the Configuration > Instrumentation configuration page and add the following Method Invocation Data Collector:

  • Name: Cronjobs
  • Enable Data Collector for Transaction Snapshots
  • Enable Data Collector for Transaction Analytics
  • Class that extends a Super Class that equals de.hybris.platform.servicelayer.cronjob.AbstractJobPerformable
  • Method Name perform
  • Data To Collect:
    • Code: ParamIndex_0.getCode()
    • Email: ParamIndex_0.getEmailAddress()
    • LogText: ParamIndex_0.getLogText()
    • NodeID: ParamIndex_0.getNodeID()
    • Priority: ParamIndex_0.getPriority()
    • User: Paramindex_0.getSessionUser().getName()
    • Status: ReturnValue.getStatus().getCode()
    • Result: ReturnValue.getResult().getCode(

 

Related Links:

Version History
Revision #:
3 of 3
Last update:
2 weeks ago
Updated by:
 
Labels (1)
0 Kudos