Customer Self-Service Portal

SQL Log File size

Hi, SQL Log file size can be queried using API? If yes, is there an example.

From this link: www.site24x7.com/help/server-metrics/sql-server-monitor.html

It has this details, can query those logs via API?

Log File Size (GB) The cumulative size of all the log files in the database
Log File Used Size (GB) The cumulative used size of all the log files in the database

Thanks for any ideas and help.