See https://github.com/elastic/elasticsearch/pull/51364 for more info on how to do this. This API should return basic statistics and settings that effect those statistics. I think the `GetDataFrameAnalyticsStatsAction` is a good place to start.