API Enablement

  • 1.  Are there any stats? I just get ServiceStatistics:{} with nothing it in it/

    IBM Champion
    Posted Thu October 01, 2020 11:57 AM
    Im using

    All I get back is

    {"zosConnectStatistics":[{"stockQuery":{"ServiceProvider":"IBM MQ for z\/OS","InvokeRequestCount":21,"TimeOfRegistrationWithZosConnect":"2020-10-01 14:52:26:049 BST","ServiceStatistics":{}}}]}

    it gives ServiceStatistics:{}  ... please can you tell me how I get statistics into this field

    thank you

    Colin


  • 2.  RE: Are there any stats? I just get ServiceStatistics:{} with nothing it in it/

    Posted Fri October 02, 2020 01:29 PM
    Did you enable the audit interceptor?  See https://www.ibm.com/support/knowledgecenter/SS7K4U_liberty/com.ibm.websphere.wlp.zseries.doc/ae/twlp_zconnect_audit.html  for instructions on how to add the audit interceptor to your server configuration.

    ------------------------------
    Leigh Compton
    ------------------------------



  • 3.  RE: Are there any stats? I just get ServiceStatistics:{} with nothing it in it/

    IBM Champion
    Posted Sat October 03, 2020 06:41 AM

    Leigh,

    Thanks for your comment - I was getting out the SMF 120 records - but I didnt have <auditInterceptor id="auditInterceptor" sequence="1"/> I did have <zosconnect_auditInterceptor id="auditInterceptor" sequence="1" apiProviderSmfVersion="2"/> 
    with the same id..  which I thought was the same.

    I now have

    <zosconnect_zosConnectManager
    globalInterceptorsRef="interceptorList1"
    globalAdminGroup="TEST"
    globalInvokeGroup="SYS1"
    globalOperationsGroup="TEST"
    globalReaderGroup="TEST"
    />

    <zosconnect_authorizationInterceptor id="zosConnectAuthorizationInterceptor"/>
    <zosconnect_auditInterceptor id="zoscauditInterceptor" sequence="1" apiProviderSmfVersion="2"/>
    <auditInterceptor id="auditInterceptor" sequence="1"/>
    <zosconnect_zosConnectInterceptors
    id="interceptorList1"
    interceptorRef="zosConnectAuthorizationInterceptor,auditInterceptor,zoscauditInterceptor "/>


    https://www.ibm.com/support/knowledgecenter/SS7K4U_liberty/com.ibm.websphere.wlp.zseries.doc/ae/twlp_zconnect_rest.html  item 7 says nothing about having to configure it -

    I used a curl request with https://10.1.3.10:9443/zosConnect/services/stockQuery?action=invoke


    Even with the above interceptor added I still get ServiceStatisics{}.. ..  

    am I missing something else?

    regards

    Colin



    ------------------------------
    Colin Paice
    ------------------------------