add interval to metric structure
pass metric type as string
change order of metrics parameters
initialize value first