Giter Site home page Giter Site logo

plug_checkup's People

Contributors

dependabot-preview[bot] avatar ggpasqualino avatar pmartel12 avatar tteerawat avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

plug_checkup's Issues

Maintenance Status

I just wanted to ask about the maintenance status of this project: Is this library still actively maintained?

Otherwise, I would offer to further maintain this project.

Fix example in the README

forward "/health",
  to: PlugCheckup,
  init_opts: %PlugCheckup.Options{checks: [{MyHealthChecks, :check_db}, {MyHealthChecks, :check_redis}]}

the checks field should be a list of PlugCheckup.Check not a list of tuples

Add integration test

Add a test which goes through a plug router and checks whether the response is valid according to the json schema

Docs unclear on Phoenix usage

In the docs it says

Forward your health path to PlugCheckup in your Plug Router

forward "/health",
  to: PlugCheckup,
  init_opts: %PlugCheckup.Options{checks: checks}

This can be confusing when using Phoenix as the Phoenix.Router implements a different forward/4 function that takes a different set of arguments than forward/2 in Plug.Router.

Happy to add an example if you think it's worth it.

Make response pretty

Make the json response pretty formatted.
Add field pretty to Options with default true to be used on the encoding of the json response.

Validate options

Validate the Options given to the plug, raise exception in case it is not, in order to avoid the application to start with wrong configuration.

  • timeout: integer
  • checks: list(PlugCheckup.Check)
  • pretty: boolean

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.