Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-10543

String matches does not work on metrics property of Widget response

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.1.0
    • 2.1.0
    • ambari-server
    • None

    Description

      Following API does not work
      http://c6401.ambari.apache.org:8080/api/v1/clusters/c1/widgets?Widgets/widget_type=HEATMAP&Widgets/metrics.matches(\"service_name\":\"HDFS\")

      Note: Following similar API works
      http://c6401.ambari.apache.org:8080/api/v1/clusters/c1/widgets?Widgets/widget_type=HEATMAP&Widgets/widget_name.matches(HOST_DISK_USED)

      Response
      {
        "href" : "http://c6401.ambari.apache.org:8080/api/v1/clusters/c1/widgets?Widgets/widget_type=HEATMAP&Widgets/widget_name.matches(HOST_DISK_USED)",
        "items" : [
          {
            "href" : "http://c6401.ambari.apache.org:8080/api/v1/clusters/c1/widgets/1",
            "Widgets" : {
              "author" : "ambari",
              "cluster_name" : "c1",
              "display_name" : "Host Disk Space Used %",
              "id" : 1,
              "scope" : "CLUSTER",
              "widget_name" : "HOST_DISK_USED",
              "widget_type" : "HEATMAP"
            }
          }
        ]
      }
      

      Attachments

        Issue Links

          Activity

            People

              ikozlov Ivan Kozlov
              swagle Siddharth Wagle
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: