Add support for specifying statistics period.

Allow the period to be be specified as an addition parameter
when retrieving statistics.

Change-Id: Ied3add404fb8b20c46a4de00f07273a6d6c4ffce