3.07 Activate Monitoring Check

By the method SetEnqueueActivateMonitoringCheck you can disable a Monitoring Check.

Parameters
monitoringCheckID
Type: Integer
monitoring check id.
/// WsMonitoring.SetEnqueueActivateMonitoringCheck Method (c# .NET)
public static string SetEnqueueActivateMonitoringCheck(WsMonitoringClient client,
   int monitoringCheckID)
{
    //specify the account login details 
    client.ClientCredentials.UserName.UserName = "ARU-0000";
    client.ClientCredentials.UserName.Password = "0123456789";

    StringBuilder stringBuilder = new StringBuilder();

    try
    {
 // create the request object
 ActivateMonitoringCheckEntity request = new ActivateMonitoringCheckEntity();
 request.MonitoringCheckID = monitoringCheckID;

 // call method SetEnqueueActivateMonitoringCheck 
 // obtaining a WsResult item
 WsResult result = client.SetEnqueueActivateMonitoringCheck(request);

 //if the call is Success print value
 if (result.Success)
 {
     // get Value returned from server
     stringBuilder.Append(" Operation successfully. Result Code : ");
     stringBuilder.Append(result.ResultCode);
 }
 else
 {
     throw new ApplicationException(result.ResultMessage);
 }
    }
    catch (Exception ex)
    {
 // re-run the error
 throw new ApplicationException(ex.Message);
    }

    return stringBuilder.ToString();
}
/// WsMonitoring.SetEnqueueActivateMonitoringCheck Method (JAVA)
public static String SetEnqueueActivateMonitoringCheck(
    IWsMonitoring client, 
    Integer monitoringCheckID) 
{
    //specify the account login details 
    ((BindingProvider) client).getRequestContext()
 .put(BindingProvider.USERNAME_PROPERTY, "ARU-0000");
    ((BindingProvider) client).getRequestContext()
 .put(BindingProvider.PASSWORD_PROPERTY, "0123456789");

    StringBuilder stringBuilder = new StringBuilder();

    try 
    {
        ActivateMonitoringCheckEntity activateMonitoringCheckEntity = 
     new ActivateMonitoringCheckEntity();
        activateMonitoringCheckEntity.setMonitoringCheckID(monitoringCheckID);
    
        WsResult result = client.setEnqueueActivateMonitoringCheck(activateMonitoringCheckEntity);

        if (!result.isSuccess()) 
        {
     throw new Exception(result.getResultMessage());
        }
    } 
    catch (Exception ex) 
    {
        System.out.println(ex);
    }

return stringBuilder.toString();
}
Version
API: v2.8 URL:https://api.services.cloud.it/wsMonitoring/v2.8/wsMonitoring.svc?wsdl

See also