All docs
This doc
Function |
|
---|---|
Description | Returns all the records which fall between the given time range. Additionally, you can provide pagination information. |
Output | A JSON String array containing the records in the ‘message’ element within the argument of the success callback. |
var rangeInfo = { tableName : "sampleTable", //name of the table timeFrom : 143435365300, //lower bound of the time range inclusive timeTo : 143435365343, //upper bound of time range exclusive start : 0, // starting index of records count : 10, //page size for pagination columns : [ “column1”, “column2”] //interested columns if null, return all the columns }; client.getRecordsByRange(rangeInfo, function(data) { console.log (data["message"]); }, function(error) { console.log("error occured: " + error); });
[{ "id":"14399961246350.13125980939205978", "tableName":"sampleTable","timestamp":1439996124610, "values":{ "column1":"234,454,34\u0027", "column2":23 } }]