Akamai: add recovery_interval parameter and handle 400 invalid timestamp - #16568
Conversation
|
Pinging @elastic/security-service-integrations (Team:Security-Service Integrations) |
🚀 Benchmarks reportTo see the full report comment with |
| } | ||
| ) | ||
| : (resp.StatusCode == 416) ? | ||
| : (resp.StatusCode == 416 || (resp.StatusCode == 400 && size(resp.Body) != 0 && bytes(resp.Body).decode_json().as(errorBody, has(errorBody.detail) && errorBody.detail.contains("Invalid timestamp")))) ? |
There was a problem hiding this comment.
| : (resp.StatusCode == 416 || (resp.StatusCode == 400 && size(resp.Body) != 0 && bytes(resp.Body).decode_json().as(errorBody, has(errorBody.detail) && errorBody.detail.contains("Invalid timestamp")))) ? | |
| : (resp.StatusCode == 416 || (resp.StatusCode == 400 && size(resp.Body) != 0 && bytes(resp.Body).decode_json().as(errorBody, has(errorBody.detail) && errorBody.detail.to_lower().contains("invalid timestamp")))) ? |
I think we should use to_lower() just to be safe.
There was a problem hiding this comment.
We just need to check if to_lower() can be chained with contains() correctly once.
There was a problem hiding this comment.
I've verified that they can be chained.
|
I also updated the commit message a bit |
💚 Build Succeeded
History
|
| name: akamai | ||
| title: Akamai | ||
| version: "3.0.2" | ||
| version: "3.1.0" |
There was a problem hiding this comment.
@chemamartinez ,Just noticed this, I saw it was tagged as a bugfix, and the custom package shared was 3.0.3. Should we keep this the same or do we want to label it as an enhancement ? I feel an enhancement is appropriate as we are introducing a new config variable. If so we can add the enhancement label.
There was a problem hiding this comment.
I've added the enhancement label
There was a problem hiding this comment.
Yes, it includes two changes and for me one is an enhancement and the other one a bugfix, so I changed the minor version and marked it as both in the changelog but forgot to add the label. Thank you!
|
Package akamai - 3.1.0 containing this change is available at https://epr.elastic.co/package/akamai/3.1.0/ |
Proposed commit message
Checklist
changelog.ymlfile.