Click or drag to resize

IWsMonitoringGetMonitoringCheckType Method

By the method GetMonitoringCheckTypes you can retrieve the list of check types available
By the method GetMonitoringCheckTypes you can retrieve the list of check types available

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<List<MonitoringCheckTypeEntity>> GetMonitoringCheckType()

Return Value

Type: WsResultListMonitoringCheckTypeEntity
Examples
By the method GetMonitoringCheckTypes you can retrieve the list of check types available.
/// WsMonitoring.GetMonitoringCheckTypes Method (c# .NET)
public static string GetMonitoringCheckTypes(WsMonitoringClient client)
{
    //specify the account login details 
    client.ClientCredentials.UserName.UserName = "ARU-0000";
    client.ClientCredentials.UserName.Password = "0123456789";

    StringBuilder stringBuilder = new StringBuilder();

    try
    {
 // call method GetMonitoringCheckType 
 // obtaining a WsResultOfArrayOfMonitoringCheckTypeEntity item
 WsResultOfArrayOfMonitoringCheckTypeEntity result =
     client.GetMonitoringCheckType();

 // if the call is Success print returned values
 if (result.Success)
 {
     stringBuilder.Append("Operation ends successfully\n");

     // get Value returned from server
     MonitoringCheckTypeEntity[] items = result.Value;

     // for each item print the information
     foreach (MonitoringCheckTypeEntity item in items)
     {
  stringBuilder.Append("\nMonitoringCheckTypeID: ");
  stringBuilder.Append(item.MonitoringCheckTypeID);
  stringBuilder.Append("\nDescription: ");
  stringBuilder.Append(item.Description);
     }
 }
 else
 {
     throw new ApplicationException(result.ResultMessage);
 }
    }
    catch (Exception ex)
    {
 // re-run the error
 throw new ApplicationException(ex.Message);
    }

    return stringBuilder.ToString();
}
Here's an example of response:
GetMonitoringCheckTypeResponse: {
   GetMonitoringCheckTypeResult: {
      ExceptionInfo: [System.String],
      ResultCode: 0,
      ResultMessage: [System.String],
      Success: true,
      Value: {
         MonitoringCheckTypeEntity: {
            Description: DNS,
            MonitoringCheckTypeID: 2,
            },
         MonitoringCheckTypeEntity: {
            Description: FTP,
            MonitoringCheckTypeID: 3,
            },
         MonitoringCheckTypeEntity: {
            Description: HTTP,
            MonitoringCheckTypeID: 4,
            },
         MonitoringCheckTypeEntity: {
            Description: HTTPS,
            MonitoringCheckTypeID: 5,
            },
         MonitoringCheckTypeEntity: {
            Description: IMAP,
            MonitoringCheckTypeID: 6,
            },
         MonitoringCheckTypeEntity: {
            Description: MySQL,
            MonitoringCheckTypeID: 7,
            },
         MonitoringCheckTypeEntity: {
            Description: Microsoft SQL Server,
            MonitoringCheckTypeID: 8,
            },
         MonitoringCheckTypeEntity: {
            Description: Oracle,
            MonitoringCheckTypeID: 9,
            },
         MonitoringCheckTypeEntity: {
            Description: PING,
            MonitoringCheckTypeID: 10,
            },
         MonitoringCheckTypeEntity: {
            Description: POP3,
            MonitoringCheckTypeID: 11,
            },
         MonitoringCheckTypeEntity: {
            Description: PostgreSQL,
            MonitoringCheckTypeID: 12,
            },
         MonitoringCheckTypeEntity: {
            Description: SMTP,
            MonitoringCheckTypeID: 13,
            },
         MonitoringCheckTypeEntity: {
            Description: SSH,
            MonitoringCheckTypeID: 14,
            },
         MonitoringCheckTypeEntity: {
            Description: TCP,
            MonitoringCheckTypeID: 15,
            },
         MonitoringCheckTypeEntity: {
            Description: Telnet,
            MonitoringCheckTypeID: 16,
            },
         MonitoringCheckTypeEntity: {
            Description: Certificate SSL,
            MonitoringCheckTypeID: 17,
            },
            },
            },
            },
            },
            }
See Also