Giter Club home page Giter Club logo

azure-h2o's Introduction

H2O

A collection of web apps.

app path description
/badge A badge SVG image generator.
/badge/health HTTP health badge generator

All these apps can be tested on http://h2o.azurewebsites.net.

NOTE
h2o.azurewebsites.net is hosted on a Azure free pricing plan container. Do not use it in production.

badge - A badge SVG image generator

API

GET /badge?head=head&body=body

Or by POST method:

POST /badge
{
  "head": "head",
  "body": "body"
}

e.g. The following link generates Demo Badge

http://h2o.azurewebsites.net/badge?head=hello&body=world

Parameters

Name Type Required Description
head string YES head text
body string YES body text
head-color string NO head color, default #555555(dark gray)*
body-color string NO body color, default #7cbb00(green)
head-width number NO head width, default 0(auto)*
body-width number NO body width, default 0(auto)
style string NO badge style, may be 'travis' or 'flat'
foreground string NO text color, default #ffffff(white)

NOTE

  • For convenience, color values such as head-color can be passed without '#' prefix.
  • Calculated text width is inaccurate, hope someone can help fix this.

badge/health - HTTP health badge generator

API

GET /badge/health?url=example.com

e.g. The following link generates a badge image indicating the serving status of example.com Demo Badge

http://h2o.azurewebsites.net/badge/health?url=example.com

Parameters

Name Type Required Description
url string YES URL to be tested
check-status number NO checks status code returned by the URL, default 200.
check-response-time number NO checks X-Response-Time header for load, default null(not checked).
If the returned X-Response-Time header value is greater than this value, a WARN badge will be generated.

Parameters of API /badge can be used to control the visual style of generated badge.

NOTE

  • If check-response-time is set but no X-Response-Time header is returned by the server, a FAIL badge will be generated.
  • For security reasons, the calling frequency of /badge/health is restricted to 1 time per 30 seconds per host.

More...

azure-h2o's People

Contributors

algoriz avatar amooj avatar oopstiger avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

okjiangna

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.