Return-Path: X-Original-To: apmail-ambari-dev-archive@www.apache.org Delivered-To: apmail-ambari-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DEAB9178AB for ; Tue, 6 Jan 2015 21:03:35 +0000 (UTC) Received: (qmail 97452 invoked by uid 500); 6 Jan 2015 21:03:34 -0000 Delivered-To: apmail-ambari-dev-archive@ambari.apache.org Received: (qmail 97399 invoked by uid 500); 6 Jan 2015 21:03:34 -0000 Mailing-List: contact dev-help@ambari.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ambari.apache.org Delivered-To: mailing list dev@ambari.apache.org Received: (qmail 97325 invoked by uid 99); 6 Jan 2015 21:03:34 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Jan 2015 21:03:34 +0000 Date: Tue, 6 Jan 2015 21:03:34 +0000 (UTC) From: "Siddharth Wagle (JIRA)" To: dev@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (AMBARI-9015) Unsorted aggregate metrics returned by API MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AMBARI-9015?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Siddharth Wagle updated AMBARI-9015: ------------------------------------ Attachment: AMBARI-9015.patch > Unsorted aggregate metrics returned by API > ------------------------------------------ > > Key: AMBARI-9015 > URL: https://issues.apache.org/jira/browse/AMBARI-9015 > Project: Ambari > Issue Type: Bug > Components: ambari-metrics > Affects Versions: 2.0.0 > Reporter: Siddharth Wagle > Assignee: Siddharth Wagle > Fix For: 2.0.0 > > Attachments: AMBARI-9015.patch > > > API response contains unsorted array elements. > {code} > { > "href" : "http://ams-tmp-1:8080/api/v1/clusters/c1/?fields=metrics/memory%5B1420572305,1420572425,15%5D&_=1420572425000", > "Clusters" : { > "cluster_name" : "c1", > "version" : "HDP-2.2" > }, > "metrics" : { > "memory" : { > "Buffer" : [ > [ > 100320.5, > 1420572319 > ], > [ > 91787.33333333333, > 1420572334 > ], > [ > 91804.33333333333, > 1420572349 > ], > [ > 91820.0, > 1420572364 > ], > [ > 91832.0, > 1420572379 > ], > [ > 91878.66666666667, > 1420572424 > ] > ] > } > } > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)