Ad Widget

Collapse

API: best way to get a set of Triggers

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • hoohah42
    Junior Member
    • Jun 2011
    • 1

    #1

    API: best way to get a set of Triggers

    For a given set of hosts, I need to enable/disable a set of triggers for that host a part of a deploy/release process. My current approach is to search for the particular triggers based on a uniform beginning to the description (e.g., "Monitor service"). I don't really like this solution as it is brittle and error prone (someone fat-fingers a new Triggers description, or collides with the pattern).

    So is there a better way to "group" a set of triggers so that I can get to the ones I need without having to rely on a common description template? It seems that there needs to be a way to group templates together for retrieval.

    TIA for any help,

    Todd Edwin King
Working...