Skip to content

Commit

Permalink
add alert list label filter option
Browse files Browse the repository at this point in the history
  • Loading branch information
anson committed Oct 8, 2024
1 parent 5c3b17e commit dd4ae30
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion grafanalib/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -2746,6 +2746,7 @@ class AlertList(object):
title = attr.ib(default="")
transparent = attr.ib(default=False, validator=instance_of(bool))
alertName = attr.ib(default="", validator=instance_of(str))
alertInstanceLabelFilter = attr.ib(default="", validator=instance_of(str))

def _map_panels(self, f):
return f(self)
Expand All @@ -2768,7 +2769,8 @@ def to_json_data(self):
'transparent': self.transparent,
'type': ALERTLIST_TYPE,
"options": {
"alertName": self.alertName
"alertName": self.alertName,
"alertInstanceLabelFilter": self.alertInstanceLabelFilter
},
}

Expand Down

0 comments on commit dd4ae30

Please sign in to comment.