Advanced Alerting APIs
Monitor Interface Reference

Provides access to the harchive and monitoring backend. More...

List of all members.

Public Member Functions

void setError (boolean status)
object getHarFile (object args)
string getScreenShotUrl ()
boolean isTrialAccount ()

Detailed Description

Provides access to the harchive and monitoring backend.

Author:
Matt Rodriguez

Member Function Documentation

object getHarFile ( object  args)

Returns the har file

Parameters:
argsmust contain the attribute timeout which determines how many seconds to wait before the har file is retrieved. {timeout:5} is the recommended setting. This function blocks until the har file has been retrieved or amount of time has exceeded the timeout.

This function throws an exception if the arguments are incorrect, or there is a problem retrieving the har file.

Returns:
a javascript object which represents the har file.
string getScreenShotUrl ( )
Returns:
A string of the screenshot url
boolean isTrialAccount ( )

Returns whether the account is a trial account.

Returns:
A boolean which is true if the account is a trial account.
void setError ( boolean  status)

Set the status on the backend monitor. It can be updated to error status.

Parameters:
status
 All Classes Functions