Conversation
…ntion-flags-to-ongoing-monitoring-tests
Contributor
PR SummaryThis pull request introduces a new feature to the
The notebook now includes sections that explain how to use the Additionally, the notebook's table of contents and metadata have been updated to reflect these changes. Test Suggestions
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request Description
What
Added a new acceptable performance flag feature to the
log_metric()function that visually indicates metric status with color-coded badges. When settingpassed=True, a green "Satisfactory" badge appears on the chart, whilepassed=Falsedisplays a yellow "Requires Attention" badge. This provides an immediate visual indication of whether metric values meet predefined performance standards, beyond just showing the raw values relative to thresholds.Why
Monitoring metric values against thresholds is valuable, but users often need an indication of whether a metric is acceptable or problematic according to business rules. This enhancement addresses that need by:
How to Test
passed=Trueusing the following code:passed=False:passed=True, yellow "Requires Attention" forpassed=False)Pull Request Dependencies
https://github.com/validmind/backend/pull/1501
https://github.com/validmind/frontend/pull/1403
External Release Notes
The ValidMind Library now supports visual status indicators for ongoing monitoring metrics. When using the
log_metric()function, you can specify thepassedparameter to add status badges to Metrics Over Time blocks.This new parameter accepts a boolean value:
passed=True: Displays a green "Satisfactory" badgepassed=False: Displays a yellow "Requires Attention" badgeThis feature enables straightforward visual assessment of metric performance against defined business rules. Users can either manually set the status or programmatically determine it using custom evaluation functions that implement specific acceptance criteria.
The status indicators are especially useful for:
Deployment Notes
Breaking Changes
Screenshots/Videos (Frontend Only)
Checklist
Areas Needing Special Review
Additional Notes