Click or drag to resize

IWsMonitoringSetAddMonitoringCheckContacts Method

By the method SetAddMonitoringCheckContacts you can add a contact to the check
By the method SetAddMonitoringCheckContacts you can add a contact to the 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 SetAddMonitoringCheckContacts(
	AddMonitoringCheckContactsEntity addMonitoringCheckContacts
)

Parameters

addMonitoringCheckContacts
Type: Aruba.Cloud.Provisioning.Entities.MonitoringSLAAddMonitoringCheckContactsEntity
Type AddMonitoringCheckContactsEntity: contains the parameters to define the contact (SMS or email) to be added to a control.Type AddMonitoringCheckContactsEntity: contains the parameters to define the contact (SMS or email) to be added to a control.

Return Value

Type: WsResult
Examples
By the method SetAddMonitoringCheckContacts you can add a contact to the check.
/// WsMonitoring.SetAddMonitoringCheckContacts Method (c# .NET)
public static string SetAddMonitoringCheckContacts(WsMonitoringClient client,
    AddMonitoringCheckContactsEntity addMonitoringCheckContacts)
{
    //specify the account login details 
    client.ClientCredentials.UserName.UserName = "ARU-0000";
    client.ClientCredentials.UserName.Password = "0123456789";

    StringBuilder stringBuilder = new StringBuilder();

    try
    {
 // call method SetAddMonitoringCheckContacts 
 // obtaining a WsResult item
 WsResult result = client.SetAddMonitoringCheckContacts
            (addMonitoringCheckContacts);

 //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