ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrii Tkach (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AMBARI-10925) Create/Clone widget: widget created has malformed value array
Date Tue, 05 May 2015 10:13:00 GMT

    [ https://issues.apache.org/jira/browse/AMBARI-10925?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14528219#comment-14528219
] 

Andrii Tkach commented on AMBARI-10925:
---------------------------------------

5980 tests complete (12 seconds)
  79 tests pending


> Create/Clone widget: widget created has malformed value array
> -------------------------------------------------------------
>
>                 Key: AMBARI-10925
>                 URL: https://issues.apache.org/jira/browse/AMBARI-10925
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-web
>    Affects Versions: 2.1.0
>            Reporter: Andrii Tkach
>            Assignee: Andrii Tkach
>             Fix For: 2.1.0
>
>
> Following is the newly created widget definition:
> {code}
> {
>   "href" : "http://104.196.89.55:8080/api/v1/clusters/c1/widgets/45",
>   "WidgetInfo" : {
>     "author" : "admin",
>     "cluster_name" : "c1",
>     "description" : "New number widget",
>     "display_name" : "New number widget",
>     "id" : 45,
>     "metrics" : "[{\"service_name\":\"HBASE\",\"component_name\":\"HBASE_REGIONSERVER\",\"name\":\"disk_total\",\"metric_path\":\"metrics/disk/disk_total\"}]",
>     "properties" : "{\"display_unit\":\"\",\"error_threshold\":\"20\",\"warning_threshold\":\"10\"}",
>     "scope" : "USER",
>     "time_created" : 1430342893444,
>     "values" : "[{\"computedValue\":\"9.72\",\"value\":\"${disk_total}\"}]",
>     "widget_name" : "New number widget",
>     "widget_type" : "NUMBER"
>   }
> }
> {code}
> {noformat}
> values = [{\"computedValue\":\"9.72\",\"value\":\"${disk_total}\"}] which is wrong
> {noformat}
> {noformat}
> It should be values = [{\"name\":\"\",\"value\":\"${disk_total}\"}] for number/gauge
widget type.
> {noformat}
> For Graph name should be the label name.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message