API Reference
GETget_server_monitoring_settings/:serverId

Get 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

GEThttps://api.sharkcluster.com/get_server_monitoring_settings/:serverId

How do you call Get Server Monitoring Settings?

  1. 1Get a token from the login endpoint (POST /login) and send it as Authorization: Bearer <token>. See Login.
  2. 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

ParameterTypeDescription
serverId
Required
stringThe 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"
    }
}

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.

Contact us