Skip to content

Conversation

@efd6
Copy link
Contributor

@efd6 efd6 commented May 31, 2023

What does this PR do?

The initial_interval manifest option is an unsigned interval, represented as a postive time offset, but the url.params.from template was adding it unaltered to the now time, resulting in a "from" in the future. Similarly, the url.params.to template was calculating now less one minute. Fix the "from" sign and don't offset the "to" time.

Checklist

  • I have reviewed tips for building integrations and this pull request is aligned with them.
  • I have verified that all data streams collect metrics or logs.
  • I have added an entry to my package's changelog.yml file.
  • I have verified that Kibana version constraints are current according to guidelines.

Author's Checklist

  • [ ]

How to test this PR locally

Related issues

Screenshots

References

@efd6 efd6 added bug Something isn't working, use only for issues Team:Security-External Integrations Integration:akamai Akamai (Community supported) labels May 31, 2023
@efd6 efd6 self-assigned this May 31, 2023
The initial_interval manifest option is an unsigned interval,
represented as a postive time offset, but the url.params.from template
was adding it unaltered to the now time, resulting in a "from" in the
future. Similarly, the url.params.to template was calculating now less
one minute. Fix the "from" sign and don't offset the "to" time.
@elasticmachine
Copy link

elasticmachine commented May 31, 2023

💚 Build Succeeded

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview preview

Expand to view the summary

Build stats

  • Start Time: 2023-05-31T18:34:41.230+0000

  • Duration: 14 min 52 sec

Test stats 🧪

Test Results
Failed 0
Passed 6
Skipped 0
Total 6

🤖 GitHub comments

Expand to view the GitHub comments

To re-run your PR in the CI, just comment with:

  • /test : Re-trigger the build.

@elasticmachine
Copy link

🌐 Coverage report

Name Metrics % (covered/total) Diff
Packages 100.0% (1/1) 💚
Files 100.0% (1/1) 💚
Classes 100.0% (1/1) 💚
Methods 100.0% (20/20) 💚
Lines 93.229% (358/384)
Conditionals 100.0% (0/0) 💚

@efd6 efd6 marked this pull request as ready for review May 31, 2023 06:16
@efd6 efd6 requested a review from a team as a code owner May 31, 2023 06:16
@elasticmachine
Copy link

Pinging @elastic/security-external-integrations (Team:Security-External Integrations)

Copy link
Member

@andrewkroh andrewkroh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. I checked the requests in the system tests and they were:

  1. http://elastic-package-service_akamai_1:8080/siem/v1/configs/aaaa?from=1685461569&to=1685547969
  2. http://elastic-package-service_akamai_1:8080/siem/v1/configs/aaaa?offset=offset1
  3. http://elastic-package-service_akamai_1:8080/siem/v1/configs/aaaa?offset=offset2

1685547969 - 1685461569 = 86400 sec = 24h ✅

@andrewkroh andrewkroh merged commit 2e8cf1a into elastic:main May 31, 2023
@elasticmachine
Copy link

Package akamai - 2.9.1 containing this change is available at https://epr.elastic.co/search?package=akamai

agithomas pushed a commit to agithomas/integrations that referenced this pull request Jun 5, 2023
The initial_interval manifest option is an unsigned interval,
represented as a postive time offset, but the url.params.from template
was adding it unaltered to the now time, resulting in a "from" in the
future. Similarly, the url.params.to template was calculating now less
one minute. Fix the "from" sign and don't offset the "to" time.
sodhikirti07 pushed a commit that referenced this pull request Jun 15, 2023
The initial_interval manifest option is an unsigned interval,
represented as a postive time offset, but the url.params.from template
was adding it unaltered to the now time, resulting in a "from" in the
future. Similarly, the url.params.to template was calculating now less
one minute. Fix the "from" sign and don't offset the "to" time.
@efd6 efd6 deleted the 6351-akamai branch February 5, 2025 22:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working, use only for issues Integration:akamai Akamai (Community supported)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Akamai integration version 2.7.0 sending wrong values in from and to params

4 participants