Open for Voting

Support CustomPollerAssignment on Orion SDK (SWIS)

I am coding an DLL file, to use at integration applicatioons via C#. I can add poller on node but not assign custompoller. Maybe, it should be useful the verb to do this. There are sample codes add poller and custompoller. (Add poller is correctly running.)

Add Poller:

                        string uri_Details = swis.Create("Orion.Pollers", new PropertyBag

                                                      {

                                                          {"NetObject", pbPollers.NetObject},

                                                          {"NetObjectType", pbPollers.NetObjectType},

                                                          {"NetObjectID", pbPollers.NetObjectID},

                                                          {"PollerType", _pType}

                                                      });

Add CustomPoller:

                string uri_Details = swis.Create("Orion.NPM.CustomPollerAssignment", new PropertyBag

                                                {

                                                    {"CustomPollerAssignmentID", Guid.NewGuid()},

                                                    {"AssignmentName", _customPollerUniqueName + " on " +_nodeName },

                                                    {"CustomPollerID", Guid.Parse(_CPID)},

                                                    {"NodeID", _nodeID},

                                                    {"InterfaceID", "0"}

                                                });