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
[heartbeat] States and Improved Errors #30632
Merged
Merged
Changes from 1 commit
Commits
Show all changes
129 commits
Select commit
Hold shift + click to select a range
dee25ff
Moar intervals
andrewvc a3a7cbd
Checkpoint
andrewvc 72fab36
Checkpoint
andrewvc 22e7c12
Checkpoint
andrewvc aab5d8a
Merge remote-tracking branch 'origin/master' into intervals
andrewvc b46f81d
[Heartbeat] Report next_run info per event
andrewvc e90a046
Add changelog
andrewvc cdeac64
Incorporate PR feedback
andrewvc 077be58
Checkpoint
andrewvc b06323f
Checkpoint
andrewvc a371f6e
Just report the timespan
andrewvc 9c8dbe5
Merge remote-tracking branch 'origin/master' into next-run-range
andrewvc 3e4e8ea
fix tests
andrewvc c9b39cb
fix relnote
andrewvc a00aa0f
Fmt
andrewvc e1d0c65
Tweaks
andrewvc da1fde1
Factor timeout into timespans
andrewvc 4e08b3d
fmt
andrewvc 51bffaa
Merge remote-tracking branch 'origin/master' into next-run-range
andrewvc f74c85d
Merge remote-tracking branch 'origin/master' into next-run-range
andrewvc 1a7c1f4
Merge remote-tracking branch 'origin/master' into next-run-range
andrewvc 0150408
Don't require docs on date_range sub-keys
andrewvc 95acb3c
Remove print
andrewvc d565042
Merge remote-tracking branch 'origin/master' into next-run-range
andrewvc 7b2162a
FMT
andrewvc 0b28b6f
Merge remote-tracking branch 'origin/master' into intervals
andrewvc 8feb085
Checkpoint
andrewvc 9232921
Merge remote-tracking branch 'origin/master' into next-run-range
andrewvc 7bf22b5
Merge branch 'next-run-range' into intervals
andrewvc 89563ea
Merge remote-tracking branch 'origin/master' into intervals
andrewvc 9cadda9
Merge remote-tracking branch 'origin/master' into intervals
andrewvc e744853
Merge commit '9cadda912e93fa0a21bf02e1164dcf96e0b9c606' into tv2
andrewvc 67a4191
More
andrewvc 5a15d3c
[DOCS] Removed reference to the Stack GS (#32083)
debadair a55ae58
[DOCS] Removed reference to the Stack GS (#32119)
debadair 9cbb78e
Merge branch 'main', remote-tracking branch 'origin' into tv2
andrewvc de4f4de
Unblock blocked monitors test
andrewvc 1814865
Works for browsers
andrewvc e0c8bc5
Almost working
andrewvc 8bf1b05
more is working
andrewvc 6751721
Merge remote-tracking branch 'origin/main' into tv2
andrewvc 83e26b6
Clean-up initialization of ES client
andrewvc 844460c
Many cleanups
andrewvc 3a1d963
Checkpoint for flapping refactor
andrewvc 21d6062
Checkpoint
andrewvc 26eac4e
Fix tracker, add basic tracker tests, plus type for loading past state.
andrewvc 9af04c3
Merge remote-tracking branch 'origin/main' into tv2
andrewvc 5fdba6c
Checkpoint
andrewvc 4da0d7e
Checkpoint
andrewvc 6f4c20a
ES kinda works in testing.
andrewvc 4e4af45
checkpoint
andrewvc ec133a5
Cleanup and refactor
andrewvc 5b7c268
Merge remote-tracking branch 'origin/main' into tv2
andrewvc bed5fbf
Changelog
andrewvc d42b383
Cleanup dev tools usage
andrewvc 8ac7d40
Group imports
andrewvc d6ed347
Cleanups
andrewvc 79ac24a
Cleanups
andrewvc 102db33
Cleanups
andrewvc c7178cc
Cleanups
andrewvc a7ff0e2
Cleanups
andrewvc 1ab5ff5
Cleanups
andrewvc 1163d53
Cleanups
andrewvc cf99c89
Update and add run xml
andrewvc 007b607
Cleanups
andrewvc 701f48c
More inclusive index pattern
andrewvc 00199f8
More inclusive index pattern
andrewvc 0247783
Tweaks
andrewvc 55ae272
Tweaks
andrewvc ce39e3f
Tweaks for flapping
andrewvc cfb33c0
Fix infinite storage growth
andrewvc 6a2e430
Fix infinite storage growth
andrewvc 372281d
Add tests for transitions
andrewvc 4eff88d
FMT
andrewvc 4262352
FMT
andrewvc 9723532
Update and refine ECS types / checks to more precisely test ECS errors
andrewvc f22b067
Fix state ends
andrewvc c480df1
Fix test failures
andrewvc 7565406
Use error codes for most test situations
andrewvc 56a0cd2
Fixup connection errors in HTTP tests
andrewvc 2af1a0a
Fix broken HTTP errors
andrewvc 8e67dd9
Make linter happy
andrewvc 107a52b
Make linter happy, remove runner XML
andrewvc bff7ac8
Make linter happy
andrewvc 55cbff0
Make linter happy
andrewvc 363a6f8
Fix integration test targeting
andrewvc 8500f22
Make linter happy
andrewvc 131e187
Integration tests fixed in non-xpack heartbeat
andrewvc c446705
Add empty pythonIntegTest mage targets to make CI happy
andrewvc 43dd0fc
Remove flap history field from state.ends
andrewvc a05c1fd
Fix nesting of state.ends
andrewvc c48d71a
Merge remote-tracking branch 'origin/main' into tv2
andrewvc e298ac6
Merge remote-tracking branch 'origin/main' into tv2
andrewvc 54c7705
Add geo config
andrewvc c8f8a82
Initial tests and functionality for geo per monitor
andrewvc 0211a38
ES loader now supports locations
andrewvc 73b435d
FMT
andrewvc 315b1cf
Disable flapping by default, add tests for this
andrewvc 305c837
Fix broken integ tests, refactor integ framework
andrewvc a27c7ec
Initial work for scenario tests with ES
andrewvc 7f010b1
Format
andrewvc eb0de76
Checkpoint
andrewvc 3e285df
Fix stateloader scenario tests
andrewvc 3eede87
Cleanup framework
andrewvc 8ff8267
Make linter happy
andrewvc fdc4507
Make linter happy
andrewvc 2fbe2e0
Merge remote-tracking branch 'origin/main' into tv2
andrewvc 27435f0
Fix windows targetting
andrewvc 3739f24
Restrict all browser source from win builds
andrewvc e9386a4
Fix win deps
andrewvc 1194b06
Merge branch 'main' into tv2
andrewvc 2e952f1
Merge remote-tracking branch 'origin/main' into tv2
andrewvc 793eb39
Incorporate PR feedback
andrewvc aa5e7dc
Merge remote-tracking branch 'origin/main' into tv2
andrewvc b9f7590
Apply suggestions from code review
andrewvc cb8bce3
Merge remote-tracking branch 'andrewvc/tv2' into tv2
andrewvc 70bd444
Update heartbeat/monitors/wrappers/monitorstate/tracker.go
andrewvc c11982f
Incorporate PR feedback
andrewvc 903c841
Merge remote-tracking branch 'andrewvc/tv2' into tv2
andrewvc ee08dc7
Remove unnecessary state loader assignment
andrewvc eed6a89
Remove browser from win tests
andrewvc 6ecac3e
Fix state loader to only use ES state loader with ES output
andrewvc bc39d5a
Don't run integ tests on windows
andrewvc 045969b
Revert "ci: enable windows for testing heartbeat (#32937)"
andrewvc 779da1b
Rename monitor.location to monitor.run_from and add tests for observe…
andrewvc 04d29e5
Merge branch 'main' into tv2
andrewvc a404afa
Incorporate PR feedback
andrewvc 816734d
Merge remote-tracking branch 'origin/main' into tv2
andrewvc 34783dc
Merge remote-tracking branch 'andrewvc/tv2' into tv2
andrewvc File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,8 +27,8 @@ func newLoaderDB() *loaderDB { | |
} | ||
|
||
func loaderDbKey(sf stdfields.StdMonitorFields) string { | ||
if sf.Location != nil { | ||
return fmt.Sprintf("%s-%s", sf.ID, sf.Location.ID) | ||
if sf.RunFrom != nil { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Move this logic to monitorstate.go? |
||
return fmt.Sprintf("%s-%s", sf.ID, sf.RunFrom.ID) | ||
} | ||
return sf.ID | ||
} | ||
|
This file contains 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
This file contains 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
This file contains 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
This file contains 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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to account for missing
RunFrom
config. This is what I see in statesWe can default to
unknown
location ?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also it should be RunFrom.id, since its using interface now.