GithubHelp home page GithubHelp logo

markmcspadden / dash-javascript Goto Github PK

View Code? Open in Web Editor NEW

This project forked from fiveruns/dash-javascript

1.0 4.0 1.0 121 KB

Access data from your apps in Dash from JavaScript

Home Page: http://fiveruns.github.com/dash-javascript/

dash-javascript's Introduction

FiveRuns Dash API for JavaScript

This is a jQuery plugin that fetches data from your apps in Dash for display in your browser-based applications.

You are looking at version 0.6.0.

Dependencies

This was developed against jQuery 1.3.1, but will probably work with jQuery 1.2.6 as well.

Installation

  1. Put jquery.dash.js on your webserver.
  2. Load jquery.dash.js in your page: <script src="/path/to/javascripts/jquery.dash.js" type="text/javascript" charset="utf-8"></script>
  3. There is no step 3

Usage

The short version:

$('#demo0').dash({fetch: 'latest', token: token, metric: 'cpu'},
  function(value) {
    $(this).append(value);
});

The long version: see the dash-javascript website for deeper details.

Limitations

  • You can only fetch the most recent data. We hope to support fetching data from arbitrary time windows in the future.
  • For the time being, we support only read access to Dash from browser-based apps. This is due to scalability concerns and the awkwardness of writing data in cross-domain browser-based applications.

Authors

The FiveRuns Development Team and Dash community

Contributing

As an open source project, we welcome community contributors!

The best way to contribute is by sending pull requests via GitHub. The official repository for this project is:

http://github.com/fiveruns/dash-javascript

Support

Please join the dash-users Google Group.

You can also contact us via Twitter, Campfire or email; see the main help page for details.

License

# (The FiveRuns License)
#
# Copyright (c) 2006-2009 FiveRuns Corporation
#
# 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.

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.