Create Alert Object class to inherit from
Closed this issue · 2 comments
jpavlav commented
Putting this card into place as a TODO. We realize that there are inherent similarities between the an Alert object and the Matcher objects that are required by the /silences route. In light of this it might make sense to extract from the current Alert class anything shared between the two and then create a new Alert and Silence class that will inherit these shared attributes/methods.
Would likely be a good idea to separate these into different files once implemented.
jpavlav commented
Sure can :D