Skip to content

Commit

Permalink
Fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
jsoriano committed Jul 15, 2021
1 parent c7ccec5 commit 7612366
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions metricbeat/module/vsphere/datastore/datastore.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@ func init() {
)
}

// MetricSet type defines all fields of the MetricSet
// MetricSet type defines all fields of the MetricSet.
type MetricSet struct {
*vsphere.MetricSet
}

// NewMetricSet create a new instance of the MetricSet
// New creates a new instance of the MetricSet.
func New(base mb.BaseMetricSet) (mb.MetricSet, error) {
ms, err := vsphere.NewMetricSet(base)
if err != nil {
Expand Down
4 changes: 2 additions & 2 deletions metricbeat/module/vsphere/host/host.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,12 @@ func init() {
)
}

// MetricSet type defines all fields of the MetricSet
// MetricSet type defines all fields of the MetricSet.
type MetricSet struct {
*vsphere.MetricSet
}

// NewMetricSet create a new instance of the MetricSet
// New creates a new instance of the MetricSet.
func New(base mb.BaseMetricSet) (mb.MetricSet, error) {
ms, err := vsphere.NewMetricSet(base)
if err != nil {
Expand Down
4 changes: 2 additions & 2 deletions metricbeat/module/vsphere/metricset.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ var HostParser = parse.URLHostParserBuilder{
DefaultPath: "/sdk",
}.Build()

// MetricSet type defines all fields of the MetricSet
// MetricSet type defines all fields of the MetricSet.
type MetricSet struct {
mb.BaseMetricSet
Insecure bool
HostURL *url.URL
}

// NewMetricSet create a new instance of the MetricSet
// NewMetricSet creates a new instance of the MetricSet.
func NewMetricSet(base mb.BaseMetricSet) (*MetricSet, error) {
config := struct {
Insecure bool `config:"insecure"`
Expand Down
4 changes: 2 additions & 2 deletions metricbeat/module/vsphere/virtualmachine/virtualmachine.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@ func init() {
)
}

// MetricSet type defines all fields of the MetricSet
// MetricSet type defines all fields of the MetricSet.
type MetricSet struct {
*vsphere.MetricSet
GetCustomFields bool
}

// NewMetricSet create a new instance of the MetricSet
// New creates a new instance of the MetricSet.
func New(base mb.BaseMetricSet) (mb.MetricSet, error) {
ms, err := vsphere.NewMetricSet(base)
if err != nil {
Expand Down

0 comments on commit 7612366

Please sign in to comment.