Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add required comments to heartbeat monitors #8316

Merged
merged 1 commit into from
Sep 19, 2018

Conversation

andrewvc
Copy link
Contributor

Some of these functions needed comments to keep inline with go style guides. The change that introduced these was in #8023 .

I also simplified one error by using errors.New instead of a custom error struct.

return fmt.Sprintf("Monitor not loaded, plugin is disabled")
}
// PluginDisabledError is returned when the monitor plugin is marked as disabled.
var PluginDisabledError = errors.New("Monitor not loaded, plugin is disabled")

Choose a reason for hiding this comment

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

error var PluginDisabledError should have name of the form ErrFoo

@@ -228,6 +229,8 @@ func (m *Monitor) Start() {
}
}

// Start stops the Monitor's execution in its configured scheduler.

Choose a reason for hiding this comment

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

comment on exported method Monitor.Stop should be of the form "Stop ..."

Some of these functions needed comments to keep inline with go style guides.

I also simplified one error by using errors.New instead of a custom error struct.
@andrewvc andrewvc merged commit 28977fb into elastic:master Sep 19, 2018
andrewvc added a commit to andrewvc/beats that referenced this pull request Sep 19, 2018
Some of these functions needed comments to keep inline with go style guides.

I also simplified one error by using errors.New instead of a custom error struct.

(cherry picked from commit 28977fb)
andrewvc added a commit that referenced this pull request Sep 27, 2018
Some of these functions needed comments to keep inline with go style guides.

I also simplified one error by using errors.New instead of a custom error struct.

(cherry picked from commit 28977fb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants