feat(viewer): add severity filtering for event logs
This commit is contained in:
@@ -13,13 +13,14 @@ type pageData struct {
|
||||
}
|
||||
|
||||
type sectionView struct {
|
||||
ID string
|
||||
Title string
|
||||
Kind string
|
||||
Rows []fieldRow
|
||||
Columns []string
|
||||
Items []tableRow
|
||||
Groups []tableGroupView
|
||||
ID string
|
||||
Title string
|
||||
Kind string
|
||||
Rows []fieldRow
|
||||
Columns []string
|
||||
Items []tableRow
|
||||
Groups []tableGroupView
|
||||
SeverityOptions []severityOption
|
||||
}
|
||||
|
||||
type fieldRow struct {
|
||||
@@ -29,12 +30,19 @@ type fieldRow struct {
|
||||
|
||||
type tableRow struct {
|
||||
Status string
|
||||
Severity string
|
||||
Cells map[string]string
|
||||
RawCells map[string]any
|
||||
}
|
||||
|
||||
type tableGroupView struct {
|
||||
Title string
|
||||
Columns []string
|
||||
Items []tableRow
|
||||
Title string
|
||||
Columns []string
|
||||
Items []tableRow
|
||||
SeverityOptions []severityOption
|
||||
}
|
||||
|
||||
type severityOption struct {
|
||||
Value string
|
||||
Label string
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user