I am trying to make a call to getMetricData api for aws connect using nodejs sdk from a lambda function.Docs
I am having issue with StartTime and EndTime parameters. No matter what values I pass, I always get some error or the other.
EndTime: new Date().getTime()
StartTime: EndTime-24
//returns starttime and endtime must be separated by 24 hrs.
I also get an error saying - time must be a multiple of 5
Has anyone got any success in making this work? How can I pass StartTime and EndTime dynamically for today's date in epoch and also make sure that they are a multiple of 5?