Server Status
μλ²μ μνλ₯Ό 체ν¬νκ³ μ½κ² νμΈνκΈ° μν λꡬμ λλ€. λλ©μΈ λ³λ‘ port μνμ λν APIμ λμ μ¬λΆλ₯Ό νμΈν©λλ€.
μ¬μ©λ²
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}
μμ μ€μ
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.