Click or drag to resize

IWsMonitoringGetMonitoringCheckEvents Method

By the method GetMonitoringCheckEvents you can retrieve the list of events about a specific monitoring check
By the method GetMonitoringCheckEvents you can retrieve the list of events about a specific monitoring check

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<MonitoringCheckEventsEntity>> GetMonitoringCheckEvents(
	GetMonitoringCheckEventsEntity getMonitoringCheckEventsEntity
)

Parameters

getMonitoringCheckEventsEntity
Type: Aruba.Cloud.Provisioning.Entities.MonitoringSLAGetMonitoringCheckEventsEntity
Type GetMonitoringCheckEventsEntity: contains all the attributes of an event.Type GetMonitoringCheckEventsEntity: contains all the attributes of an event.

Return Value

Type: WsResultListMonitoringCheckEventsEntity
Examples
By the method GetMonitoringCheckEvents you can retrieve the list of events about a specific monitoring check.
/// WsMonitoring.GetMonitoringCheckEvents Method (c# .NET)
public static string GetMonitoringCheckEvents(WsMonitoringClient client,
   GetMonitoringCheckEventsEntity getMonitoringCheckEventsEntity)
{
    //specify the account login details 
    client.ClientCredentials.UserName.UserName = "ARU-0000";
    client.ClientCredentials.UserName.Password = "0123456789";

    StringBuilder stringBuilder = new StringBuilder();

    try
    {
 // call method GetMonitoringCheckEvents 
 // obtaining a WsResultOfArrayOfMonitoringCheckEventsEntity item
 WsResultOfArrayOfMonitoringCheckEventsEntity result =
     client.GetMonitoringCheckEvents(getMonitoringCheckEventsEntity);

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

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

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

    return stringBuilder.ToString();
}
See Also