Click or drag to resize

IWsMonitoringSetEnqueueCreateMonitoringCheck Method

By the method SetEnqueueCreateMonitoringCheck you can create a check for a specify monitoring service
By the method SetEnqueueCreateMonitoringCheck you can create a check for a specify monitoring service

Namespace:  Aruba.Cloud.WsMonitoring
Assembly:  Aruba.Cloud.WsMonitoring (in Aruba.Cloud.WsMonitoring.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
[OperationContractAttribute]
WsResult<int> SetEnqueueCreateMonitoringCheck(
	NewMonitoringCheckEntity newMonitoringCheckEntity
)

Parameters

newMonitoringCheckEntity
Type: Aruba.Cloud.Provisioning.Entities.MonitoringSLANewMonitoringCheckEntity
Type NewMonitoringCheckEntity: new parameters to be set.Type NewMonitoringCheckEntity: new parameters to be set.

Return Value

Type: WsResultInt32
Examples
By the method SetEnqueueCreateMonitoringCheck you can create a check for a specify monitoring service.
/// WsMonitoring.SetEnqueueCreateMonitoringCheck Method (c# .NET)
public static string SetEnqueueCreateMonitoringCheck(WsMonitoringClient client,
   NewMonitoringCheckEntity newMonitoringCheckEntity)
{
    //specify the account login details 
    client.ClientCredentials.UserName.UserName = "ARU-0000";
    client.ClientCredentials.UserName.Password = "0123456789";

    StringBuilder stringBuilder = new StringBuilder();

    try
    {
  // call method SetEnqueueCreateMonitoringCheck 
 // obtaining a WsResultOfint item
 WsResultOfint result = 
            client.SetEnqueueCreateMonitoringCheck(newMonitoringCheckEntity);

 //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();
}
See Also