-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
[TT-13917] Add uptime test implementation docs, godoc #6845
base: master
Are you sure you want to change the base?
Conversation
API Changes --- prev.txt 2025-01-23 17:45:25.045249304 +0000
+++ current.txt 2025-01-23 17:45:20.515198396 +0000
@@ -1349,9 +1349,19 @@
}
type UptimeTestsConfig struct {
- ExpireUptimeAnalyticsAfter int64 `bson:"expire_utime_after" json:"expire_utime_after"` // must have an expireAt TTL index set (http://docs.mongodb.org/manual/tutorial/expire-data/)
- ServiceDiscovery ServiceDiscoveryConfiguration `bson:"service_discovery" json:"service_discovery"`
- RecheckWait int `bson:"recheck_wait" json:"recheck_wait"`
+ // ExpireAnalyticsAfter controls the expire time in seconds.
+ // If no value is configured, or if set to 0, then the expire time
+ // is set to 100 years. This arsises out of a MongoDB restriction:
+ //
+ // Must have an expireAt TTL index set:
+ // http://docs.mongodb.org/manual/tutorial/expire-data/
+ ExpireUptimeAnalyticsAfter int64 `bson:"expire_utime_after" json:"expire_utime_after"`
+
+ // ServiceDiscovery configures service discovery for uptime tests.
+ ServiceDiscovery ServiceDiscoveryConfiguration `bson:"service_discovery" json:"service_discovery"`
+
+ // RecheckWait is the time in seconds to wait for a re-check when a check fails.
+ RecheckWait int `bson:"recheck_wait" json:"recheck_wait"`
}
type ValidatePathMeta struct { |
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
Quality Gate passedIssues Measures |
ExpireUptimeAnalyticsAfter int64 `bson:"expire_utime_after" json:"expire_utime_after"` // must have an expireAt TTL index set (http://docs.mongodb.org/manual/tutorial/expire-data/) | ||
ServiceDiscovery ServiceDiscoveryConfiguration `bson:"service_discovery" json:"service_discovery"` | ||
RecheckWait int `bson:"recheck_wait" json:"recheck_wait"` | ||
// ExpireAnalyticsAfter controls the expire time in seconds. |
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.
why analytics? are these recorded in analytics and then we want to remove the entries from analytics?
// ServiceDiscovery configures service discovery for uptime tests. | ||
ServiceDiscovery ServiceDiscoveryConfiguration `bson:"service_discovery" json:"service_discovery"` | ||
|
||
// RecheckWait is the time in seconds to wait for a re-check when a check fails. |
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.
recheck of what? is it the time between upstream requests?
PR Type
Documentation, Enhancement
Description
Added detailed documentation for uptime test implementation.
Enhanced comments in
UptimeTestsConfig
struct for clarity.Provided examples and explanations for uptime test configurations.
Linked related resources and highlighted outdated documentation issues.
Changes walkthrough 📝
api_definitions.go
Enhanced comments in `UptimeTestsConfig` struct
apidef/api_definitions.go
UptimeTestsConfig
struct fields.ExpireUptimeAnalyticsAfter
.ServiceDiscovery
andRecheckWait
.uptime-tests.md
Added detailed documentation for uptime tests
docs/dev/uptime-tests.md