Quantcast
Channel: THWACK: Popular Discussions - Orion SDK
Viewing all articles
Browse latest Browse all 3719

API custom poller assignment

$
0
0

Does the API allow for an existing custom poller to be assigned to a node?

 

I am using SWIS via C# and have a method that does the addition of generic pollers:

 

private String AddPoller(Int32 InterfaceID, String Type, String Poller)        {            return this.swis.Create("Orion.Pollers", new PropertyBag                                                      {                                                          {"NetObject", Type + ":" + InterfaceID.ToString()},                                                          {"NetObjectType", Type},                                                          {"NetObjectID", InterfaceID.ToString()},                                                          {"PollerType", Poller}                                                      });        }

 

And I use it like:

string pollassignedID = this.AddPoller(nodeid, "N", "N.Details.SNMP.Generic")

 

Maybe there is a .Create method that takes "Orion.CustomerPollers"  with a different set expected properties passed?

 

Thanks for the help!


Viewing all articles
Browse latest Browse all 3719

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>