,
				type: 'POST',
				dataType: "json",
				contentType: 'application/json;charset=UTF-8',
				data: JSON.stringify({'replicaName': replicaName, 'metricsType': metricsType, 'startTime': startTime, 'endTime': endTime}),
				success: function(res){
					resolve(res);
				},
				error: function(data){
					reject(data);
				}
			});
		});
		
		return promise;
	}
	
	function doDraw(records, result) {
	
		var firstTypeName = '';
		var unit = '';
		var secondeTypeNames = [];
		var times;
		var seriesData = [];
