You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by sr...@apache.org on 2014/05/29 23:02:14 UTC
[5/7] AMBARI-5928. Create and populate Metrics section of a slider
app - only Slider view changes. (onechiporenko via srimanth)
http://git-wip-us.apache.org/repos/asf/ambari/blob/07556168/contrib/views/slider/src/main/resources/ui/app/assets/data/metrics/metric3.json
----------------------------------------------------------------------
diff --git a/contrib/views/slider/src/main/resources/ui/app/assets/data/metrics/metric3.json b/contrib/views/slider/src/main/resources/ui/app/assets/data/metrics/metric3.json
new file mode 100644
index 0000000..e1bc296
--- /dev/null
+++ b/contrib/views/slider/src/main/resources/ui/app/assets/data/metrics/metric3.json
@@ -0,0 +1,1856 @@
+{
+ "metrics" : {
+ "dfs" : {
+ "namenode" : {
+ "CreateFileOps" : [
+ [
+ 0.0,
+ 1401359340
+ ],
+ [
+ 0.0,
+ 1401359355
+ ],
+ [
+ 0.0,
+ 1401359370
+ ],
+ [
+ 0.0,
+ 1401359385
+ ],
+ [
+ 0.0,
+ 1401359400
+ ],
+ [
+ 0.0,
+ 1401359415
+ ],
+ [
+ 0.0,
+ 1401359430
+ ],
+ [
+ 0.0,
+ 1401359445
+ ],
+ [
+ 0.0,
+ 1401359460
+ ],
+ [
+ 0.0,
+ 1401359475
+ ],
+ [
+ 0.0,
+ 1401359490
+ ],
+ [
+ 0.0,
+ 1401359505
+ ],
+ [
+ 0.0,
+ 1401359520
+ ],
+ [
+ 0.0,
+ 1401359535
+ ],
+ [
+ 0.0,
+ 1401359550
+ ],
+ [
+ 0.0,
+ 1401359565
+ ],
+ [
+ 0.0,
+ 1401359580
+ ],
+ [
+ 0.0,
+ 1401359595
+ ],
+ [
+ 0.0,
+ 1401359610
+ ],
+ [
+ 0.0,
+ 1401359625
+ ],
+ [
+ 0.0,
+ 1401359640
+ ],
+ [
+ 0.0,
+ 1401359655
+ ],
+ [
+ 0.0,
+ 1401359670
+ ],
+ [
+ 0.0,
+ 1401359685
+ ],
+ [
+ 0.0,
+ 1401359700
+ ],
+ [
+ 0.0,
+ 1401359715
+ ],
+ [
+ 0.0,
+ 1401359730
+ ],
+ [
+ 0.0,
+ 1401359745
+ ],
+ [
+ 0.0,
+ 1401359760
+ ],
+ [
+ 0.0,
+ 1401359775
+ ],
+ [
+ 0.0,
+ 1401359790
+ ],
+ [
+ 0.0,
+ 1401359805
+ ],
+ [
+ 0.0,
+ 1401359820
+ ],
+ [
+ 0.0,
+ 1401359835
+ ],
+ [
+ 0.0,
+ 1401359850
+ ],
+ [
+ 0.0,
+ 1401359865
+ ],
+ [
+ 0.0,
+ 1401359880
+ ],
+ [
+ 0.0,
+ 1401359895
+ ],
+ [
+ 0.0,
+ 1401359910
+ ],
+ [
+ 0.0,
+ 1401359925
+ ],
+ [
+ 0.0,
+ 1401359940
+ ],
+ [
+ 0.0,
+ 1401359955
+ ],
+ [
+ 0.0,
+ 1401359970
+ ],
+ [
+ 0.0,
+ 1401359985
+ ],
+ [
+ 0.0,
+ 1401360000
+ ],
+ [
+ 0.0,
+ 1401360015
+ ],
+ [
+ 0.0,
+ 1401360030
+ ],
+ [
+ 0.0,
+ 1401360045
+ ],
+ [
+ 0.0,
+ 1401360060
+ ],
+ [
+ 0.0,
+ 1401360075
+ ],
+ [
+ 0.0,
+ 1401360090
+ ],
+ [
+ 0.0,
+ 1401360105
+ ],
+ [
+ 0.0,
+ 1401360120
+ ],
+ [
+ 0.0,
+ 1401360135
+ ],
+ [
+ 0.0,
+ 1401360150
+ ],
+ [
+ 0.0,
+ 1401360165
+ ],
+ [
+ 0.0,
+ 1401360180
+ ],
+ [
+ 0.0,
+ 1401360195
+ ],
+ [
+ 0.0,
+ 1401360210
+ ],
+ [
+ 0.0,
+ 1401360225
+ ],
+ [
+ 0.0,
+ 1401360240
+ ],
+ [
+ 0.0,
+ 1401360255
+ ],
+ [
+ 0.0,
+ 1401360270
+ ],
+ [
+ 0.0,
+ 1401360285
+ ],
+ [
+ 0.0,
+ 1401360300
+ ],
+ [
+ 0.0,
+ 1401360315
+ ],
+ [
+ 0.0,
+ 1401360330
+ ],
+ [
+ 0.0,
+ 1401360345
+ ],
+ [
+ 0.0,
+ 1401360360
+ ],
+ [
+ 0.0,
+ 1401360375
+ ],
+ [
+ 0.0,
+ 1401360390
+ ],
+ [
+ 0.0,
+ 1401360405
+ ],
+ [
+ 0.0,
+ 1401360420
+ ],
+ [
+ 0.0,
+ 1401360435
+ ],
+ [
+ 0.0,
+ 1401360450
+ ],
+ [
+ 0.0,
+ 1401360465
+ ],
+ [
+ 0.0,
+ 1401360480
+ ],
+ [
+ 0.0,
+ 1401360495
+ ],
+ [
+ 0.0,
+ 1401360510
+ ],
+ [
+ 0.0,
+ 1401360525
+ ],
+ [
+ 0.0,
+ 1401360540
+ ],
+ [
+ 0.0,
+ 1401360555
+ ],
+ [
+ 0.0,
+ 1401360570
+ ],
+ [
+ 0.0,
+ 1401360585
+ ],
+ [
+ 0.0,
+ 1401360600
+ ],
+ [
+ 0.0,
+ 1401360615
+ ],
+ [
+ 0.0,
+ 1401360630
+ ],
+ [
+ 0.0,
+ 1401360645
+ ],
+ [
+ 0.0,
+ 1401360660
+ ],
+ [
+ 0.0,
+ 1401360675
+ ],
+ [
+ 0.0,
+ 1401360690
+ ],
+ [
+ 0.0,
+ 1401360705
+ ],
+ [
+ 0.0,
+ 1401360720
+ ],
+ [
+ 0.0,
+ 1401360735
+ ],
+ [
+ 0.0,
+ 1401360750
+ ],
+ [
+ 0.0,
+ 1401360765
+ ],
+ [
+ 0.0,
+ 1401360780
+ ],
+ [
+ 0.0,
+ 1401360795
+ ],
+ [
+ 0.0,
+ 1401360810
+ ],
+ [
+ 0.0,
+ 1401360825
+ ],
+ [
+ 0.0,
+ 1401360840
+ ],
+ [
+ 0.0,
+ 1401360855
+ ],
+ [
+ 0.0,
+ 1401360870
+ ],
+ [
+ 0.0,
+ 1401360885
+ ],
+ [
+ 0.0,
+ 1401360900
+ ],
+ [
+ 0.0,
+ 1401360915
+ ],
+ [
+ 0.0,
+ 1401360930
+ ],
+ [
+ 0.0,
+ 1401360945
+ ],
+ [
+ 0.0,
+ 1401360960
+ ],
+ [
+ 0.0,
+ 1401360975
+ ],
+ [
+ 0.0,
+ 1401360990
+ ],
+ [
+ 0.0,
+ 1401361005
+ ],
+ [
+ 0.0,
+ 1401361020
+ ],
+ [
+ 0.0,
+ 1401361035
+ ],
+ [
+ 0.0,
+ 1401361050
+ ],
+ [
+ 0.0,
+ 1401361065
+ ],
+ [
+ 0.0,
+ 1401361080
+ ],
+ [
+ 0.0,
+ 1401361095
+ ],
+ [
+ 0.0,
+ 1401361110
+ ],
+ [
+ 0.0,
+ 1401361125
+ ],
+ [
+ 0.0,
+ 1401361140
+ ],
+ [
+ 0.0,
+ 1401361155
+ ],
+ [
+ 0.0,
+ 1401361170
+ ],
+ [
+ 0.0,
+ 1401361185
+ ],
+ [
+ 0.0,
+ 1401361200
+ ],
+ [
+ 0.0,
+ 1401361215
+ ],
+ [
+ 0.0,
+ 1401361230
+ ],
+ [
+ 0.0,
+ 1401361245
+ ],
+ [
+ 0.0,
+ 1401361260
+ ],
+ [
+ 0.0,
+ 1401361275
+ ],
+ [
+ 0.0,
+ 1401361290
+ ],
+ [
+ 0.0,
+ 1401361305
+ ],
+ [
+ 0.0,
+ 1401361320
+ ],
+ [
+ 0.0,
+ 1401361335
+ ],
+ [
+ 0.0,
+ 1401361350
+ ],
+ [
+ 0.0,
+ 1401361365
+ ],
+ [
+ 0.0,
+ 1401361380
+ ],
+ [
+ 0.0,
+ 1401361395
+ ],
+ [
+ 0.0,
+ 1401361410
+ ],
+ [
+ 0.0,
+ 1401361425
+ ],
+ [
+ 0.0,
+ 1401361440
+ ],
+ [
+ 0.0,
+ 1401361455
+ ],
+ [
+ 0.0,
+ 1401361470
+ ],
+ [
+ 0.0,
+ 1401361485
+ ],
+ [
+ 0.0,
+ 1401361500
+ ],
+ [
+ 0.0,
+ 1401361515
+ ],
+ [
+ 0.0,
+ 1401361530
+ ],
+ [
+ 0.0,
+ 1401361545
+ ],
+ [
+ 0.0,
+ 1401361560
+ ],
+ [
+ 0.0,
+ 1401361575
+ ],
+ [
+ 0.0,
+ 1401361590
+ ],
+ [
+ 0.0,
+ 1401361605
+ ],
+ [
+ 0.0,
+ 1401361620
+ ],
+ [
+ 0.0,
+ 1401361635
+ ],
+ [
+ 0.0,
+ 1401361650
+ ],
+ [
+ 0.0,
+ 1401361665
+ ],
+ [
+ 0.0,
+ 1401361680
+ ],
+ [
+ 0.0,
+ 1401361695
+ ],
+ [
+ 0.0,
+ 1401361710
+ ],
+ [
+ 0.0,
+ 1401361725
+ ],
+ [
+ 0.0,
+ 1401361740
+ ],
+ [
+ 0.0,
+ 1401361755
+ ],
+ [
+ 0.0,
+ 1401361770
+ ],
+ [
+ 0.0,
+ 1401361785
+ ],
+ [
+ 0.0,
+ 1401361800
+ ],
+ [
+ 0.0,
+ 1401361815
+ ],
+ [
+ 0.0,
+ 1401361830
+ ],
+ [
+ 0.0,
+ 1401361845
+ ],
+ [
+ 0.0,
+ 1401361860
+ ],
+ [
+ 0.0,
+ 1401361875
+ ],
+ [
+ 0.0,
+ 1401361890
+ ],
+ [
+ 0.0,
+ 1401361905
+ ],
+ [
+ 0.0,
+ 1401361920
+ ],
+ [
+ 0.0,
+ 1401361935
+ ],
+ [
+ 0.08,
+ 1401361950
+ ],
+ [
+ 0.0533333333333,
+ 1401361965
+ ],
+ [
+ 0.0,
+ 1401361980
+ ],
+ [
+ 0.0,
+ 1401361995
+ ],
+ [
+ 0.0,
+ 1401362010
+ ],
+ [
+ 0.0,
+ 1401362025
+ ],
+ [
+ 0.0,
+ 1401362040
+ ],
+ [
+ 0.0,
+ 1401362055
+ ],
+ [
+ 0.0,
+ 1401362070
+ ],
+ [
+ 0.0,
+ 1401362085
+ ],
+ [
+ 0.0,
+ 1401362100
+ ],
+ [
+ 0.0,
+ 1401362115
+ ],
+ [
+ 0.0,
+ 1401362130
+ ],
+ [
+ 0.0,
+ 1401362145
+ ],
+ [
+ 0.0,
+ 1401362160
+ ],
+ [
+ 0.0,
+ 1401362175
+ ],
+ [
+ 0.0,
+ 1401362190
+ ],
+ [
+ 0.0,
+ 1401362205
+ ],
+ [
+ 0.0,
+ 1401362220
+ ],
+ [
+ 0.0,
+ 1401362235
+ ],
+ [
+ 0.0,
+ 1401362250
+ ],
+ [
+ 0.0,
+ 1401362265
+ ],
+ [
+ 0.0,
+ 1401362280
+ ],
+ [
+ 0.0,
+ 1401362295
+ ],
+ [
+ 0.0,
+ 1401362310
+ ],
+ [
+ 0.0,
+ 1401362325
+ ],
+ [
+ 0.0,
+ 1401362340
+ ],
+ [
+ 0.0,
+ 1401362355
+ ],
+ [
+ 0.0,
+ 1401362370
+ ],
+ [
+ 0.0,
+ 1401362385
+ ],
+ [
+ 0.0,
+ 1401362400
+ ],
+ [
+ 0.0,
+ 1401362415
+ ],
+ [
+ 0.0,
+ 1401362430
+ ],
+ [
+ 0.0,
+ 1401362445
+ ],
+ [
+ 0.0,
+ 1401362460
+ ],
+ [
+ 0.0,
+ 1401362475
+ ],
+ [
+ 0.0,
+ 1401362490
+ ],
+ [
+ 0.0,
+ 1401362505
+ ],
+ [
+ 0.0,
+ 1401362520
+ ],
+ [
+ 0.0,
+ 1401362535
+ ],
+ [
+ 0.0,
+ 1401362550
+ ],
+ [
+ 0.0,
+ 1401362565
+ ],
+ [
+ 0.0,
+ 1401362580
+ ],
+ [
+ 0.0,
+ 1401362595
+ ],
+ [
+ 0.0,
+ 1401362610
+ ],
+ [
+ 0.0,
+ 1401362625
+ ],
+ [
+ 0.0,
+ 1401362640
+ ],
+ [
+ 0.0,
+ 1401362655
+ ],
+ [
+ 0.0,
+ 1401362670
+ ],
+ [
+ 0.0,
+ 1401362685
+ ]
+ ],
+ "FileInfoOps" : [
+ [
+ 0.0,
+ 1401359340
+ ],
+ [
+ 0.0,
+ 1401359355
+ ],
+ [
+ 0.0,
+ 1401359370
+ ],
+ [
+ 0.0,
+ 1401359385
+ ],
+ [
+ 0.0,
+ 1401359400
+ ],
+ [
+ 0.0,
+ 1401359415
+ ],
+ [
+ 0.0,
+ 1401359430
+ ],
+ [
+ 0.0,
+ 1401359445
+ ],
+ [
+ 0.0,
+ 1401359460
+ ],
+ [
+ 0.0,
+ 1401359475
+ ],
+ [
+ 0.0,
+ 1401359490
+ ],
+ [
+ 0.0,
+ 1401359505
+ ],
+ [
+ 0.0177777777778,
+ 1401359520
+ ],
+ [
+ 0.115555555556,
+ 1401359535
+ ],
+ [
+ 0.0,
+ 1401359550
+ ],
+ [
+ 0.0,
+ 1401359565
+ ],
+ [
+ 0.0,
+ 1401359580
+ ],
+ [
+ 0.0,
+ 1401359595
+ ],
+ [
+ 0.0,
+ 1401359610
+ ],
+ [
+ 0.0,
+ 1401359625
+ ],
+ [
+ 0.0,
+ 1401359640
+ ],
+ [
+ 0.0,
+ 1401359655
+ ],
+ [
+ 0.0,
+ 1401359670
+ ],
+ [
+ 0.0,
+ 1401359685
+ ],
+ [
+ 0.0,
+ 1401359700
+ ],
+ [
+ 0.0,
+ 1401359715
+ ],
+ [
+ 0.0,
+ 1401359730
+ ],
+ [
+ 0.0,
+ 1401359745
+ ],
+ [
+ 0.0,
+ 1401359760
+ ],
+ [
+ 0.0,
+ 1401359775
+ ],
+ [
+ 0.0,
+ 1401359790
+ ],
+ [
+ 0.0,
+ 1401359805
+ ],
+ [
+ 0.025,
+ 1401359820
+ ],
+ [
+ 0.108333333333,
+ 1401359835
+ ],
+ [
+ 0.0,
+ 1401359850
+ ],
+ [
+ 0.0,
+ 1401359865
+ ],
+ [
+ 0.0,
+ 1401359880
+ ],
+ [
+ 0.0,
+ 1401359895
+ ],
+ [
+ 0.0,
+ 1401359910
+ ],
+ [
+ 0.0,
+ 1401359925
+ ],
+ [
+ 0.0,
+ 1401359940
+ ],
+ [
+ 0.0,
+ 1401359955
+ ],
+ [
+ 0.0,
+ 1401359970
+ ],
+ [
+ 0.0,
+ 1401359985
+ ],
+ [
+ 0.0,
+ 1401360000
+ ],
+ [
+ 0.0,
+ 1401360015
+ ],
+ [
+ 0.0,
+ 1401360030
+ ],
+ [
+ 0.0,
+ 1401360045
+ ],
+ [
+ 0.0,
+ 1401360060
+ ],
+ [
+ 0.0,
+ 1401360075
+ ],
+ [
+ 0.0,
+ 1401360090
+ ],
+ [
+ 0.0,
+ 1401360105
+ ],
+ [
+ 0.0,
+ 1401360120
+ ],
+ [
+ 0.133333333333,
+ 1401360135
+ ],
+ [
+ 0.0,
+ 1401360150
+ ],
+ [
+ 0.0,
+ 1401360165
+ ],
+ [
+ 0.0,
+ 1401360180
+ ],
+ [
+ 0.0,
+ 1401360195
+ ],
+ [
+ 0.0,
+ 1401360210
+ ],
+ [
+ 0.0,
+ 1401360225
+ ],
+ [
+ 0.0,
+ 1401360240
+ ],
+ [
+ 0.0,
+ 1401360255
+ ],
+ [
+ 0.0,
+ 1401360270
+ ],
+ [
+ 0.0,
+ 1401360285
+ ],
+ [
+ 0.0,
+ 1401360300
+ ],
+ [
+ 0.0,
+ 1401360315
+ ],
+ [
+ 0.0,
+ 1401360330
+ ],
+ [
+ 0.0,
+ 1401360345
+ ],
+ [
+ 0.0,
+ 1401360360
+ ],
+ [
+ 0.0,
+ 1401360375
+ ],
+ [
+ 0.0,
+ 1401360390
+ ],
+ [
+ 0.0,
+ 1401360405
+ ],
+ [
+ 0.108333333333,
+ 1401360420
+ ],
+ [
+ 0.025,
+ 1401360435
+ ],
+ [
+ 0.0,
+ 1401360450
+ ],
+ [
+ 0.0,
+ 1401360465
+ ],
+ [
+ 0.0,
+ 1401360480
+ ],
+ [
+ 0.0,
+ 1401360495
+ ],
+ [
+ 0.0,
+ 1401360510
+ ],
+ [
+ 0.0,
+ 1401360525
+ ],
+ [
+ 0.0,
+ 1401360540
+ ],
+ [
+ 0.0,
+ 1401360555
+ ],
+ [
+ 0.0,
+ 1401360570
+ ],
+ [
+ 0.0,
+ 1401360585
+ ],
+ [
+ 0.0,
+ 1401360600
+ ],
+ [
+ 0.0,
+ 1401360615
+ ],
+ [
+ 0.0,
+ 1401360630
+ ],
+ [
+ 0.0,
+ 1401360645
+ ],
+ [
+ 0.0,
+ 1401360660
+ ],
+ [
+ 0.0,
+ 1401360675
+ ],
+ [
+ 0.0,
+ 1401360690
+ ],
+ [
+ 0.0,
+ 1401360705
+ ],
+ [
+ 0.0,
+ 1401360720
+ ],
+ [
+ 0.12380952381,
+ 1401360735
+ ],
+ [
+ 0.00952380952381,
+ 1401360750
+ ],
+ [
+ 0.0,
+ 1401360765
+ ],
+ [
+ 0.0,
+ 1401360780
+ ],
+ [
+ 0.0,
+ 1401360795
+ ],
+ [
+ 0.0,
+ 1401360810
+ ],
+ [
+ 0.0,
+ 1401360825
+ ],
+ [
+ 0.0,
+ 1401360840
+ ],
+ [
+ 0.0,
+ 1401360855
+ ],
+ [
+ 0.0,
+ 1401360870
+ ],
+ [
+ 0.0,
+ 1401360885
+ ],
+ [
+ 0.0,
+ 1401360900
+ ],
+ [
+ 0.0,
+ 1401360915
+ ],
+ [
+ 0.0,
+ 1401360930
+ ],
+ [
+ 0.0,
+ 1401360945
+ ],
+ [
+ 0.0,
+ 1401360960
+ ],
+ [
+ 0.0,
+ 1401360975
+ ],
+ [
+ 0.0,
+ 1401360990
+ ],
+ [
+ 0.0,
+ 1401361005
+ ],
+ [
+ 0.0,
+ 1401361020
+ ],
+ [
+ 0.115555555556,
+ 1401361035
+ ],
+ [
+ 0.0177777777778,
+ 1401361050
+ ],
+ [
+ 0.0,
+ 1401361065
+ ],
+ [
+ 0.0,
+ 1401361080
+ ],
+ [
+ 0.0,
+ 1401361095
+ ],
+ [
+ 0.0,
+ 1401361110
+ ],
+ [
+ 0.0,
+ 1401361125
+ ],
+ [
+ 0.0,
+ 1401361140
+ ],
+ [
+ 0.0,
+ 1401361155
+ ],
+ [
+ 0.0,
+ 1401361170
+ ],
+ [
+ 0.0,
+ 1401361185
+ ],
+ [
+ 0.0,
+ 1401361200
+ ],
+ [
+ 0.0,
+ 1401361215
+ ],
+ [
+ 0.0,
+ 1401361230
+ ],
+ [
+ 0.0,
+ 1401361245
+ ],
+ [
+ 0.0,
+ 1401361260
+ ],
+ [
+ 0.0,
+ 1401361275
+ ],
+ [
+ 0.0,
+ 1401361290
+ ],
+ [
+ 0.0,
+ 1401361305
+ ],
+ [
+ 0.0888888888889,
+ 1401361320
+ ],
+ [
+ 0.0444444444444,
+ 1401361335
+ ],
+ [
+ 0.0,
+ 1401361350
+ ],
+ [
+ 0.0,
+ 1401361365
+ ],
+ [
+ 0.0,
+ 1401361380
+ ],
+ [
+ 0.0,
+ 1401361395
+ ],
+ [
+ 0.0,
+ 1401361410
+ ],
+ [
+ 0.0,
+ 1401361425
+ ],
+ [
+ 0.0,
+ 1401361440
+ ],
+ [
+ 0.0,
+ 1401361455
+ ],
+ [
+ 0.0,
+ 1401361470
+ ],
+ [
+ 0.0,
+ 1401361485
+ ],
+ [
+ 0.0,
+ 1401361500
+ ],
+ [
+ 0.0,
+ 1401361515
+ ],
+ [
+ 0.0,
+ 1401361530
+ ],
+ [
+ 0.0,
+ 1401361545
+ ],
+ [
+ 0.0,
+ 1401361560
+ ],
+ [
+ 0.0,
+ 1401361575
+ ],
+ [
+ 0.0,
+ 1401361590
+ ],
+ [
+ 0.0,
+ 1401361605
+ ],
+ [
+ 0.075,
+ 1401361620
+ ],
+ [
+ 0.0583333333333,
+ 1401361635
+ ],
+ [
+ 0.0,
+ 1401361650
+ ],
+ [
+ 0.0,
+ 1401361665
+ ],
+ [
+ 0.0,
+ 1401361680
+ ],
+ [
+ 0.0,
+ 1401361695
+ ],
+ [
+ 0.0,
+ 1401361710
+ ],
+ [
+ 0.0,
+ 1401361725
+ ],
+ [
+ 0.0,
+ 1401361740
+ ],
+ [
+ 0.0,
+ 1401361755
+ ],
+ [
+ 0.0,
+ 1401361770
+ ],
+ [
+ 0.0,
+ 1401361785
+ ],
+ [
+ 0.0,
+ 1401361800
+ ],
+ [
+ 0.0,
+ 1401361815
+ ],
+ [
+ 0.0,
+ 1401361830
+ ],
+ [
+ 0.0,
+ 1401361845
+ ],
+ [
+ 0.0,
+ 1401361860
+ ],
+ [
+ 0.0,
+ 1401361875
+ ],
+ [
+ 0.0,
+ 1401361890
+ ],
+ [
+ 0.0,
+ 1401361905
+ ],
+ [
+ 0.08,
+ 1401361920
+ ],
+ [
+ 0.0533333333333,
+ 1401361935
+ ],
+ [
+ 0.24,
+ 1401361950
+ ],
+ [
+ 0.16,
+ 1401361965
+ ],
+ [
+ 0.0,
+ 1401361980
+ ],
+ [
+ 0.0,
+ 1401361995
+ ],
+ [
+ 0.0,
+ 1401362010
+ ],
+ [
+ 0.0,
+ 1401362025
+ ],
+ [
+ 0.0,
+ 1401362040
+ ],
+ [
+ 0.0,
+ 1401362055
+ ],
+ [
+ 0.0,
+ 1401362070
+ ],
+ [
+ 0.0,
+ 1401362085
+ ],
+ [
+ 0.0,
+ 1401362100
+ ],
+ [
+ 0.0,
+ 1401362115
+ ],
+ [
+ 0.0,
+ 1401362130
+ ],
+ [
+ 0.0,
+ 1401362145
+ ],
+ [
+ 0.0,
+ 1401362160
+ ],
+ [
+ 0.0,
+ 1401362175
+ ],
+ [
+ 0.0,
+ 1401362190
+ ],
+ [
+ 0.0,
+ 1401362205
+ ],
+ [
+ 0.106666666667,
+ 1401362220
+ ],
+ [
+ 0.0266666666667,
+ 1401362235
+ ],
+ [
+ 0.0,
+ 1401362250
+ ],
+ [
+ 0.0,
+ 1401362265
+ ],
+ [
+ 0.0,
+ 1401362280
+ ],
+ [
+ 0.0,
+ 1401362295
+ ],
+ [
+ 0.0,
+ 1401362310
+ ],
+ [
+ 0.0,
+ 1401362325
+ ],
+ [
+ 0.0,
+ 1401362340
+ ],
+ [
+ 0.0,
+ 1401362355
+ ],
+ [
+ 0.0,
+ 1401362370
+ ],
+ [
+ 0.0,
+ 1401362385
+ ],
+ [
+ 0.0,
+ 1401362400
+ ],
+ [
+ 0.0,
+ 1401362415
+ ],
+ [
+ 0.0,
+ 1401362430
+ ],
+ [
+ 0.0,
+ 1401362445
+ ],
+ [
+ 0.0,
+ 1401362460
+ ],
+ [
+ 0.0,
+ 1401362475
+ ],
+ [
+ 0.0,
+ 1401362490
+ ],
+ [
+ 0.0,
+ 1401362505
+ ],
+ [
+ 0.0,
+ 1401362520
+ ],
+ [
+ 0.115555555556,
+ 1401362535
+ ],
+ [
+ 0.0177777777778,
+ 1401362550
+ ],
+ [
+ 0.0,
+ 1401362565
+ ],
+ [
+ 0.106666666667,
+ 1401362580
+ ],
+ [
+ 0.0266666666667,
+ 1401362595
+ ],
+ [
+ 0.0,
+ 1401362610
+ ],
+ [
+ 0.0,
+ 1401362625
+ ],
+ [
+ 0.0,
+ 1401362640
+ ],
+ [
+ 0.0,
+ 1401362655
+ ],
+ [
+ 0.0,
+ 1401362670
+ ],
+ [
+ 0.0,
+ 1401362685
+ ],
+ [
+ 0.0,
+ 1401362700
+ ],
+ [
+ 0.0,
+ 1401362715
+ ],
+ [
+ 0.0,
+ 1401362730
+ ],
+ [
+ 0.0,
+ 1401362745
+ ],
+ [
+ 0.0,
+ 1401362760
+ ],
+ [
+ 0.0,
+ 1401362775
+ ],
+ [
+ 0.0,
+ 1401362790
+ ],
+ [
+ 0.0,
+ 1401362805
+ ],
+ [
+ 0.0888888888889,
+ 1401362820
+ ],
+ [
+ 0.0444444444444,
+ 1401362835
+ ],
+ [
+ 0.0,
+ 1401362850
+ ],
+ [
+ 0.0,
+ 1401362865
+ ],
+ [
+ 0.0,
+ 1401362880
+ ]
+ ]
+ }
+ }
+ }
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/ambari/blob/07556168/contrib/views/slider/src/main/resources/ui/app/assets/data/metrics/metric4.json
----------------------------------------------------------------------
diff --git a/contrib/views/slider/src/main/resources/ui/app/assets/data/metrics/metric4.json b/contrib/views/slider/src/main/resources/ui/app/assets/data/metrics/metric4.json
new file mode 100644
index 0000000..5ebaad4
--- /dev/null
+++ b/contrib/views/slider/src/main/resources/ui/app/assets/data/metrics/metric4.json
@@ -0,0 +1,968 @@
+{
+ "metrics" : {
+ "rpc" : {
+ "RpcQueueTime_avg_time" : [
+ [
+ 0.0,
+ 1401359595
+ ],
+ [
+ 0.0666666666667,
+ 1401359610
+ ],
+ [
+ 0.933333333333,
+ 1401359625
+ ],
+ [
+ 0.0333333333333,
+ 1401359640
+ ],
+ [
+ 0.466666666667,
+ 1401359655
+ ],
+ [
+ 0.0,
+ 1401359670
+ ],
+ [
+ 0.0666666666667,
+ 1401359685
+ ],
+ [
+ 0.933333333333,
+ 1401359700
+ ],
+ [
+ 0.477777777778,
+ 1401359715
+ ],
+ [
+ 0.466666666667,
+ 1401359730
+ ],
+ [
+ 0.933333333333,
+ 1401359745
+ ],
+ [
+ 0.477777777778,
+ 1401359760
+ ],
+ [
+ 0.311111111111,
+ 1401359775
+ ],
+ [
+ 0.0,
+ 1401359790
+ ],
+ [
+ 0.0,
+ 1401359805
+ ],
+ [
+ 0.0,
+ 1401359820
+ ],
+ [
+ 0.0333333333333,
+ 1401359835
+ ],
+ [
+ 0.216666666667,
+ 1401359850
+ ],
+ [
+ 0.0,
+ 1401359865
+ ],
+ [
+ 0.0266666666667,
+ 1401359880
+ ],
+ [
+ 0.36,
+ 1401359895
+ ],
+ [
+ 0.8,
+ 1401359910
+ ],
+ [
+ 0.0,
+ 1401359925
+ ],
+ [
+ 0.0666666666667,
+ 1401359940
+ ],
+ [
+ 0.5,
+ 1401359955
+ ],
+ [
+ 0.5,
+ 1401359970
+ ],
+ [
+ 0.0,
+ 1401359985
+ ],
+ [
+ 0.0,
+ 1401360000
+ ],
+ [
+ 0.5,
+ 1401360015
+ ],
+ [
+ 0.0,
+ 1401360030
+ ],
+ [
+ 0.0,
+ 1401360045
+ ],
+ [
+ 0.0,
+ 1401360060
+ ],
+ [
+ 0.0,
+ 1401360075
+ ],
+ [
+ 0.0,
+ 1401360090
+ ],
+ [
+ 0.0,
+ 1401360105
+ ],
+ [
+ 0.0,
+ 1401360120
+ ],
+ [
+ 0.333333333333,
+ 1401360135
+ ],
+ [
+ 0.5,
+ 1401360150
+ ],
+ [
+ 0.0333333333333,
+ 1401360165
+ ],
+ [
+ 0.0,
+ 1401360180
+ ],
+ [
+ 0.933333333333,
+ 1401360195
+ ],
+ [
+ 0.422222222222,
+ 1401360210
+ ],
+ [
+ 0.0444444444444,
+ 1401360225
+ ],
+ [
+ 0.0,
+ 1401360240
+ ],
+ [
+ 0.0,
+ 1401360255
+ ],
+ [
+ 0.433333333333,
+ 1401360270
+ ],
+ [
+ 0.5,
+ 1401360285
+ ],
+ [
+ 0.0333333333333,
+ 1401360300
+ ],
+ [
+ 0.0,
+ 1401360315
+ ],
+ [
+ 0.0,
+ 1401360330
+ ],
+ [
+ 0.8,
+ 1401360345
+ ],
+ [
+ 0.2,
+ 1401360360
+ ],
+ [
+ 0.0,
+ 1401360375
+ ],
+ [
+ 0.866666666667,
+ 1401360390
+ ],
+ [
+ 0.133333333333,
+ 1401360405
+ ],
+ [
+ 0.0,
+ 1401360420
+ ],
+ [
+ 0.0,
+ 1401360435
+ ],
+ [
+ 0.0,
+ 1401360450
+ ],
+ [
+ 0.0,
+ 1401360465
+ ],
+ [
+ 0.0,
+ 1401360480
+ ],
+ [
+ 0.4,
+ 1401360495
+ ],
+ [
+ 0.9,
+ 1401360510
+ ],
+ [
+ 1.0,
+ 1401360525
+ ],
+ [
+ 0.266666666667,
+ 1401360540
+ ],
+ [
+ 0.0,
+ 1401360555
+ ],
+ [
+ 0.0,
+ 1401360570
+ ],
+ [
+ 0.0,
+ 1401360585
+ ],
+ [
+ 0.0,
+ 1401360600
+ ],
+ [
+ 0.4,
+ 1401360615
+ ],
+ [
+ 0.9,
+ 1401360630
+ ],
+ [
+ 0.2,
+ 1401360645
+ ],
+ [
+ 0.0,
+ 1401360660
+ ],
+ [
+ 0.0,
+ 1401360675
+ ],
+ [
+ 0.0,
+ 1401360690
+ ],
+ [
+ 0.8,
+ 1401360705
+ ],
+ [
+ 0.566666666667,
+ 1401360720
+ ],
+ [
+ 0.0666666666667,
+ 1401360735
+ ],
+ [
+ 0.0,
+ 1401360750
+ ],
+ [
+ 0.0,
+ 1401360765
+ ],
+ [
+ 0.0,
+ 1401360780
+ ],
+ [
+ 0.0,
+ 1401360795
+ ],
+ [
+ 0.0,
+ 1401360810
+ ],
+ [
+ 0.0,
+ 1401360825
+ ],
+ [
+ 0.0,
+ 1401360840
+ ],
+ [
+ 0.0,
+ 1401360855
+ ],
+ [
+ 0.0,
+ 1401360870
+ ],
+ [
+ 0.733333333333,
+ 1401360885
+ ],
+ [
+ 0.4,
+ 1401360900
+ ],
+ [
+ 0.8,
+ 1401360915
+ ],
+ [
+ 0.266666666667,
+ 1401360930
+ ],
+ [
+ 0.4,
+ 1401360945
+ ],
+ [
+ 0.9,
+ 1401360960
+ ],
+ [
+ 0.2,
+ 1401360975
+ ],
+ [
+ 0.4,
+ 1401360990
+ ],
+ [
+ 0.1,
+ 1401361005
+ ],
+ [
+ 0.0,
+ 1401361020
+ ],
+ [
+ 0.0,
+ 1401361035
+ ],
+ [
+ 0.0,
+ 1401361050
+ ],
+ [
+ 0.0,
+ 1401361065
+ ],
+ [
+ 0.0,
+ 1401361080
+ ],
+ [
+ 0.0,
+ 1401361095
+ ],
+ [
+ 0.0,
+ 1401361110
+ ],
+ [
+ 0.0,
+ 1401361125
+ ],
+ [
+ 0.0,
+ 1401361140
+ ],
+ [
+ 0.0,
+ 1401361155
+ ],
+ [
+ 0.0,
+ 1401361170
+ ],
+ [
+ 0.733333333333,
+ 1401361185
+ ],
+ [
+ 0.333333333333,
+ 1401361200
+ ],
+ [
+ 0.0,
+ 1401361215
+ ],
+ [
+ 0.333333333333,
+ 1401361230
+ ],
+ [
+ 0.866666666667,
+ 1401361245
+ ],
+ [
+ 0.266666666667,
+ 1401361260
+ ],
+ [
+ 0.0,
+ 1401361275
+ ],
+ [
+ 0.733333333333,
+ 1401361290
+ ],
+ [
+ 0.633333333333,
+ 1401361305
+ ],
+ [
+ 0.833333333333,
+ 1401361320
+ ],
+ [
+ 0.333333333333,
+ 1401361335
+ ],
+ [
+ 0.0,
+ 1401361350
+ ],
+ [
+ 0.0,
+ 1401361365
+ ],
+ [
+ 0.183333333333,
+ 1401361380
+ ],
+ [
+ 0.75,
+ 1401361395
+ ],
+ [
+ 0.266666666667,
+ 1401361410
+ ],
+ [
+ 0.666666666667,
+ 1401361425
+ ],
+ [
+ 0.333333333333,
+ 1401361440
+ ],
+ [
+ 0.0,
+ 1401361455
+ ],
+ [
+ 0.6,
+ 1401361470
+ ],
+ [
+ 0.466666666667,
+ 1401361485
+ ],
+ [
+ 0.6,
+ 1401361500
+ ],
+ [
+ 0.4,
+ 1401361515
+ ],
+ [
+ 0.0,
+ 1401361530
+ ],
+ [
+ 0.0,
+ 1401361545
+ ],
+ [
+ 0.0,
+ 1401361560
+ ],
+ [
+ 0.0,
+ 1401361575
+ ],
+ [
+ 0.0,
+ 1401361590
+ ],
+ [
+ 0.0,
+ 1401361605
+ ],
+ [
+ 0.0,
+ 1401361620
+ ],
+ [
+ 0.533333333333,
+ 1401361635
+ ],
+ [
+ 0.4,
+ 1401361650
+ ],
+ [
+ 0.0,
+ 1401361665
+ ],
+ [
+ 0.0,
+ 1401361680
+ ],
+ [
+ 0.0,
+ 1401361695
+ ],
+ [
+ 0.0,
+ 1401361710
+ ],
+ [
+ 0.0,
+ 1401361725
+ ],
+ [
+ 0.0,
+ 1401361740
+ ],
+ [
+ 0.0,
+ 1401361755
+ ],
+ [
+ 0.0,
+ 1401361770
+ ],
+ [
+ 0.0,
+ 1401361785
+ ],
+ [
+ 0.0,
+ 1401361800
+ ],
+ [
+ 0.0,
+ 1401361815
+ ],
+ [
+ 0.666666666667,
+ 1401361830
+ ],
+ [
+ 0.333333333333,
+ 1401361845
+ ],
+ [
+ 0.0,
+ 1401361860
+ ],
+ [
+ 0.0,
+ 1401361875
+ ],
+ [
+ 0.333333333333,
+ 1401361890
+ ],
+ [
+ 0.2,
+ 1401361905
+ ],
+ [
+ 0.6,
+ 1401361920
+ ],
+ [
+ 0.4,
+ 1401361935
+ ],
+ [
+ 0.0,
+ 1401361950
+ ],
+ [
+ 0.0,
+ 1401361965
+ ],
+ [
+ 0.6,
+ 1401361980
+ ],
+ [
+ 0.4,
+ 1401361995
+ ],
+ [
+ 0.0,
+ 1401362010
+ ],
+ [
+ 0.0,
+ 1401362025
+ ],
+ [
+ 0.0,
+ 1401362040
+ ],
+ [
+ 0.0,
+ 1401362055
+ ],
+ [
+ 0.0,
+ 1401362070
+ ],
+ [
+ 0.0,
+ 1401362085
+ ],
+ [
+ 0.666666666667,
+ 1401362100
+ ],
+ [
+ 0.333333333333,
+ 1401362115
+ ],
+ [
+ 0.0,
+ 1401362130
+ ],
+ [
+ 0.0,
+ 1401362145
+ ],
+ [
+ 0.183333333333,
+ 1401362160
+ ],
+ [
+ 0.0833333333333,
+ 1401362175
+ ],
+ [
+ 0.0,
+ 1401362190
+ ],
+ [
+ 0.0,
+ 1401362205
+ ],
+ [
+ 0.8,
+ 1401362220
+ ],
+ [
+ 0.2,
+ 1401362235
+ ],
+ [
+ 0.0,
+ 1401362250
+ ],
+ [
+ 0.0,
+ 1401362265
+ ],
+ [
+ 0.0,
+ 1401362280
+ ],
+ [
+ 0.0,
+ 1401362295
+ ],
+ [
+ 0.0,
+ 1401362310
+ ],
+ [
+ 0.0,
+ 1401362325
+ ],
+ [
+ 0.0,
+ 1401362340
+ ],
+ [
+ 0.0,
+ 1401362355
+ ],
+ [
+ 0.8,
+ 1401362370
+ ],
+ [
+ 0.2,
+ 1401362385
+ ],
+ [
+ 0.0,
+ 1401362400
+ ],
+ [
+ 0.0,
+ 1401362415
+ ],
+ [
+ 0.366666666667,
+ 1401362430
+ ],
+ [
+ 0.1,
+ 1401362445
+ ],
+ [
+ 0.0,
+ 1401362460
+ ],
+ [
+ 0.0,
+ 1401362475
+ ],
+ [
+ 0.0,
+ 1401362490
+ ],
+ [
+ 0.0,
+ 1401362505
+ ],
+ [
+ 0.288888888889,
+ 1401362520
+ ],
+ [
+ 0.0444444444444,
+ 1401362535
+ ],
+ [
+ 0.0,
+ 1401362550
+ ],
+ [
+ 0.8,
+ 1401362565
+ ],
+ [
+ 0.2,
+ 1401362580
+ ],
+ [
+ 0.0,
+ 1401362595
+ ],
+ [
+ 0.366666666667,
+ 1401362610
+ ],
+ [
+ 0.133333333333,
+ 1401362625
+ ],
+ [
+ 0.0,
+ 1401362640
+ ],
+ [
+ 0.0,
+ 1401362655
+ ],
+ [
+ 0.0,
+ 1401362670
+ ],
+ [
+ 0.0,
+ 1401362685
+ ],
+ [
+ 0.0,
+ 1401362700
+ ],
+ [
+ 0.0,
+ 1401362715
+ ],
+ [
+ 0.0,
+ 1401362730
+ ],
+ [
+ 0.0,
+ 1401362745
+ ],
+ [
+ 0.6,
+ 1401362760
+ ],
+ [
+ 0.333333333333,
+ 1401362775
+ ],
+ [
+ 0.3,
+ 1401362790
+ ],
+ [
+ 0.166666666667,
+ 1401362805
+ ],
+ [
+ 0.0,
+ 1401362820
+ ],
+ [
+ 0.0,
+ 1401362835
+ ],
+ [
+ 0.0,
+ 1401362850
+ ],
+ [
+ 0.0,
+ 1401362865
+ ],
+ [
+ 0.0,
+ 1401362880
+ ],
+ [
+ 0.0,
+ 1401362895
+ ],
+ [
+ 0.0,
+ 1401362910
+ ],
+ [
+ 0.0,
+ 1401362925
+ ],
+ [
+ 0.0,
+ 1401362940
+ ],
+ [
+ 0.0,
+ 1401362955
+ ],
+ [
+ 0.0,
+ 1401362970
+ ],
+ [
+ 0.0,
+ 1401362985
+ ],
+ [
+ 0.666666666667,
+ 1401363000
+ ],
+ [
+ 0.266666666667,
+ 1401363015
+ ],
+ [
+ 0.0,
+ 1401363030
+ ],
+ [
+ 0.0,
+ 1401363045
+ ],
+ [
+ 0.166666666667,
+ 1401363060
+ ],
+ [
+ 0.0833333333333,
+ 1401363075
+ ],
+ [
+ 0.0,
+ 1401363090
+ ],
+ [
+ 0.0,
+ 1401363105
+ ],
+ [
+ 0.0,
+ 1401363120
+ ],
+ [
+ 0.0,
+ 1401363135
+ ],
+ [
+ 0.166666666667,
+ 1401363150
+ ],
+ [
+ 0.0833333333333,
+ 1401363165
+ ],
+ [
+ 0.222222222222,
+ 1401363180
+ ]
+ ]
+ }
+ }
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/ambari/blob/07556168/contrib/views/slider/src/main/resources/ui/app/controllers/slider_app/summary_controller.js
----------------------------------------------------------------------
diff --git a/contrib/views/slider/src/main/resources/ui/app/controllers/slider_app/summary_controller.js b/contrib/views/slider/src/main/resources/ui/app/controllers/slider_app/summary_controller.js
new file mode 100644
index 0000000..7e8d6e6
--- /dev/null
+++ b/contrib/views/slider/src/main/resources/ui/app/controllers/slider_app/summary_controller.js
@@ -0,0 +1,23 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+App.SliderAppSummaryController = Ember.Controller.extend({
+
+
+
+});
http://git-wip-us.apache.org/repos/asf/ambari/blob/07556168/contrib/views/slider/src/main/resources/ui/app/controllers/slider_app_controller.js
----------------------------------------------------------------------
diff --git a/contrib/views/slider/src/main/resources/ui/app/controllers/slider_app_controller.js b/contrib/views/slider/src/main/resources/ui/app/controllers/slider_app_controller.js
index 06af9f3..77bf0a0 100644
--- a/contrib/views/slider/src/main/resources/ui/app/controllers/slider_app_controller.js
+++ b/contrib/views/slider/src/main/resources/ui/app/controllers/slider_app_controller.js
@@ -105,7 +105,6 @@ App.SliderAppController = Ember.ObjectController.extend({
},
/**
- * Do request to delete current slider's app
* Do request to <strong>freeze</strong> current slider's app
* @returns {$.ajax}
* @method freeze
http://git-wip-us.apache.org/repos/asf/ambari/blob/07556168/contrib/views/slider/src/main/resources/ui/app/helpers/ajax.js
----------------------------------------------------------------------
diff --git a/contrib/views/slider/src/main/resources/ui/app/helpers/ajax.js b/contrib/views/slider/src/main/resources/ui/app/helpers/ajax.js
index 66b97bd..64c8385 100644
--- a/contrib/views/slider/src/main/resources/ui/app/helpers/ajax.js
+++ b/contrib/views/slider/src/main/resources/ui/app/helpers/ajax.js
@@ -102,7 +102,28 @@ var urls = {
data: JSON.stringify(data.data)
}
}
+ },
+
+ 'metrics': {
+ real: 'apps/{id}/metrics/{metric}',
+ mock: '/data/metrics/metric.json'
+ },
+
+ 'metrics2': {
+ real: 'apps/{id}/metrics/{metric}',
+ mock: '/data/metrics/metric2.json'
+ },
+
+ 'metrics3': {
+ real: 'apps/{id}/metrics/{metric}',
+ mock: '/data/metrics/metric3.json'
+ },
+
+ 'metrics4': {
+ real: 'apps/{id}/metrics/{metric}',
+ mock: '/data/metrics/metric4.json'
}
+
};
/**
* Replace data-placeholders to its values
http://git-wip-us.apache.org/repos/asf/ambari/blob/07556168/contrib/views/slider/src/main/resources/ui/app/helpers/helper.js
----------------------------------------------------------------------
diff --git a/contrib/views/slider/src/main/resources/ui/app/helpers/helper.js b/contrib/views/slider/src/main/resources/ui/app/helpers/helper.js
index 75323c2..bfa0a68 100644
--- a/contrib/views/slider/src/main/resources/ui/app/helpers/helper.js
+++ b/contrib/views/slider/src/main/resources/ui/app/helpers/helper.js
@@ -24,4 +24,45 @@ String.prototype.format = function () {
});
};
+/**
+ * Helper function for bound property helper registration
+ * @memberof App
+ * @method registerBoundHelper
+ * @param name {String} name of helper
+ * @param view {Em.View} view
+ */
+App.registerBoundHelper = function(name, view) {
+ Ember.Handlebars.registerHelper(name, function(property, options) {
+ options.hash.contentBinding = property;
+ return Ember.Handlebars.helpers.view.call(this, view, options);
+ });
+};
+
+
+/**
+ * Return formatted string with inserted <code>wbr</code>-tag after each dot
+ *
+ * @param {String} content
+ *
+ * Examples:
+ *
+ * returns 'apple'
+ * {{formatWordBreak 'apple'}}
+ *
+ * returns 'apple.<wbr />banana'
+ * {{formatWordBreak 'apple.banana'}}
+ *
+ * returns 'apple.<wbr />banana.<wbr />uranium'
+ * {{formatWordBreak 'apple.banana.uranium'}}
+ */
+App.registerBoundHelper('formatWordBreak', Em.View.extend({
+ tagName: 'span',
+ template: Ember.Handlebars.compile('{{{view.result}}}'),
+ /**
+ * @type {string}
+ */
+ result: function() {
+ return this.get('content') && this.get('content').replace(/\//g, '/<wbr />');
+ }.property('content')
+}));
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/ambari/blob/07556168/contrib/views/slider/src/main/resources/ui/app/helpers/string_utils.js
----------------------------------------------------------------------
diff --git a/contrib/views/slider/src/main/resources/ui/app/helpers/string_utils.js b/contrib/views/slider/src/main/resources/ui/app/helpers/string_utils.js
new file mode 100644
index 0000000..9675f49
--- /dev/null
+++ b/contrib/views/slider/src/main/resources/ui/app/helpers/string_utils.js
@@ -0,0 +1,163 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+module.exports = {
+
+ pad: function(str, len, pad, dir) {
+
+ var STR_PAD_LEFT = 1;
+ var STR_PAD_RIGHT = 2;
+ var STR_PAD_BOTH = 3;
+
+ if (typeof(len) == "undefined") { len = 0; }
+ if (typeof(pad) == "undefined") { pad = ' '; }
+ if (typeof(dir) == "undefined") { dir = STR_PAD_RIGHT; }
+
+ if (len + 1 >= str.length) {
+
+ switch (dir){
+
+ case STR_PAD_LEFT:
+ str = Array(len + 1 - str.length).join(pad) + str;
+ break;
+
+ case STR_PAD_BOTH:
+ var padlen = len - str.length;
+ var right = Math.ceil((padlen) / 2);
+ var left = padlen - right;
+ str = Array(left+1).join(pad) + str + Array(right+1).join(pad);
+ break;
+
+ default:
+ str = str + Array(len + 1 - str.length).join(pad);
+ break;
+
+ } // switch
+
+ }
+ return str;
+
+ },
+ underScoreToCamelCase: function(name){
+ function replacer(str, p1, p2, offset, s) {
+ return str[1].toUpperCase();
+ }
+ return name.replace(/_\w/g,replacer);
+ },
+
+ /**
+ * Forces given string into upper camel-case representation. The first
+ * character of each word will be capitalized with the rest in lower case.
+ */
+ getCamelCase : function(name) {
+ if (name != null) {
+ return name.toLowerCase().replace(/(\b\w)/g, function(f) {
+ return f.toUpperCase();
+ })
+ }
+ return name;
+ },
+
+ /**
+ * Compare two versions by following rules:
+ * first higher than second then return 1
+ * first lower than second then return -1
+ * first equal to second then return 0
+ * @param first {string}
+ * @param second {string}
+ * @return {number}
+ */
+ compareVersions: function(first, second){
+ if (!(typeof first === 'string' && typeof second === 'string')) {
+ return false;
+ }
+ if (first === '' || second === '') {
+ return false;
+ }
+ var firstNumbers = first.split('.');
+ var secondNumbers = second.split('.');
+ var length = 0;
+ var i = 0;
+ var result = false;
+ if(firstNumbers.length === secondNumbers.length) {
+ length = firstNumbers.length;
+ } else if(firstNumbers.length < secondNumbers.length){
+ length = secondNumbers.length;
+ } else {
+ length = firstNumbers.length;
+ }
+
+ while(i < length && !result){
+ firstNumbers[i] = (firstNumbers[i] === undefined) ? 0 : window.parseInt(firstNumbers[i]);
+ secondNumbers[i] = (secondNumbers[i] === undefined) ? 0 : window.parseInt(secondNumbers[i]);
+ if(firstNumbers[i] > secondNumbers[i]){
+ result = 1;
+ break;
+ } else if(firstNumbers[i] === secondNumbers[i]){
+ result = 0;
+ } else if(firstNumbers[i] < secondNumbers[i]){
+ result = -1;
+ break;
+ }
+ i++;
+ }
+ return result;
+ },
+
+ isSingleLine: function(string){
+ return String(string).trim().indexOf("\n") == -1;
+ },
+ /**
+ * transform array of objects into CSV format content
+ * @param array
+ * @return {Array}
+ */
+ arrayToCSV: function(array){
+ var content = "";
+ array.forEach(function(item){
+ var row = [];
+ for(var i in item){
+ if(item.hasOwnProperty(i)){
+ row.push(item[i]);
+ }
+ }
+ content += row.join(',') + '\n';
+ });
+ return content;
+ },
+
+ /**
+ * Extracts filename from linux/unix path
+ * @param path
+ * @return {string}: filename
+ */
+ getFileFromPath: function(path) {
+ if (!path || typeof path !== 'string') {
+ return '';
+ }
+ return path.replace(/^.*[\/]/, '');
+ },
+
+ getPath: function(path) {
+ if (!path || typeof path !== 'string' || path[0] != '/') {
+ return '';
+ }
+ var last_slash = path.lastIndexOf('/');
+ return (last_slash!=0)?path.substr(0,last_slash):'/';
+ }
+};
http://git-wip-us.apache.org/repos/asf/ambari/blob/07556168/contrib/views/slider/src/main/resources/ui/app/mappers/slider_apps_mapper.js
----------------------------------------------------------------------
diff --git a/contrib/views/slider/src/main/resources/ui/app/mappers/slider_apps_mapper.js b/contrib/views/slider/src/main/resources/ui/app/mappers/slider_apps_mapper.js
index 7811ce0..488390b 100644
--- a/contrib/views/slider/src/main/resources/ui/app/mappers/slider_apps_mapper.js
+++ b/contrib/views/slider/src/main/resources/ui/app/mappers/slider_apps_mapper.js
@@ -112,6 +112,13 @@ App.SliderAppsMapper = App.Mapper.createWithMixins(App.RunPeriodically, {
return quickLinks.mapProperty('id');
},
+ parseObject: function(o) {
+ if (Ember.typeOf(o) !== 'object') return [];
+ return Ember.keys(o).map(function(key) {
+ return {key: key, value: o[key]};
+ });
+ },
+
/**
* Parse loaded data
* Load <code>App.SliderApp</code> model
@@ -125,8 +132,9 @@ App.SliderAppsMapper = App.Mapper.createWithMixins(App.RunPeriodically, {
data.items.forEach(function(app) {
var componentsId = app.components ? self.parseComponents(app) : [],
- configs = app.configs ? self.parseConfigs(app) : {};
- quickLinks = self.parseQuickLinks(app);
+ configs = app.configs ? self.parseConfigs(app) : {},
+ quickLinks = self.parseQuickLinks(app),
+ jmx = self.parseObject(app.jmx);
apps.push(
Ember.Object.create({
@@ -142,6 +150,7 @@ App.SliderAppsMapper = App.Mapper.createWithMixins(App.RunPeriodically, {
components: componentsId,
quickLinks: quickLinks,
configs: configs,
+ jmx: jmx,
runtimeProperties: app.configs
})
);
http://git-wip-us.apache.org/repos/asf/ambari/blob/07556168/contrib/views/slider/src/main/resources/ui/app/models/slider_app.js
----------------------------------------------------------------------
diff --git a/contrib/views/slider/src/main/resources/ui/app/models/slider_app.js b/contrib/views/slider/src/main/resources/ui/app/models/slider_app.js
index 14c4a32..1e8ecc4 100644
--- a/contrib/views/slider/src/main/resources/ui/app/models/slider_app.js
+++ b/contrib/views/slider/src/main/resources/ui/app/models/slider_app.js
@@ -92,6 +92,8 @@ App.SliderApp = DS.Model.extend({
*/
configs: DS.attr('object'),
+ jmx: DS.attr('object'),
+
/**
* Global configs
* @type {{key: string, value: *}[]}
@@ -99,7 +101,7 @@ App.SliderApp = DS.Model.extend({
globals: function() {
var c = this.get('configs.global');
return this.mapObject(c);
- }.property('configs.global'),
+ }.property('configs.@each'),
/**
* HBase-Site configs
@@ -108,7 +110,7 @@ App.SliderApp = DS.Model.extend({
hbaseSite: function() {
var c = this.get('configs.hbase-site');
return this.mapObject(c);
- }.property('configs.hbase-site'),
+ }.property('configs.@each'),
/**
* Configs which are not in global or hbase-site
@@ -124,7 +126,15 @@ App.SliderApp = DS.Model.extend({
ret = ret.concat(self.mapObject(c[key]));
});
return ret;
- }.property('configs'),
+ }.property('configs.@each'),
+
+ /**
+ * Display metrics only for running apps
+ * @type {boolean}
+ */
+ showMetrics: function() {
+ return App.SliderApp.Status.running === this.get('status');
+ }.property('status'),
/**
* Map object to array
http://git-wip-us.apache.org/repos/asf/ambari/blob/07556168/contrib/views/slider/src/main/resources/ui/app/routes/main.js
----------------------------------------------------------------------
diff --git a/contrib/views/slider/src/main/resources/ui/app/routes/main.js b/contrib/views/slider/src/main/resources/ui/app/routes/main.js
index f875ffa..07babda 100644
--- a/contrib/views/slider/src/main/resources/ui/app/routes/main.js
+++ b/contrib/views/slider/src/main/resources/ui/app/routes/main.js
@@ -18,6 +18,10 @@
App.IndexRoute = Ember.Route.extend({
+ model: function () {
+ return this.modelFor('sliderApps');
+ },
+
redirect: function () {
this.transitionTo('slider_apps');
}
@@ -40,7 +44,7 @@ App.SliderAppsRoute = Ember.Route.extend({
App.SliderAppRoute = Ember.Route.extend({
model: function(params) {
- return this.store.find('sliderApp', params.slider_app_id);
+ return this.store.all('sliderApp', params.slider_app_id);
}
});
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/ambari/blob/07556168/contrib/views/slider/src/main/resources/ui/app/styles/application.less
----------------------------------------------------------------------
diff --git a/contrib/views/slider/src/main/resources/ui/app/styles/application.less b/contrib/views/slider/src/main/resources/ui/app/styles/application.less
index cbf466c..a4347b9 100644
--- a/contrib/views/slider/src/main/resources/ui/app/styles/application.less
+++ b/contrib/views/slider/src/main/resources/ui/app/styles/application.less
@@ -504,4 +504,94 @@ a {
}
.modal-backdrop.in {
opacity:0;
-}
\ No newline at end of file
+}
+
+/**
+ * App Summary Page
+ */
+.app_summary {
+ .container {
+ padding-left: 0;
+ }
+}
+
+
+.chart-container {
+ cursor: default;
+
+ position: relative;
+ margin: 20px 15px 0px 15px;
+
+ .chart {
+ position: relative;
+ z-index: 1;
+ }
+ .chart-y-axis {
+ position: absolute;
+ top: 0;
+ bottom: 0px;
+ width: 100px;
+ z-index: 2;
+ margin-top: 15px;
+ }
+ .chart-x-axis {
+ position: absolute;
+ top: 180px;
+ left: 35%;
+ width: 30%;
+ z-index: 2;
+ }
+ .x_tick {
+ margin-top: 5px;
+ .title {
+ padding: 0 2px 0 2px;
+ opacity: 1 !important;
+ top: 148px;
+ }
+ }
+ svg {
+ g {
+ g:nth-child(1) {
+ display: none;
+ }
+ }
+ }
+ text {
+ font-weight: 700;
+ opacity: 1 !important;
+ }
+ .chart-legend {
+ font-family: 'Courier New';
+ position: absolute;
+ top: 180px;
+ z-index: 3;
+ }
+ .rickshaw_legend {
+ background-color: #999 !important;
+ li:hover {
+ background-color: #999 !important;
+ }
+ }
+ .rickshaw_legend:empty {
+ padding: 0;
+ }
+ .rickshaw_graph {
+ .x_tick {
+ .title {
+ bottom: -6px;
+ opacity: 0.75;
+ }
+ }
+ }
+ .chart-overlay {
+ position: absolute;
+ top: 0;
+ bottom: 0;
+ width: 100%;
+ z-index: 5;
+ }
+ .chart-title {
+ text-align: center;
+ margin-top: 20px;
+ }
+}
http://git-wip-us.apache.org/repos/asf/ambari/blob/07556168/contrib/views/slider/src/main/resources/ui/app/templates/common/chart.hbs
----------------------------------------------------------------------
diff --git a/contrib/views/slider/src/main/resources/ui/app/templates/common/chart.hbs b/contrib/views/slider/src/main/resources/ui/app/templates/common/chart.hbs
new file mode 100644
index 0000000..e590a75
--- /dev/null
+++ b/contrib/views/slider/src/main/resources/ui/app/templates/common/chart.hbs
@@ -0,0 +1,26 @@
+{{!
+* Licensed to the Apache Software Foundation (ASF) under one
+* or more contributor license agreements. See the NOTICE file
+* distributed with this work for additional information
+* regarding copyright ownership. The ASF licenses this file
+* to you under the Apache License, Version 2.0 (the
+* "License"); you may not use this file except in compliance
+* with the License. You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+}}
+
+<div {{bind-attr class=":time-label"}}>{{view.parentView.currentTimeState.name}}</div>
+<div {{bind-attr id="view.containerId"}} {{bind-attr class="view.containerClass :chart-container"}}>
+ <div {{bind-attr id="view.yAxisId"}} {{bind-attr class="view.yAxisClass :chart-y-axis"}}></div>
+ <div {{bind-attr id="view.xAxisId"}} {{bind-attr class="view.xAxisClass :chart-x-axis"}}></div>
+ <div {{bind-attr id="view.legendId"}} {{bind-attr class="view.legendClass :chart-legend"}}></div>
+ <div {{bind-attr id="view.chartId"}} {{bind-attr class="view.chartClass :chart"}}></div>
+ <div {{bind-attr id="view.titleId"}} {{bind-attr class="view.titleClass :chart-title"}}>{{view.title}}</div>
+</div>
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/ambari/blob/07556168/contrib/views/slider/src/main/resources/ui/app/templates/slider_app/configs.hbs
----------------------------------------------------------------------
diff --git a/contrib/views/slider/src/main/resources/ui/app/templates/slider_app/configs.hbs b/contrib/views/slider/src/main/resources/ui/app/templates/slider_app/configs.hbs
index 5e07e57..cf4a9f1 100644
--- a/contrib/views/slider/src/main/resources/ui/app/templates/slider_app/configs.hbs
+++ b/contrib/views/slider/src/main/resources/ui/app/templates/slider_app/configs.hbs
@@ -29,7 +29,7 @@
{{#each model.otherConfigs}}
<tr>
<td>{{key}}</td>
- <td>{{value}}</td>
+ <td>{{formatWordBreak value}}</td>
</tr>
{{/each}}
</tbody>
@@ -50,7 +50,7 @@
{{#each model.globals}}
<tr>
<td>{{key}}</td>
- <td>{{value}}</td>
+ <td>{{formatWordBreak value}}</td>
</tr>
{{/each}}
</tbody>
@@ -71,7 +71,7 @@
{{#each model.hbaseSite}}
<tr>
<td>{{key}}</td>
- <td>{{value}}</td>
+ <td>{{formatWordBreak value}}</td>
</tr>
{{/each}}
</tbody>
http://git-wip-us.apache.org/repos/asf/ambari/blob/07556168/contrib/views/slider/src/main/resources/ui/app/templates/slider_app/summary.hbs
----------------------------------------------------------------------
diff --git a/contrib/views/slider/src/main/resources/ui/app/templates/slider_app/summary.hbs b/contrib/views/slider/src/main/resources/ui/app/templates/slider_app/summary.hbs
index fab5ea8..dbf6f62 100644
--- a/contrib/views/slider/src/main/resources/ui/app/templates/slider_app/summary.hbs
+++ b/contrib/views/slider/src/main/resources/ui/app/templates/slider_app/summary.hbs
@@ -15,6 +15,27 @@
* See the License for the specific language governing permissions and
* limitations under the License.
}}
-Summary
-{{model.id}}
\ No newline at end of file
+<div class="container">
+ <div class="row">
+ <div class="col-md-6">
+ {{#bs-panel heading="Summary"}}
+ {{/bs-panel}}
+ </div>
+ <div class="col-md-6">
+ {{#bs-panel heading="Components"}}
+ {{/bs-panel}}
+ </div>
+ </div>
+ {{#if controller.model.showMetrics}}
+ {{#bs-panel heading="Metrics"}}
+ {{#each graphs in view.parentView.graphs}}
+ <div class="row">
+ {{#each graph in graphs}}
+ <div class="col-md-3">{{view graph}}</div>
+ {{/each}}
+ </div>
+ {{/each}}
+ {{/bs-panel}}
+ {{/if}}
+</div>
\ No newline at end of file