Coder Social home page Coder Social logo

service_status's Introduction

ServiceStatus

Monitors registered web-services.

supply url and interval given in seconds and you will recieve events informing about status.

Installation

def deps do
  [
    {:service_status, git: "[email protected]:drobban/service_status.git", ref: "9cb5b18b1c81a"}
  ]
end

Example

      iex> ServiceStatus.register("google", %ServiceStatus.Config{
      iex> interval: 180,
      iex> url: "https://google.com",
      iex> client: self(),
      iex> internal_id: 1
      iex> })      
      :ok

service_status's People

Contributors

drobban avatar

Watchers

 avatar

service_status's Issues

mark errors and label them in status message

Happy accident.

11:34:14.375 [info] Inserting status to config: 11
11:34:18.240 [info] Inserting status to config: 7
11:35:19.585 [notice] TLS :client: In state :wait_cert_cr at ssl_handshake.erl:2117 generated CLIENT ALERT: Fatal - Certificate Expired

11:35:19.586 [warning] Request response: :error - response: %Req.TransportError{reason: {:tls_alert, {:certificate_expired, ~c"TLS client: In state wait_cert_cr at ssl_handshake.erl:2117 generated CLIENT ALERT: Fatal - Certificate Expired\n"}}}
11:35:19.586 [warning] Got: 0 from - http://labpro-bfa-alvsbyn............
11:35:19.586 [info] Inserting status to config: 1
11:35:19.590 [warning] Request response: :error - response: %Req.TransportError{reason: {:tls_alert, {:certificate_expired, ~c"TLS client: In state wait_cert_cr at ssl_handshake.erl:2117 generated CLIENT ALERT: Fatal - Certificate Expired\n"}}}

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.