Skip to content

Commit

Permalink
fix drops config (#514)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpinsonneau authored Dec 11, 2023
1 parent 1821ca0 commit b02771e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 10 deletions.
17 changes: 9 additions & 8 deletions controllers/consoleplugin/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,15 @@ type ColumnConfig struct {
ID string `yaml:"id" json:"id"`
Name string `yaml:"name" json:"name"`

Group string `yaml:"group,omitempty" json:"group,omitempty"`
Field string `yaml:"field,omitempty" json:"field,omitempty"`
Calculated string `yaml:"calculated,omitempty" json:"calculated,omitempty"`
Tooltip string `yaml:"tooltip,omitempty" json:"tooltip,omitempty"`
DocURL string `yaml:"docURL,omitempty" json:"docURL,omitempty"`
Filter string `yaml:"filter,omitempty" json:"filter,omitempty"`
Default bool `yaml:"default,omitempty" json:"default,omitempty"`
Width int `yaml:"width,omitempty" json:"width,omitempty"`
Group string `yaml:"group,omitempty" json:"group,omitempty"`
Field string `yaml:"field,omitempty" json:"field,omitempty"`
Fields []string `yaml:"fields,omitempty" json:"fields,omitempty"`
Calculated string `yaml:"calculated,omitempty" json:"calculated,omitempty"`
Tooltip string `yaml:"tooltip,omitempty" json:"tooltip,omitempty"`
DocURL string `yaml:"docURL,omitempty" json:"docURL,omitempty"`
Filter string `yaml:"filter,omitempty" json:"filter,omitempty"`
Default bool `yaml:"default,omitempty" json:"default,omitempty"`
Width int `yaml:"width,omitempty" json:"width,omitempty"`
}

type FilterConfig struct {
Expand Down
8 changes: 6 additions & 2 deletions controllers/consoleplugin/config/static-frontend-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -367,13 +367,17 @@ columns:
- id: Bytes
name: Bytes
tooltip: The total aggregated number of bytes.
field: Bytes
fields:
- Bytes
- PktDropBytes
default: true
width: 5
- id: Packets
name: Packets
tooltip: The total aggregated number of packets.
field: Packets
fields:
- Packets
- PktDropPackets
filter: pkt_drop_cause
default: true
width: 5
Expand Down

0 comments on commit b02771e

Please sign in to comment.