IDMC System IPU Metering Log Capture > Using the IDMC System IPU Metering Log Capture recipe > Step 4. Configure IPU Metering Log Capture and Processing
  

Step 4. Configure IPU Metering Log Capture and Processing

The IPU Metering Taskflow calls an Application Integration process that extracts IPU metering information from a specified organization and writes it to a staging file location. By default, this staging location is set to /tmp on the machine where the Secure Agent is running. If metering records are extracted, a mapping task subsequently runs to transfer the data from the staging location to the target cloud storage. The taskflow is designed to either run once per day to retrieve the previous day’s data.
  1. 1Open the Get IPU Metering Log process in Application Integration.
    1. aOn the Start tab of the Start step, select the Secure Agent from the Run On list.
    2. bOn the Temp Fields tab of the Start step, enter the target organization's base URL in the temp_baseOrgUrl field. For example, if you have logged in using https://dm-us.informaticacloud.com/identity-service/home, set this field value to https://dm-us.informatica.cloud.com/saas.
    3. cSave and publish the process.
  2. 2Open the Unzip File process in Application Integration.
    1. aOn the Start tab of the Start step, select the Secure Agent from the Run On list.
    2. bSave and publish the process.
  3. 3Open the Load Cloud Storage IPU Mapping mapping in Data Integration.
    1. aOn the Source tab of the srcReadIPULogStage step, select the flat file connection that points to your staging directory and the object as shown in the following image:
    2. This image shows the flat file connection and the object selected in the Source tab of the srcReadIPULogStage step.
    3. bOn the Target tab of the tgtCloudStorage step, select the cloud storage connection that points to your cloud storage location as shown in the following image:
    4. This image shows the cloud storage connection selected on the Target tab of the tgtCloudStorage step.
    5. cSave the mapping.
  4. 4Open the Load IPU Logs Mapping Task mapping task in Data Integration.
    1. aClick Edit.
    2. bFrom the Runtime Environment list, select the Secure Agent.
    3. cSave the mapping task.
  5. 5Open the IPU Metering Taskflow taskflow in Data Integration.
    1. aOn the Start tab of the Start step, enter a valid user ID and/or group for the organization in the Allowed Users and/or Allowed Groups fields.
    2. bOn the IntegrationOps Task tab of the Get IPU Metering Logs step, reselect the Get IPU Metering Log process and click Save.
    3. cOn the Input Fields tab of the Get IPU Metrics Logs step, add all the input fields and assign field values as shown in the following image:
    4. The image shows the input fields configured for the Get IPU Metrics step in the IPU Summary Taskflow taskflow.
    5. dOn the IntegrationOps Task tab of the Unzip Input File step, reselect the Unzip File process and click Save.
    6. eOn the Input Fields tab of the Unzip Input File step, add all the input fields and assign field values as shown in the following image:
    7. The image shows the input fields configured for the Unzip Input File step in the IPU Summary Taskflow taskflow.
    8. fSave and publish the taskflow.
    9. gTest the IPU metering log using the Run Using option in Data Integration or with Postman.
    10. To test with the Run Using option, perform the following steps:
      1. aOn the Actions menu, click Run Using.
      2. bProvide inputs using the following JSON format:
      3. {
        "username": "<user name for org to get log files>",
        "password": "<password for org to get log files>",
        "startDateTime": "",
        "in_tgtPath": "<full path to cloud storage, including file name>",
        "jobType":"<SUMMARY, ASSET or PROJECT_FOLDER>"
        }
        Note: You can get the log files from a different organization than where you installed the package.
      4. cSave and run the taskflow.
      To test using Postman, perform the following steps:
      1. aOn the Actions menu, click Properties Details > Copy Service URL.
      2. bOpen Postman.
      3. cSelect the HTTP verb as POST and specify the generated REST service URL.
      4. dOn the Authorization tab, select Basic Auth and enter the user account details same as provided in the taskflow.
      5. eOn the Body tab, select the body type as raw and provide the following JSON snippet for the HTTPS request:
      6. {
        "username": "<user name for org to get log files>",
        "password": "<password for org to get log files>",
        "startDateTime": "",
        "in_tgtPath": "<full path to cloud storage, including file name>",
        "jobType":"<SUMMARY, ASSET or PROJECT_FOLDER>"
        }
      7. fSend the POST request.
      8. You will receive the taskflow run ID as a response.