Skip to content

Commit

Permalink
feat(dashboards): add support for dataFormat to rawConfiguration
Browse files Browse the repository at this point in the history
…in dashboards
  • Loading branch information
vinay-newrelic authored Sep 25, 2024
1 parent e6ea187 commit a565d4d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pkg/dashboards/dashboards_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,7 @@ type RawConfiguration struct {
Facet *DashboardWidgetFacet `json:"facet,omitempty"`
RefreshRate *DashboardWidgetRefreshRate `json:"refreshRate,omitempty"`
InitialSorting *DashboardWidgetInitialSorting `json:"initialSorting,omitempty"`
DataFormat []*DashboardWidgetDataFormat `json:"dataFormatters,omitempty"`
}

// RawConfigurationPlatformOptions represents the platform widget options
Expand All @@ -337,6 +338,13 @@ type DashboardWidgetInitialSorting struct {
Name string `json:"name,omitempty"`
}

type DashboardWidgetDataFormat struct {
Name string `json:"name,omitempty"`
Type string `json:"type,omitempty"`
Format string `json:"format,omitempty"`
Precision int `json:"precision,omitempty"`
}

type DashboardWidgetYAxisLeft struct {
Max float64 `json:"max,omitempty"`
Min *float64 `json:"min,omitempty"`
Expand Down

0 comments on commit a565d4d

Please sign in to comment.