Event Details

Not Yet Reviewed

Hello,

Using the web services how I can retrieve the 'Input' (section of the event in the web console) detail from an event that was generated. The alert was generated from BMC, I need to pull out information such as job name, application etc.

Using the QueryEvent method does not return this detail.

Thanks

0

Comments

4 comments
Date Votes

Please sign in to leave a comment.

  • Hey Phil!

       The QueryEvent operation should be what you are looking for. I was able to use this request to get the tokens of the event that was submitted:

    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:sch="http://www.xmatters.com/webservices/schema#5.5.47">
    <soapenv:Header/>
    <soapenv:Body>
    <sch:QueryEvent>
    <sch:user>APWSU</sch:user>
    <sch:password>PASSWORDHERE</sch:password>
    <sch:clientTimestamp></sch:clientTimestamp>
    <sch:clientIP></sch:clientIP>
    <sch:clientOSUser></sch:clientOSUser>
    <sch:company>COMPANYHERE</sch:company>
    <sch:eventIdentifier>3158483</sch:eventIdentifier>
    </sch:QueryEvent>
    </soapenv:Body>
    </soapenv:Envelope>

     

    This was the response I got:

    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <soapenv:Body>
    <ns:QueryEventResponse xmlns:ns="http://www.xmatters.com/webservices/schema#5.5.47">
    <ns:return type="com.invoqsystems.apex.web.soap.QueryEventReturn">
    <ns:eventCreatedTimestamp>04/11/2016 4:17:21 PM</ns:eventCreatedTimestamp>
    <ns:eventStatus>TERMINATED</ns:eventStatus>
    <ns:eventTokens>
    <ns:eventToken>
    <ns:name>xappprop_lang_priority#en</ns:name>
    <ns:values>
    <ns:value>1</ns:value>
    </ns:values>
    </ns:eventToken>
    <ns:eventToken>
    <ns:name>xappprop_lang_owned by team#en</ns:name>
    <ns:values>
    <ns:value>IT Management</ns:value>
    </ns:values>
    </ns:eventToken>
    <ns:eventToken>
    <ns:name>xappprop_lang_type id#en</ns:name>
    <ns:values>
    <ns:value>6dd53665c0c24cab86870a21cf6434ae</ns:value>
    </ns:values>
    </ns:eventToken>
    <ns:eventToken>
    <ns:name>recipients</ns:name>
    <ns:values>
    <ns:value>IT Management</ns:value>
    </ns:values>
    </ns:eventToken>
    <ns:eventToken>
    <ns:name>xappprop_lang_status#en</ns:name>
    <ns:values>
    <ns:value>In Progress</ns:value>
    </ns:values>
    </ns:eventToken>
    <ns:eventToken>
    <ns:name>xappprop_lang_short description#en</ns:name>
    <ns:values>
    <ns:value>Do stuff</ns:value>
    </ns:values>
    </ns:eventToken>
    <ns:eventToken>
    <ns:name>xappprop_lang_description#en</ns:name>
    <ns:values>
    <ns:value>Do stuff</ns:value>
    </ns:values>
    </ns:eventToken>
    <ns:eventToken>
    <ns:name>xappprop_lang_incident id#en</ns:name>
    <ns:values>
    <ns:value>102336</ns:value>
    </ns:values>
    </ns:eventToken>
    </ns:eventTokens>
    <ns:incidentIdentifier>INCIDENT_ID-3158483</ns:incidentIdentifier>
    <ns:notifications>
    <!-- SNIP -->
    </ns:notifications>
    <ns:serverTimestamp>07/11/2016 5:43:09 PM</ns:serverTimestamp>
    <ns:status>OK</ns:status>
    </ns:return>
    </ns:QueryEventResponse>
    </soapenv:Body>
    </soapenv:Envelope>

     

     

    What kind of response are you getting? 

    Happy Monday!
        --- Travis

    0
  • Hi Travis,

    Thanks for your prompt response, I only seem to be getting back the following fields:

    eventcreatedtimestamp, eventstatus, eventtokens, incidentidentifier, notifications, servertimestamp and status.

    I am accessing it via the webserviceproxy method in powershell. I will keep digging around in case it's an issue with my powershell code but the xMatters 5.1 API does only state the fields I am getting back.

     

    Regards

     

     

    0
  • Sorry my mistake, your are correct they are all accessible via the event tokens.

     

    Thanks for your help!

    0
  • Great to hear! 

    0

Didn't find what you were looking for?

New post