Time to upgrade! You only have until October 31, 2019 to move to Dynatrace, our all-in-one software intelligence platform. For details, see the Synthetic Upgrade Center and Dynatrace Synthetic documentation.

GetLMAlertStates (3.0)

This web method retrieves the complete alert states for all MBG monitors of a specific type.

Request parameters

To call this web service from your browser, submit the following HTTP Get Request:


In the URL above, specify the following parameters:

  • username – The Synthetic Classic account username
  • password – The Synthetic Classic account password
  • apitoken – The Synthetic Classic API token, used in lieu of username/password
  • monitorType – Specifies the class of MBG monitor data to retrieve. Specify one of the following values:
Value Description
ALL To return information for all monitor types ('PRIVATEPEER', 'MOBILE')
PRIVATEPEER To return information for PRIVATEPEER tests only
MOBILE To return information for MOBILE tests only

Validation criteria

This web service uses the following criteria to validate the incoming request:

  • username is valid for an active account.

  • password is valid for the specified username.

  • apitoken is the Synthetic Classic API token, used in lieu of username/password.

  • monitorType specifies a valid MBG monitor class.

Response XML

This web service method returns information according to its operation status.

If the web service operation fails, the FAILED status and an error message are returned in the following XML format.

<lastmileAlertStateResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  <errorMessage>Invalid Account Specified</errorMessage>

If the web service operation succeeds, the information requested is returned in the following XML format.


The following table summarizes the main elements, attributes, and possible attribute values in the XML response returned by this web service. See the Alert Management WSDL for the complete definition of this XML response.

XML Elements & Attributes Description Parent Element Child Elements
<lastmileAlertStateResponse> Top-level container of the XML response of this web service none <status> <errorMessage> <mbgmonitor>
<status> SUCCESS | FAILED <lastmileAlertStateResponse> none
<errorMessage> Detailed error message if status="FAILED" <lastmileAlertStateResponse> none
<mbgmonitor> Container for monitor summary information and the set of the pages and sites where the monitor is in an alert state <lastmileAlertStateResponse> <alertState>
id MBG monitor ID
desc MBG monitor description
doSummary True, if monitor is running in summary mode; false, otherwise
doComponents True, if monitor is collecting performance information for page components; false, otherwise
timeoutInSec The number of seconds before the monitor times out
class The type of test
<alertState> Container for alert summary information <mbgmonitor>
alertId The following integral values are possible for the different alert types:
  • 101 — Transaction Failure
  • 102 — Response Time Failure
alertType The following values correspond to alertId values:
  • Transaction Failure (alertId=101)
  • Response Time Failure (alertId=102)
alertState The following values for the current state of the alert are possible:
  • Good — No user-specified criteria has been violated.
  • Bad — Indicates a violation of non-response-time criteria.
  • Warning — Indicates a violation of user-specified response time criteria.
  • Severe — Indicates a violation of user-specified response time criteria.
respAlertType The following values are possible:
  • Average
  • Static
avgResponseTimeInMS Average response time in milliseconds
warningCount Warning alert count for current alert type of the MBG monitor
severeCount Severe alert count for current alert type of the MBG monitor
goodCount Good alert count for current alert type of the MBG monitor
totalCount Total alert count for current alert type of the MBG monitor