The SQL DM for MySQL API allows users to retrieve monitor and chart values programmatically. The API supports fetching current, delta, and historical data.
http://127.0.0.1:5555/
All API requests require authentication using the following parameters:
_user=admin_password=Test@123Description:Retrieves all enabled monitors' values. Endpoint:
Request Parameters:
Example Call:http://127.0.0.1:5555/?_object=MONyogAPI&_action=GetAllMonitorsValues&_user=admin&_password=Test@123&_server=testServer1&_type=current |
Description:Fetches the value of a specific monitor. Endpoint:
Request Parameters:
Example Call:http://127.0.0.1:5555/?_object=MONyogAPI&_action=GetMonitorValue&_user=admin&_password=Test@123&_server=testServer1&_type=current&_group_id=5&_counter_id=1 |
Description:Retrieves trend values of a specific monitor over time. Endpoint:
Request Parameters:
Example Call:http://127.0.0.1:5555/?_object=MONyogAPI&_action=GetMonitorTrendValues&_user=admin&_password=Test@123&_server=test11&_type=current&_starttime=1737484200&_endtime=1737533940&_group_id=5&_counter_id=2 |
Description:Retrieves all chart values of a specific dashboard. Endpoint:
Request Parameters:
Example Call:http://127.0.0.1:5555/?_object=MONyogAPI&_action=GetAllChartsValues&_user=admin&_password=Test@123&_server=server1&_dashboard=Performance Metrics |
Description:Retrieves values of a specific chart. Endpoint:
Request Parameters:
Example Call:http://127.0.0.1:5555/?_object=MONyogAPI&_action=GetChartValues&_user=admin&_password=Test@123&_server=server1&_dashboard=Performance Metrics&_group_id=23&_counter_id=2 |
All API responses return JSON data.
{ "STATUS": "SUCCESS", "RESPONSE": [{ "GroupName": "xxxx", "CounterName": "xxxx", "Value": "Yes", "AlertStatus": "1", "AlertCondition": "None" }]}
{ "STATUS": "FAILURE", "RESPONSE": "Error Message"}
_type is required for monitor queries._starttime and _endtime are needed for historical data and getting trend values.group_id and counter_id are found on the Monitors page.
group_id and counter_id should be displayed on mouse hover in the UI.