ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Siddharth Wagle (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (AMBARI-10407) Create API endpoint for widgets
Date Wed, 08 Apr 2015 21:17:13 GMT

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

Siddharth Wagle updated AMBARI-10407:
-------------------------------------
    Description: 
Request for getting a user created widget instance (private) /api/v1/users/jaimin/widgets/NAMENODE_HEAP

Response
{code}
{
  href: "http://c6401.ambari.apache.org:8080/api/v1/users/jaimin/widgets/NAMENODE_HEAP",
  cluster_name: "c1",
  widget_name: "NAMENODE_HEAP1",
  widget_type: “GAUGE”,
  display_name: "NameNode Heap",
  service_name: “HDFS”,
  component_name: “NAMENODE”,
  page_names: [“HDFS_SUMMARY”,”DASHBOARD”],
  description: "", 
  sharable: true,
  author: “jaimin”,
  metrics: {
    numerator_metric: "jvmMemoryHeapUsed",
    denominator_metric: "jvmMemoryHeapMax"
  },
  
  expression: [{
    name: result,
    template: “${numerator_metric}/${denominator_metric}”
  }],
  properties: {
   “warning_threshold”: 0.9,
   “error_threshold”:   0.7,
  }
}
{code}

NOTE: It should be able to query and get all the widgets that belongs to a particular page
and either have a specific value for author_name or are having sharable set to true. something
like following
{code}
/api/v1/users?Widgets/sharable=true|Widgets/author=jaimin&page_names=HDFS_SUMMARY&fields=Widgets/*
{code}
  


> Create API endpoint for widgets
> -------------------------------
>
>                 Key: AMBARI-10407
>                 URL: https://issues.apache.org/jira/browse/AMBARI-10407
>             Project: Ambari
>          Issue Type: Task
>          Components: ambari-server
>    Affects Versions: 2.1.0
>            Reporter: Siddharth Wagle
>             Fix For: 2.1.0
>
>
> Request for getting a user created widget instance (private) /api/v1/users/jaimin/widgets/NAMENODE_HEAP
> Response
> {code}
> {
>   href: "http://c6401.ambari.apache.org:8080/api/v1/users/jaimin/widgets/NAMENODE_HEAP",
>   cluster_name: "c1",
>   widget_name: "NAMENODE_HEAP1",
>   widget_type: “GAUGE”,
>   display_name: "NameNode Heap",
>   service_name: “HDFS”,
>   component_name: “NAMENODE”,
>   page_names: [“HDFS_SUMMARY”,”DASHBOARD”],
>   description: "", 
>   sharable: true,
>   author: “jaimin”,
>   metrics: {
>     numerator_metric: "jvmMemoryHeapUsed",
>     denominator_metric: "jvmMemoryHeapMax"
>   },
>   
>   expression: [{
>     name: result,
>     template: “${numerator_metric}/${denominator_metric}”
>   }],
>   properties: {
>    “warning_threshold”: 0.9,
>    “error_threshold”:   0.7,
>   }
> }
> {code}
> NOTE: It should be able to query and get all the widgets that belongs to a particular
page and either have a specific value for author_name or are having sharable set to true.
something like following
> {code}
> /api/v1/users?Widgets/sharable=true|Widgets/author=jaimin&page_names=HDFS_SUMMARY&fields=Widgets/*
> {code}
>   



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

Mime
View raw message