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
fix(ess_billing): Improve reliability and prevent API errors (#14744)
This commit introduces several improvements to the ess_billing integration to
enhance its reliability and prevent common API errors.
- To prevent repeated failing requests on non-200 HTTP status codes, the CEL
program now sets want_more to false. This allows the input to retry at the
next periodic interval instead of exhausting the execution budget.
- A validation rule has been added to enforce a minimum 'from' date of
2021-01-01. This clamps the calculated timestamp to the API's minimum allowed
value, preventing 'Bad Request' errors caused by lookbehind configurations
creating excessively early dates. This uses the max() function which requires
Elastic Agent 8.18 or greater so the Kibana constraint was raised as a proxy.
- All instances of the now() function in the CEL program have been replaced
with the now variable. This ensures a stable time reference throughout a
single execution, leading to more consistent and predictable time-based
calculations.
A system test has been added to cover these scenarios.
Fixes#14743Fixes#14755
Copy file name to clipboardExpand all lines: packages/ess_billing/changelog.yml
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,12 @@
1
1
# newer versions go on top
2
+
- version: "1.4.3"
3
+
changes:
4
+
- description: Fixed minimum date validation for ESS Billing API to prevent errors with dates prior to 2021-01-01. This change requires Elastic Agent 8.18 or greater.
0 commit comments