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 need authentication using the following parameters:
Description:Retrieves all enabled monitors' values. Endpoint:_object=MONyogAPI&_action=GetAllMonitorsValues&_user=[sqldm user name]&_password=[sqldm user password]&_server=[server_name]&_type=[current/delta/history]&_starttime=[timestamp]&_endtime=[timestamp] Request Parameters:
Example Call:
|
Description:Fetches the value of a specific monitor. Endpoint:_object=MONyogAPI&_action=GetMonitorValue&_user=[sqldm user name]&_password=[sqldm user password]&_server=[server_name]&_group_id=[group_id]&_counter_id=[counter_id]&_type=[current/delta/history]&_starttime=[timestamp]&_endtime=[timestamp] Request Parameters:
Example Call:
|
Description:Retrieves trend values of a specific monitor over time. Endpoint:_object=MONyogAPI&_action=GetMonitorTrendValues&_user=[sqldm user name]&_password=[sqldm user password]&_server=[server_name]&_group_id=[group_id]&_counter_id=[counter_id]&_starttime=[timestamp]&_endtime=[timestamp] Request Parameters:
Example Call:
|
Description:Retrieves all chart values of a specific dashboard. Endpoint:_object=MONyogAPI&_action=GetAllChartsValues&_user=[sqldm user name]&_password=[sqldm user password]&_server=[server_name]&_dashboard=[dashboard_name]&_starttime=[timestamp]&_endtime=[timestamp] Request Parameters:
Example Call:
|
Description:Retrieves values of a specific chart. Endpoint:_object=MONyogAPI&_action=GetChartValues&_user=[sqldm user name]&_password=[sqldm user password]&_server=[server_name]&_dashboard=[dashboard_name]&_group_id=[group_id]&_counter_id=[counter_id]&_starttime=[timestamp]&_endtime=[timestamp] Request Parameters:
Example Call:
|
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.