removeAlertHistory Operation
Using removeAlertHistory operation you can remove all alert logs currently on the TIBCO LogLogic Appliance. You may also use the filters to narrow down the list.
Example
To remove all medium priority alert logs on Appliance 1.2.20.100:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:aler="AlertService"> <soapenv:Header/> <soapenv:Body> <aler:removeAlertHistory> <aler:authToken>admin+1Y2O2W261O1C1J1X29</aler:authToken> <aler:applianceIP>1.2.20.100</aler:applianceIP> <!--1 or more repetitions:--> <aler:filters>/Priority/=/Medium/</aler:filters> </aler:removeAlertHistory> </soapenv:Body> </soapenv:Envelope>
To remove all alert logs on Appliance 1.2.20.100 with empty filters:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:aler="AlertService"> <soapenv:Header/> <soapenv:Body> <aler:removeAlertHistory> <aler:authToken>admin+1Y2O2W261O1C1J1X29</aler:authToken> <aler:applianceIP>1.2.20.100</aler:applianceIP> <!--1 or more repetitions:--> <aler:filters></aler:filters> </aler:removeAlertHistory> </soapenv:Body> </soapenv:Envelope>
To remove all acknowledged alert logs on Appliance 1.2.20.100:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:aler="AlertService"> <soapenv:Header/> <soapenv:Body> <aler:removeAlertHistory> <aler:authToken>admin+1Y2O2W261O1C1J1X29</aler:authToken> <aler:applianceIP>1.2.20.100</aler:applianceIP> <!--1 or more repetitions:--> <aler:filters>/Type/=/Acknowledged/</aler:filters> </aler:removeAlertHistory> </soapenv:Body> </soapenv:Envelope>
SOAP response for removeAlertHistory Operation:
<soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope"> <soapenv:Header/> <soapenv:Body> <ns:removeAlertHistoryResponse xmlns:ns="AlertService"> <ns:return xsi:type="ax27:AlertHistoryResponse" xmlns:ax27="http://alert.services.logapp.loglogic.com/xsd" xmlns:ax28="http://services.logapp.loglogic.com/xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <ax28:authToken xsi:nil="true"/> <ax28:resultCount>0</ax28:resultCount> <ax28:statusCode>2000</ax28:statusCode> <ax28:statusMessage>Successful</ax28:statusMessage> <ax28:summaryOnly>true</ax28:summaryOnly> <ax27:resultSet xsi:nil="true"/> </ns:return> </ns:removeAlertHistoryResponse> </soapenv:Body> </soapenv:Envelope>
Copyright © 2020. Cloud Software Group, Inc. All Rights Reserved.