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

Adds a PUT-based API for TTL checks and retains output on timeouts. #1785

Merged
merged 3 commits into from
Mar 3, 2016

Conversation

slackpad
Copy link
Contributor

@slackpad slackpad commented Mar 3, 2016

This adds a new PUT-based /v1/agent/check/update/ API that's easier to pass large output to. While we were in here, we also fixed #1784 so that when the TTL expires, operators can see the last output before the check expired.

return fmt.Sprintf("%s (no output was available before timeout)", prefix)
}

return fmt.Sprintf("%s (last output before timeout follows)\n\n%s", prefix, c.lastOutput)
Copy link
Contributor

Choose a reason for hiding this comment

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

If we can try to conform to one newline == one log entry, that would be ideal.

@sean-
Copy link
Contributor

sean- commented Mar 3, 2016

LGTM

slackpad added a commit that referenced this pull request Mar 3, 2016
Adds a PUT-based API for TTL checks and retains output on timeouts.
@slackpad slackpad merged commit ad13b34 into master Mar 3, 2016
@slackpad slackpad deleted the f-check-put-api branch March 3, 2016 04:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Retain last output when a TTL check expires
2 participants