Skip to content
This repository has been archived by the owner on Aug 24, 2022. It is now read-only.

PMM-9632 Settings view usage. #374

Open
wants to merge 17 commits into
base: main
Choose a base branch
from
10 changes: 8 additions & 2 deletions agents/postgres/pgstatmonitor/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,14 @@ type pgStatMonitorSettings struct {
//
//reform:pg_stat_monitor_settings
type pgStatMonitorSettingsTextValue struct {
Name string `reform:"name"`
Value string `reform:"value"`
Name string `reform:"name"`
Value string `reform:"value"`
DefaultValue string `reform:"default_value"`
Description string `reform:"description"`
Minimum *int64 `reform:"minimum"`
Maximum *int64 `reform:"maximum"`
Options *string `reform:"options"`
Restart string `reform:"restart"`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's keep only fields that we use in case PGSM team changes structure later we will have more PMM clients supported latest PGSM

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

}

// pgStatMonitorExtended contains pgStatMonitor data and extends it with database, username and tables data.
Expand Down
32 changes: 31 additions & 1 deletion agents/postgres/pgstatmonitor/models_reform.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading