ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sumit Mohanty (JIRA)" <>
Subject [jira] [Reopened] (AMBARI-1561) API should return nagios_alerts as a JSON, not a stringified JSON
Date Fri, 29 Mar 2013 16:25:15 GMT


Sumit Mohanty reopened AMBARI-1561:

      Assignee: Sumit Mohanty  (was: Siddharth Wagle)

The usage of HttpProxyPropertyProvider and inclusion of JsonRequestBodyParser don't feel as
though they belong here. It would make more sense to customize HostComponentResourceProvider
to catch if nagios_alerts is available. The existence of this property indicates that the
stringified JSON is available from the HttpProxyPropertyProvider. THEN, you can de-stringify
it and set properties (but, use Gson - the JsonRequestBodyParser is really for internal use
only). Please leave a comment if you need more clarification.
> API should return nagios_alerts as a JSON, not a stringified JSON
> -----------------------------------------------------------------
>                 Key: AMBARI-1561
>                 URL:
>             Project: Ambari
>          Issue Type: Bug
>          Components: controller
>    Affects Versions: 1.2.2
>            Reporter: Siddharth Wagle
>            Assignee: Sumit Mohanty
>             Fix For: 1.3.0
>         Attachments: AMBARI-1561.patch, AMBARI-1561.patch
> Currently nagios_alerts attribute on Hosts is a stringified JSON. This has two problems:
> 1. Hard to read.
> 2. Puts extra burden on the client.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message