GithubHelp home page GithubHelp logo

server-eye / ng-se-api Goto Github PK

View Code? Open in Web Editor NEW
2.0 4.0 0.0 1.51 MB

AngularJS wrapper for the Server-Eye web api.

License: MIT License

JavaScript 96.75% Shell 1.04% Ruby 0.24% HTML 1.69% Batchfile 0.27%

ng-se-api's Introduction

ng-se-api

AngularJS wrapper for the Server-Eye web api.

Introduction

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.

Setup

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');
}]);

Usage

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);
    });
}]);

How to build a new version

  • install node.js and npm
  • install gulp
  • run npm install in the root folder
  • Change version in package.json
  • run gulp
  • check folder dist and enjoy your new version ๐Ÿ˜Š

Hot to run the examples

ng-se-api's People

Contributors

martinstaudt avatar sockethe2nd avatar

Stargazers

 avatar Andreas Behr avatar

Watchers

Kim Schneider avatar James Cloos avatar Andreas Behr avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.