lib/alerts/index.js
function( maxId, callback ) {

    if( typeof maxId === 'function' ) {
      callback = maxId
      maxId = null
    }

    var self = this
    var id = maxId ? '/' + maxId : ''

    return this.client._clientRequest({
      url: '/alerts/rest/v1/json/list' + id,
    }, function( error, data ) {
      callback.call( self.client, error, data )
    })

  }
function( maxId, callback ) {

    if( typeof maxId === 'function' ) {
      callback = maxId
      maxId = null
    }

    var self = this
    var id = maxId ? '/' + maxId : ''

    return this.client._clientRequest({
      url: '/alerts/rest/v1/json/list' + id,
    }, function( error, data ) {
      callback.call( self.client, error, data )
    })

  }
function ( maxId , callback ) { if ( typeof maxId === 'function' ) { callback = maxId maxId = null } var self = this var id = maxId ? '/' + maxId : '' return this . client . _clientRequest ( { url : '/alerts/rest/v1/json/list' + id , } , function ( error , data ) { callback . call ( self . client , error , data ) } ) }
List all registered rule IDs,
optionally only up to a given `maxId`
@param {String} maxId - optional, list only rules that are less than the specified max Rule ID
@param {Function} callback( error, rules )
@return {Request}
List all registered rule IDs optionally only up to a given maxId