Command line query of metrics

Howdy - I’m looking for a way to data mine information from gitlab to support our project management metric requirements.

Specifically, I’d like to be able to query the number of comments on merge requests over a given time period.

I see that there is the analytics report for Code Reviews that shows that data for open merge requests, and then there is the Merge Requests analytics report that will show all merge requests over a time period, but that report doesn’t have the issue count.

Ideally I’d like to be able to write scripts to automate the collection of these metrics.