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] [Updated] (AMBARI-10293) Implement Actions Dropdown menu for the widgets on service summary page
Date Tue, 31 Mar 2015 15:07:52 GMT

     [ https://issues.apache.org/jira/browse/AMBARI-10293?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Andrii Tkach updated AMBARI-10293:
----------------------------------
    Attachment: AMBARI-10293.patch

> Implement Actions Dropdown menu for the widgets on service summary page
> -----------------------------------------------------------------------
>
>                 Key: AMBARI-10293
>                 URL: https://issues.apache.org/jira/browse/AMBARI-10293
>             Project: Ambari
>          Issue Type: Task
>          Components: ambari-web
>    Affects Versions: 2.1.0
>            Reporter: Andrii Tkach
>            Assignee: Andrii Tkach
>             Fix For: 2.1.0
>
>         Attachments: AMBARI-10293.patch
>
>
> Please use/create mock data to achieve this task. 
> *API to get list of available widgets:*
> GET /api/v1/users/admin/widget_layouts/default_hbase_layout?excludedFromWidgetLayout=true
> {code}
> {
>  "href": "http://c6401.ambari.apache.org:8080/api/v1/users/admin/widget_layouts/default_hbase_layout?
excludedFromWidgetLayout=true",
>  "items": [
>    {
>      "layout_name": "default_hbase_layout",
>      "section_name": "HBASE_SUMMARY",
>      "cluster_name": "c1",
>      "widgetLayoutInfo": [
>        {
>          "widget_name": "RS_READS_WRITES",
>          "WidgetInfo": {
>            "widget_name": "RS_READS_WRITES",
>            "display_name": "RegionServer Reads and Writes",
>            "description": "This widget shows all the read requests and write requests
on all regions for a RegionServer",
>            "widget_type": "GRAPH",
>            "metrics": [
>              {
>                "name": "regionserver.Server.Get_num_ops",
>                "widget_id": "metrics/hbase/regionserver/Server/Get_num_ops",
>                "category": "",
>                "service_name": "HBASE",
>                "component_name": "HBASE_REGIONSERVER"
>              },
>              {
>                "name": "regionserver.Server.Scan_num_ops",
>                "widget_id": "metrics/hbase/regionserver/Server/Scan_num_ops",
>                "category": "",
>                "service_name": "HBASE",
>                "component_name": "HBASE_REGIONSERVER"
>              },
>              {
>                "name": "regionserver.Server.Append_num_ops",
>                "widget_id": "metrics/hbase/regionserver/Server/Append_num_ops",
>                "category": "",
>                "service_name": "HBASE",
>                "component_name": "HBASE_REGIONSERVER"
>              },
>              {
>                "name": "regionserver.Server.Delete_num_ops",
>                "widget_id": "metrics/hbase/regionserver/Server/Delete_num_ops",
>                "category": "",
>                "service_name": "HBASE",
>                "component_name": "HBASE_REGIONSERVER"
>              },
>              {
>                "name": "regionserver.Server.Increment_num_ops",
>                "widget_id": "metrics/hbase/regionserver/Server/Increment_num_ops",
>                "category": "",
>                "service_name": "HBASE",
>                "component_name": "HBASE_REGIONSERVER"
>              },
>              {
>                "name": "regionserver.Server.Mutate_num_ops",
>                "widget_id": "metrics/hbase/regionserver/Server/Mutate_num_ops",
>                "category": "",
>                "service_name": "HBASE",
>                "component_name": "HBASE_REGIONSERVER"
>              }
>            ],
>            "values": [
>              {
>                "name": "Read Requests",
>                "value": "${regionserver.Server.Get_num_ops + 
>                            regionserver.Server.Scan_num_ops}"
>              },
>              {
>                "name": "Write Requests",
>                "value": "${regionserver.Server.Append_num_ops +  
>                            regionserver.Server.Delete_num_ops +
>                            regionserver.Server.Increment_num_ops +
>                            regionserver.Server.Mutate_num_ops}"
>              }
>            ],
>            "properties": {
>              "display_unit": "Requests",
>              "graph_type": "LINE",
>              "time_range": "1 week"
>            }
>          }
>        },
>        {
>          "widget_name": "RS_READS_WRITES",
>          "WidgetInfo": {
>            "widget_name": "ACTIVE_HANDLER",
>            "display_name": "Active Handlers vs Calls in General Queue",
>            "widget_type": "GRAPH",
>            "metrics": [
>              {
>                "name": "ipc.IPC.numOpenConnections",
>                "widget_id": "metrics/hbase/ipc/IPC/numOpenConnections",
>                "category": "",
>                "service_name": "HBASE",
>                "component_name": "HBASE_REGIONSERVER"
>              },
>              {
>                "name": "ipc.IPC.numCallsInGeneralQueue",
>                "widget_id": "metrics/hbase/ipc/IPC/numOpenConnections",
>                "category": "",
>                "service_name": "HBASE",
>                "component_name": "HBASE_REGIONSERVER"
>              }
>            ],
>            "values": [
>              {
>                "name": "Active Handlers",
>                "value": "${ipc.IPC.numActiveHandler}"
>              },
>              {
>                "name": "Calls in General Queue",
>                "value": "${ipc.IPC.numCallsInGeneralQueue}"
>              }
>            ],
>            "properties": {
>              "graph_type": "LINE",
>              "time_range": "1 hour"
>            }
>          }
>        }]
>   }]
> }
> {code}
> *API to delete a widget from list of available widgets:*
> DELETE /api/v1/users/jaimin/widgets/$\{widget_name\}
> NOTE: Stack defined widgets are not deletable. warn if the user tries to delete stack
defined widgets



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

Mime
View raw message