modeling the api close to rrdtool cli