News for hackers. Stuff that matters.
Re:Monitors.txt - lazy webapp monitoring by nicpottier on Saturday November 05, 2011 @04:48PM (#3200869)
Why make it human readable?

Especially if you want lots of providers to support it, pick something super easy to parse.. JSON is the obvious choice there:

   [{ method: "GET",
      url: "index.html",
      tests: [ contains: "nyaruka",
               response_in_ms: 500,
               status: 200 ] },
    { method: "POST",
      url: "login.html",
      params: { foo: "bar" }
      tests: [ "status": 200 ] }]
Re:Monitors.txt - lazy webapp monitoring by icebraining on Saturday November 05, 2011 @05:35PM (#3200989)
I rather use YAML:

    - method: GET
      url: index.html
      tests:
        - contains: nyaruka
        - response_in_ms: 500
        - status: 200
    - method: POST
      url: login.html
      params:
        foo: bar
      tests:
        - status: 200
Re:Monitors.txt - lazy webapp monitoring by jebblue on Saturday November 05, 2011 @05:24PM (#3200958)
JSON is harder to read than XML, to my human eyes.
Re:Monitors.txt - lazy webapp monitoring by lparry on Saturday November 05, 2011 @08:32PM (#3201381)
Wow, first time I've ever heard someone say that. Most people I know think XML is horrid to read, myself included. I'd take json or yaml over XML any day
Re:Monitors.txt - lazy webapp monitoring by jebblue on Sunday November 06, 2011 @01:12PM (#3203342)
I'm probably in the minority on this one yes.
Re:Monitors.txt - lazy webapp monitoring by sylvinus on Saturday November 05, 2011 @06:05PM (#3201056)
depends if it's pretty printed or not (like the example above)
Re:Monitors.txt - lazy webapp monitoring by eliot_sykes on Saturday November 05, 2011 @05:31PM (#3200976)
Maybe need to support JSON, XML, and YAML.