You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Andrii Tkach (JIRA)" <ji...@apache.org> on 2015/05/05 12:10:59 UTC
[jira] [Created] (AMBARI-10925) Create/Clone widget: widget created
has malformed value array
Andrii Tkach created AMBARI-10925:
-------------------------------------
Summary: 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)