I'm trying to query LogInsight metrices to pull data for a certain interval of time in the past using Python script, how can I do the same ?