[
https://issues.apache.org/jira/browse/AMBARI-9015?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14266764#comment-14266764
]
Yusaku Sako commented on AMBARI-9015:
-------------------------------------
+1 for the 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)