AngularJS wrapper for the Server-Eye web api.
ng-se-api is a collection of AngularJS services to easily send requests to the Server-Eye cloud monitoring api.
The Server-Eye cloud monitoring api provides access to a user's monitored systems, measurements, alerts and many more. Detailed information about parameters can be found in the official api documentation.
Just include dist/ng-se-api.min.js
in your html file and require the module ngSeApi
.
Below is an example that shows how to setup ngSeApi
with an existing api key. You can set the api key at any time in your application using the service seaApiConfig
instead of the provider.
"use strict";
angular.module('myApp', [ 'ngSeApi' ]);
angular.module('myApp').config(['seaConfigProvider', function(seaConfigProvider) {
seaConfigProvider.setApiKey('YOUR-SERVER-EYE-API-KEY');
}]);
More examples in the examples
folder.
angular.module('myApp').controller('TestController', ['$scope', 'seaAgent', function($scope, seaAgent) {
// list all available agents
seaAgent.type.list().then(function(result) {
console.log('types', result);
});
}]);
- install node.js and npm
- install gulp
- run
npm install
in the root folder - Change
version
inpackage.json
- run
gulp
- check folder
dist
and enjoy your new version ๐
- install node.js and npm
- install bower
- run
bower install
- run
node scripts/web-server