Skip to content

Commit

Permalink
Clean up grammar in a few comments.
Browse files Browse the repository at this point in the history
Signed-off-by: Brendan Winter <bwinter@vmware.com>
  • Loading branch information
bwinter committed Aug 1, 2023
1 parent 84603c1 commit 5b681e8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions dashboard.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,10 @@ type Chart struct {
// Base (unknown usage, defaults to 1)
Base int `json:"base"`

// Include obsolete metrics older than 4 weeks ago into current time window
// Include obsolete metrics older than 4 weeks ago into the current time window
IncludeObsoleteMetrics bool `json:"includeObsoleteMetrics"`

// Interpolate points that existed in past/future into current time window
// Interpolate points that existed in the past /future into the current time window
InterpolatePoints bool `json:"interpolatePoints"`

// Don't include default events on the chart
Expand All @@ -140,13 +140,13 @@ type Chart struct {
// Sources is an Array of Source
Sources []Source `json:"sources"`

// Units are the units to use for the y axis
// Units are the units to use for the y-axis
Units string `json:"units,omitempty"`

// ChartSettings are custom settings for the chart
ChartSettings ChartSetting `json:"chartSettings"`

// ChartAttributes is arbitrary JSON used to configure chart attributes
// ChartAttributes is arbitrary JSON used to configure a chart's attributes
ChartAttributes json.RawMessage `json:"chartAttributes,omitempty"`
}

Expand Down Expand Up @@ -246,7 +246,7 @@ type Dashboards struct {

const baseDashboardPath = "/api/v2/dashboard"

// UnmarshalJSON is a custom JSON unmarshaller for an Dashboard, used in order to
// UnmarshalJSON is a custom JSON unmarshaller for a Dashboard, used to
// populate the Tags field in a more intuitive fashion
func (d *Dashboard) UnmarshalJSON(b []byte) error {
type tags struct {
Expand Down

0 comments on commit 5b681e8

Please sign in to comment.