You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Sumit Mohanty (JIRA)" <ji...@apache.org> on 2013/03/29 17:25:15 UTC
[jira] [Reopened] (AMBARI-1561) API should return nagios_alerts as
a JSON, not a stringified JSON
[ https://issues.apache.org/jira/browse/AMBARI-1561?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
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: https://issues.apache.org/jira/browse/AMBARI-1561
> 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: http://www.atlassian.com/software/jira