alerting icon indicating copy to clipboard operation
alerting copied to clipboard

[FEATURE] Add rest api to get list of trigger types - TRIGGER_TYPE

Open rblcoder opened this issue 1 year ago • 2 comments

Is your feature request related to a problem? Currently we need to hard-code list of trigger types in code and need to refer back to this repository from time to time to see if any additional types are added

What solution would you like? Need to get a list of trigger types returned from a rest api

What alternatives have you considered? Hard-coding the trigger types in code

Do you have any additional context? Trigger types can be found here

rblcoder avatar Feb 09 '24 09:02 rblcoder

@rblcoder Currently each trigger type is associated to specifc monitor type.

We encourage you to raise a PR to add support for such an API if you have a use case to list trigger types but i personally see more value in fetching the monitor types as that will help determine the trigger type

eirsep avatar Apr 05 '24 21:04 eirsep

@eirsep Would it be better to derive the trigger types from a list of monitor types? Is that rest API endpoint already available?

rblcoder avatar Apr 09 '24 07:04 rblcoder