* support 1 second resolution Custom Metrics * upgrade to aws-sdk-go v1.10.18 * simplify period calculation * add test * fix period calculation bug