def get_baseline_value(baseline_type, obj, ts = Time.now.ceil)
      unless Octo::Counter.constants.include?baseline_type
        raise ArgumentError, 'No such baseline defined'
      end

      args = {
          ts: ts,
          type: Octo::Counter.const_get(baseline_type),
          uid: obj.unique_id,
          enterprise_id: obj.enterprise.id
      }
      bl = get_cached(args)
      if bl
        bl.val
      else
        0.01
      end
    end
def get_baseline_value(baseline_type, obj, ts = Time.now.ceil)
      unless Octo::Counter.constants.include?baseline_type
        raise ArgumentError, 'No such baseline defined'
      end

      args = {
          ts: ts,
          type: Octo::Counter.const_get(baseline_type),
          uid: obj.unique_id,
          enterprise_id: obj.enterprise.id
      }
      bl = get_cached(args)
      if bl
        bl.val
      else
        0.01
      end
    end
Finds baseline value of an object
 @param [Fixnum] baseline_type One of the valid Baseline Types defined
 @param [Object] obj The object for whom baseline value is to be found
 @param [Time] ts The timestamp at which baseline is to be found