Yeah, we can change this for whatever checker we end up with. I just wanted to get this started with some reasonable checks.

—
Sent from Mailbox

On Tue, Jun 3, 2014 at 5:37 PM, Ivan Suftin <notifications@github.com>
wrote:

>> +        try (ItemManager im = new ItemManager()) {
>> +            Item uber = im.load("uber");
>> +            boolean ok = (uber != null && uber.isEnabled());
>> +            componentCheckMap.put("ItemManager", ok);
>> +            overallHealth = ok && overallHealth;
>> +        } catch (Exception e) {
>> +            componentCheckMap.put("ItemManager", false);
>> +            overallHealth = false;
>> +        }
>> +        
>> +        Gson gson = GsonUtil.getDefault();
>> +        String json = gson.toJson(componentCheckMap);
>> +        if (overallHealth) {
>> +            response = Response.ok(json, MediaType.APPLICATION_JSON_TYPE).build();
>> +        } else {
>> +            response = Response.serverError().entity(json).build();
> Could you check route 52 documentation to see if anything is expected for it except an error code? My concern is the expected return format
> ---
> Reply to this email directly or view it on GitHub:
> https://github.com/USGS-CIDA/coastal-hazards/pull/811/files#r13363265