public static void Invoke(string serverName, string monitorName, string targetResource, bool?isRepairing, int timeoutInMSec = 30000)
        {
            RpcSetServerMonitor.Request attachedRequest = new RpcSetServerMonitor.Request(monitorName, targetResource, isRepairing);
            RpcGenericRequestInfo       requestInfo     = ActiveMonitoringGenericRpcHelper.PrepareClientRequest(attachedRequest, ActiveMonitoringGenericRpcCommandId.SetServerMonitor, 1, 0);

            ActiveMonitoringGenericRpcHelper.RunRpcAndGetReply <RpcSetServerMonitor.Reply>(requestInfo, serverName, timeoutInMSec);
        }
Example #2
0
        public static RpcInvokeMonitoringProbe.Reply Invoke(string serverName, string identity, string propertyBagXml, string extensionAttributes, int timeoutInMSec = 300000)
        {
            RpcInvokeNowCommon.Request attachedRequest = new RpcInvokeNowCommon.Request(identity, propertyBagXml, extensionAttributes);
            RpcGenericRequestInfo      requestInfo     = ActiveMonitoringGenericRpcHelper.PrepareClientRequest(attachedRequest, ActiveMonitoringGenericRpcCommandId.InvokeMonitoringProbe, 1, 0);

            return(ActiveMonitoringGenericRpcHelper.RunRpcAndGetReply <RpcInvokeMonitoringProbe.Reply>(requestInfo, serverName, timeoutInMSec));
        }
        public static List <PropertyInformation> Invoke(string serverName, string monitorIdentity, int timeoutInMSec = 900000)
        {
            RpcGetMonitoringItemHelp.Request attachedRequest = new RpcGetMonitoringItemHelp.Request(monitorIdentity);
            RpcGenericRequestInfo            requestInfo     = ActiveMonitoringGenericRpcHelper.PrepareClientRequest(attachedRequest, ActiveMonitoringGenericRpcCommandId.GetMonitoringItemHelp, 1, 0);

            RpcGetMonitoringItemHelp.Reply reply = ActiveMonitoringGenericRpcHelper.RunRpcAndGetReply <RpcGetMonitoringItemHelp.Reply>(requestInfo, serverName, timeoutInMSec);
            return(reply.HelpEntries);
        }
Example #4
0
        public static List <RpcGetMonitoringItemIdentity.RpcMonitorItemIdentity> Invoke(string serverName, string healthSetName, int timeoutInMSec = 900000)
        {
            RpcGetMonitoringItemIdentity.Request attachedRequest = new RpcGetMonitoringItemIdentity.Request(healthSetName);
            RpcGenericRequestInfo requestInfo = ActiveMonitoringGenericRpcHelper.PrepareClientRequest(attachedRequest, ActiveMonitoringGenericRpcCommandId.GetMonitoringItemIdentity, 1, 0);

            RpcGetMonitoringItemIdentity.Reply reply = ActiveMonitoringGenericRpcHelper.RunRpcAndGetReply <RpcGetMonitoringItemIdentity.Reply>(requestInfo, serverName, timeoutInMSec);
            return(reply.MonitorIdentities);
        }