Skip to content

[py] Support yet another AgentCheck.__init__ pattern#298

Merged
masci merged 1 commit intomasterfrom
olivielpeau/support-moar-check-init-patterns
Jun 15, 2017
Merged

[py] Support yet another AgentCheck.__init__ pattern#298
masci merged 1 commit intomasterfrom
olivielpeau/support-moar-check-init-patterns

Conversation

@olivielpeau
Copy link
Copy Markdown
Member

What does this PR do?

Supports yet another AgentCheck.__init__ pattern, this time when instances is the only argument passed in kwargs.

Motivation

This pattern is quite common in the existing checks (since it's the
signature of the agent5's AgentCheck.__init__), so it makes sense
to support it.

Additional Notes

Added a test case, and assertions in the python test code.

This time when `instances` is the only argument passed in `kwargs`.

This pattern is quite common in the existing checks (since it's the
signature of the agent5's `AgentCheck.__init__`), so it makes sense
to support it.

Added a test case, and assertions in the python test code.
@masci masci merged commit d0a044f into master Jun 15, 2017
@masci masci deleted the olivielpeau/support-moar-check-init-patterns branch June 15, 2017 09:11
s-alad added a commit that referenced this pull request Jan 6, 2026
* add configurable max file read size limit to prevent OOM

* reuse DefaultMaxFileReadSize & add tests for yaml and json

* reduce test complexity

* wording

* wording
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.

2 participants