API Reference
GET
get_server_monitoring_settings/:serverIdGet Server Monitoring Settings
Get Server Monitoring Settings is a GET request to https://api.sharkcluster.com/get_server_monitoring_settings/:serverId in the Server Management section of the SharkCluster API. Retrieves the current monitoring configuration and notification settings for a specific server. It takes 1 parameter, 1 required (serverId).
Request URL
GET
https://api.sharkcluster.com/get_server_monitoring_settings/:serverIdHow do you call Get Server Monitoring Settings?
- 1Get a token from the login endpoint (POST /login) and send it as Authorization: Bearer <token>. See Login.
- 2Send a GET request to https://api.sharkcluster.com/get_server_monitoring_settings/:serverId, replacing {serverId} in the path with your own value.
Request parameters
| Parameter | Type | Description |
|---|---|---|
serverIdRequired | string | The unique identifier or Instance ID of the server. |
What does Get Server Monitoring Settings return?
A successful call returns a JSON object with the field monitoring_settings. A failed call explains the problem in the body, for example "Server not found".
Request sample
const axios = require('axios');
async function getServerMonitoringSettings(serverId, token) {
try {
const response = await axios.get(`https://api.sharkcluster.com/get_server_monitoring_settings/${serverId}`, {
headers: {
'Authorization': `Bearer ${token}`
}
});
console.log('Monitoring Settings:', response.data.monitoring_settings);
} catch (error) {
console.error('Error:', error.response?.data || error.message);
}
}
// Example usage
getServerMonitoringSettings('server_123', 'your_auth_token_here');
Response
{
"monitoring_settings": {
"Debug": false,
"Alerts": false,
"Manual": false,
"diskIo": false,
"Network": false,
"Database": false,
"cpuUsage": false,
"Profiling": false,
"ecpuUsage": "30 Sec",
"manualMode": false,
"memoryUsage": false,
"logStoragePath": "/var/log/newrelic.log",
"newRelicToggle": false,
"alertRecipients": "[email protected]",
"appResponseTime": "XX MS",
"blackfireToggle": false,
"alertThreshold80": "80%",
"alertThreshold85": "85%",
"profileRetention": "7 Days",
"subscriptionType": "Free",
"blackfireClientId": "****",
"alertThreshold1000": "1000 MS",
"newRelicLicenseKey": "****",
"profilingFrequency": "30 Sec",
"serverNameNewRelic": "demo",
"slowFunctionAlerts": false,
"blackfireClientToken": "****",
"slowFunctionThreshold": "200 MS",
"blackfireSubscriptionType": "Free"
}
}Related Server Management endpoints
- POST
configure-varnishConfigure Varnish - POST
varnish-logsGet Varnish Logs - POST
upload-varnish-vclUpload Varnish VCL - PUT
update_server_monitoring_settings/:serverIdUpdate Server Monitoring Settings - GET
get_server_other_services_config/:serverIdGet Server Other Services Config - POST
install-elasticsearchInstall Elasticsearch
Stuck on an integration?
Raise a ticket from the panel with the endpoint and the response you got back — it reaches an engineer with your server already attached.