Sha256: a8ac9fb76d182e6a81c5d88da7ad3e51da57a4a601061dced6ac65a15c3d0d6d

Contents?: true

Size: 1.45 KB

Versions: 2

Compression:

Stored size: 1.45 KB

Contents

Server Status
==========
[![Dependency Status](https://gemnasium.com/astral1/server_status.png)](https://gemnasium.com/astral1/server_status)
[![Code Climate](https://codeclimate.com/badge.png)](https://codeclimate.com/github/astral1/server_status)

서버의 상태를 체크하고 쉽게 확인하기 위한 도구입니다. 도메인 별로 port 상태와 대표 API의 동작 여부를 확인합니다.

사용법
----
```bash
gem install server_status
statusd <path to config file>
```

API
---
- **/servers** - 확인 대상의 목록
```
["google","test"]
```
- **/:server_name/status - 해당 대상의 상태
```
{"name":"google","code":404,"description":"Google Portal","is_open":true}
```

예제 설정
----
```yaml
port: 4568
servers:
  google:
    protocol: http
    domain: www.google.com
    ssl: false
    description: Google Portal
    port: 80
    apis:
      default:
        url: /deaddead
      details:
        index:
          description: Index Page
          url: /
  test:
    protocol: http
    domain: localhost
    ssl: false
    description: Test Dummy
    port: 4567
    apis:
      default:
        url: /
        payload:
          header:
            content_type: application/json
          params:
            query: TEST
          encode: json
          method: get
```

Copyright
---------

이 프로젝트는 Simplified BSD 2.0 라이센스로 제공되고 있습니다.

Copyright (c) 2012 Jeong, Jiung. See LICENSE.txt for
further details.

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
server_status-0.1.1 README.md
server_status-0.1.0 README.md