Created
July 8, 2011 17:42
-
-
Save berekuk/1072344 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "service": "ubic", | |
| "subservices": [ | |
| { | |
| "service": "ping", | |
| "enabled": 0, | |
| }, | |
| { | |
| "service": "watchdog", | |
| "enabled": 1, | |
| "status": { | |
| "status": "running", | |
| "as_string": "running (pid 1234)", | |
| } | |
| }, | |
| { | |
| "service": "web", | |
| "enabled": 1, | |
| "status": { | |
| "status": "running", | |
| "as_string": "running (pid 5678)", | |
| } | |
| } | |
| ] | |
| } |
Author
berekuk
commented
Jul 8, 2011
- maybe we can make one of "enabled=0" and "enabled=1" default, but I think it's better to make them explicit initially and choose later
- status is not a string; "running"/"not running" may be important for html, for example to draw them in different colors (status a representation of Ubic::Result::Class in perl code)
Author
Also, 'subservices' is the array and not hash because order can matter. (I hope to add natural sort to Ubic::Multiservice::Dir some day, for example).
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment