heron/tools/common/src/python/access/heron_api.py
def get_metric_response(self, timerange, data, isMax):
    '''
    :param timerange:
    :param data:
    :param isMax:
    :return:
    '''
    if isMax:
      return dict(
          status="success",
          starttime=timerange[0],
          endtime=timerange[1],
          result=dict(timeline=[dict(data=data)])
      )

    return dict(
        status="success",
        starttime=timerange[0],
        endtime=timerange[1],
        result=dict(timeline=data)
    )
def get_metric_response(self, timerange, data, isMax):
    '''
    :param timerange:
    :param data:
    :param isMax:
    :return:
    '''
    if isMax:
      return dict(
          status="success",
          starttime=timerange[0],
          endtime=timerange[1],
          result=dict(timeline=[dict(data=data)])
      )

    return dict(
        status="success",
        starttime=timerange[0],
        endtime=timerange[1],
        result=dict(timeline=data)
    )
def get_metric_response ( self , timerange , data , isMax ) : if isMax : return dict ( status = "success" , starttime = timerange [ 0 ] , endtime = timerange [ 1 ] , result = dict ( timeline = [ dict ( data = data ) ] ) ) return dict ( status = "success" , starttime = timerange [ 0 ] , endtime = timerange [ 1 ] , result = dict ( timeline = data ) )
:param timerange:
    :param data:
    :param isMax:
    :return:
: param timerange : : param data : : param isMax : : return :