Advanced Alerting APIs
|
This is the main object in the alert policy script. It is put into the Javascript environment as the variable neustar. It contains these other objects: More...
Public Member Functions | |
void | log (object message) |
Template | template (string templateName) |
HttpClient | httpClient () |
string | toJSON (object object) |
Leftronic | leftronic (string apikey) |
AWSCreds | awsCreds (object credentials) |
WPMCreds | wpmCreds (object credentials) |
EC2Client | ec2Client (AWSCreds credentials) |
S3Client | s3Client (AWSCreds credentials) |
RumClient | rumClient (WPMCreds credentials) |
SMSClient | smsClient (object credentials) |
This is the main object in the alert policy script. It is put into the Javascript environment as the variable neustar. It contains these other objects:
AWSCreds awsCreds | ( | object | credentials | ) |
Create new AWS Credentials
credentials | a javascript object that must contain
|
credentials | an AWSCreds object |
HttpClient httpClient | ( | ) |
Returns a new HttpClient object.
void log | ( | object | message | ) |
Log a message. Use this function in your alert policy by calling neustar.log.
message | objects are serialized to a string and written to the log. If the object is a javascript object it is serialized as JSON and logged. |
credentials | a WPMCreds object. |
credentials | an AWSCreds object |
credentials | a Native object which must contains
|
Returns a new Template object. Currently only returns a mustache template which is used to generate html for the alert emails. Use this function in your alert policy by calling neustar.template. You can provide the name of your own mustache template. The mustache template name must be one of your data files, or the three default email templates.
templateName | A string of the template name. |
string toJSON | ( | object | object | ) |
Returns a string which is a JSON representation of a javascript object
object | a javascript object to serialize |
WPMCreds wpmCreds | ( | object | credentials | ) |
Create new WPM Credentials
credentials | a javascript object that may contain
|