Absent Member.. Absent Member..
Absent Member..
130 views

Metric from XML policy - OMi

Hello,

Someone had the chance to use the policy "Metric from XML"?

I developed and application that connect to an API, get the json and parse to XML.

The problem is How to transform this XML into metric in OMi.

My XML example:

<?xml version="1.0" encoding="ibm850"?>
<Squid xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <versao>2.0.25</versao>
  <origem>/opt/sqd/conf/1g/config-sqd-a-5353.properties</origem>
  <started>2016-10-28 07:22:46.699 UTC</started>
  <mqHostname>MQTYOS107AT</mqHostname>
  <mqQueueManager>MQ.SQD.01</mqQueueManager>
  <mqChannel>CH.SQD.01</mqChannel>
  <mqPort>1629</mqPort>
  <mqTransportType>1</mqTransportType>
  <jettyPort>9191</jettyPort>
  <jettyThreadPoolSize>30</jettyThreadPoolSize>
  <jettyBinding>0.0.0.0</jettyBinding>
  <diretorioFalhas>/tmp/sqd-a</diretorioFalhas>
  <producers>
    <Producer>
      <codigo>541</codigo>
      <name>integracao.541</name>
      <endpoint>/NGT/SPP/v2_1/MessageAcceptService.svc</endpoint>
      <consumer>
        <codigo>541</codigo>
        <queueName>QL.PSH.SPP.NGT.MSGACCEPT.01</queueName>
        <host>ngtapp2.intraservice.corp</host>
        <port>9191</port>
        <uri>/Bvmf.NGT/NGT/SPP/v2_1/MessageAcceptService.svc</uri>
        <name>integracao.541.consumer.541</name>
        <running>true</running>
        <attempts>3</attempts>
        <timeout>60000</timeout>
        <interval>5000</interval>
        <threads>1</threads>
        <maxDepth>10000</maxDepth>
        <failureStrategy>STOP</failureStrategy>
        <failureDirectory>/tmp/sqd-a/integracao/541/consumer/541</failureDirectory>
        <depth>0</depth>
      </consumer>
    </Producer>
    <Producer>
      <codigo>1234</codigo>
      <name>integracao.1234</name>
      <endpoint>/Services/MKK/SPP/MessageDispatcherService/v02_1</endpoint>
      <consumer>
        <codigo>1312</codigo>
        <queueName>QL.REQ.MKK.SPP.MSGDISPAT.01</queueName>
        <host>smpisodefapp2.intraservice.corp</host>
        <port>9192</port>
        <uri>/axis2/services/MessageDispatcherServiceV2_1</uri>
        <name>integracao.1234.consumer.1312</name>
        <running>true</running>
        <attempts>1</attempts>
        <timeout>3000</timeout>
        <interval>3000</interval>
        <threads>1</threads>
        <maxDepth>10000</maxDepth>
        <failureStrategy>IGNORE</failureStrategy>
        <failureDirectory>/tmp/sqd-a/integracao/1234/consumer/1312</failureDirectory>
        <depth>0</depth>
      </consumer>
    </Producer>
   </producers>
</Squid>

 

Labels (1)
0 Likes
1 Reply
Micro Focus Expert
Micro Focus Expert

Hi Diego,

I have not played with that myself but I think you can check out our BSM Connector -now OpsBridge Connectors- and find examples there for this.

Regards,

James

HPE Software Support

 

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.