Skip to content

Instantly share code, notes, and snippets.

@berekuk
Created July 8, 2011 17:42
Show Gist options
  • Select an option

  • Save berekuk/1072344 to your computer and use it in GitHub Desktop.

Select an option

Save berekuk/1072344 to your computer and use it in GitHub Desktop.
{
"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)",
}
}
]
}
@berekuk
Copy link
Copy Markdown
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)

@berekuk
Copy link
Copy Markdown
Author

berekuk commented Jul 8, 2011

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