Giter Site home page Giter Site logo

appdynamics-node's Introduction

appdynamics-node

Build Status Dependencies npm

A Node.js Wrapper for the AppDynamics RESTful API.

Install

You can install appdynamics-node via npm using the command below.

$ npm install --save appdynamics-node

Usage

To use the wrapper, require it within the module or application you're building.

Create a new instance of the AppDynamics module and pass in the parameters as shown below.

The outputType can be either XML OR JSON.

var AppDynamics = require('appdynamics-node'),
    client = new AppDynamics({
        url: 'xxxx',
        port: xxxx,
        username: 'xxxx@xxxx',
        password: 'xxxx',
        outputType: 'xxxx'
    });

Example - Return All AppDynamics Applications

client.applicationsGetAll(function(err, response) {
    console.log(response);
});

Available Methods

General

applicationsGetAll(callback)
businessTransactionsGetAll(applicationName, callback)

Nodes

nodesGetAll(applicationName, callback)
nodesGetByName(applicationName, nodeName, callback)
nodesGetByTier(applicationName, tierName, callback)

Tiers

tiersGetAll(applicationName, callback)
tiersGetByName(applicationName, tierName, callback)

Contributing

Feel free to make changes and submit a PR. I will be expanding this project over time.

Please ensure that your code conforms to the jshint file provided.

Issues?

Please raise an issue on GitHub with as much information as possible and the steps to replicate (if possible).

##License The MIT License (MIT)

Copyright (c) 2015 Matt Major

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

appdynamics-node's People

Contributors

matt-major avatar fholzer avatar

Stargazers

Eric Brusseau avatar Matt Major avatar

Watchers

James Cloos avatar Matt Major avatar

Forkers

kxws888 fholzer klh

appdynamics-node's Issues

HTTP Client errors cause exception in appdynamics-node.

In case the client can't reach the server, eg wrong hostname, port, server unreachable, etc, this exception occurs:
TypeError: Cannot read property 'body' of undefined

The expected behavior is that the callback is called with the err argument populated with an exception.

Not able to login in Appdynamic

Hi,
I used this module to login in appdynalics but it is giving me error.

var AppDynamics = require('appdynamics-node'),
client = new AppDynamics({
url: 'XXXXXX.saas.appdynamics.com/controller/rest/applications/Testing123/metrics?metric-path=Application',
username: 'XXXXXXl@XXXXXX',
password: 'XXXXXX'

});

console.log(client);

It is throwing an exception.

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.