Before writing your generic collector, you should do the following:
From the IT Service Vision menu select:
OnlineHelp -> Documentation Contents -> Usage -> Macro Documentation