Advanced Alerting APIs
Leftronic Interface Reference

A Rest client that posts data to a Leftronic dashboard. More...

List of all members.

Public Member Functions

void sendNumber (string stream, int value)
void sendText (string stream, object text)
void sendGeoPoint (string stream, double latitude, double longitude)
void sendLeaderboard (string stream, object entries)
void sendList (string stream, array entries)

Detailed Description

A Rest client that posts data to a Leftronic dashboard.

Author:
Matt Rodriguez

Member Function Documentation

void sendGeoPoint ( string  stream,
double  latitude,
double  longitude 
)

Send a geographic coordinate which is a lat, long to a stream

Parameters:
stream
latitude
longitude
void sendLeaderboard ( string  stream,
object  entries 
)

Send name value pairs to a leftronic stream.

Parameters:
streamA string of the stream
entriesA javascript object where each attribute is the name on the leaderboard and the value is the value.
void sendList ( string  stream,
array  entries 
)

Send an array of strings to a Stream

Parameters:
streamA string which is the stream name
entriesA javascript array of strings.
void sendNumber ( string  stream,
int  value 
)

Send a number to a stream

Parameters:
stream
value
void sendText ( string  stream,
object  text 
)

Send text to a Stream

Parameters:
stream
textis a Javascript object which must contain title and message, and may contain imgUrl.
 All Classes Functions