You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+20
Original file line number
Diff line number
Diff line change
@@ -182,6 +182,26 @@ check "Complex check",
182
182
end
183
183
```
184
184
185
+
### Rate Limiting Expensive Checks
186
+
187
+
For expensive operations (like testing paid APIs), you can limit how often checks run:
188
+
189
+
```ruby
190
+
# Run expensive checks a limited number of times
191
+
check "OpenAI is responding with a valid LLM message", run:"2 times per day"do
192
+
# expensive API call
193
+
end
194
+
195
+
check "Analytics can be processed", run:"4 times per hour"do
196
+
# expensive operation
197
+
end
198
+
```
199
+
200
+
Important notes:
201
+
- Rate limits reset at the start of each period (hour/day)
202
+
- The error state persists between rate-limited runs
203
+
- Rate-limited checks show clear feedback about remaining runs and next reset time
204
+
185
205
When a check is skipped due to its conditions not being met, it will appear in the healthcheck page with a skip emoji (⏭️) and a clear explanation of why it was skipped.
186
206
187
207

0 commit comments