Skip to content

Cherry-pick #26852 to 7.x: Use aws sdk paginator for FilterLogEvents and GetMetricData#26962

Merged
kaiyan-sheng merged 1 commit intoelastic:7.xfrom
kaiyan-sheng:backport_26852_7.x
Jul 19, 2021
Merged

Cherry-pick #26852 to 7.x: Use aws sdk paginator for FilterLogEvents and GetMetricData#26962
kaiyan-sheng merged 1 commit intoelastic:7.xfrom
kaiyan-sheng:backport_26852_7.x

Conversation

@kaiyan-sheng
Copy link
Copy Markdown
Contributor

@kaiyan-sheng kaiyan-sheng commented Jul 19, 2021

Cherry-pick of PR #26852 to 7.x branch. Original message:

What does this PR do?

This PR refactors AWS related code to use AWS SDK paginators instead.

  1. In Filebeat aws-cloudwatch input, change FilterLogEvents API to use NewFilterLogEventsPaginator.
  2. In Metricbeat, change GetMetricData to use NewGetMetricDataPaginator.
  3. In Metricbeat, change ListMetrics to use NewListMetricsPaginator.

Checklist

  • My code follows the style guidelines of this project
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have made corresponding change to the default configuration files
  • I have added tests that prove my fix is effective or that my feature works
  • I have added an entry in CHANGELOG.next.asciidoc or CHANGELOG-developer.next.asciidoc.

Related issues

@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/integrations (Team:Integrations)

@botelastic botelastic bot added needs_team Indicates that the issue/PR needs a Team:* label and removed needs_team Indicates that the issue/PR needs a Team:* label labels Jul 19, 2021
@kaiyan-sheng kaiyan-sheng self-assigned this Jul 19, 2021
@elasticmachine
Copy link
Copy Markdown
Contributor

💚 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: 2021-07-19T16:37:35.146+0000

  • Duration: 100 min 37 sec

  • Commit: 791a601

Test stats 🧪

Test Results
Failed 0
Passed 9901
Skipped 1449
Total 11350

Trends 🧪

Image of Build Times

Image of Tests

💚 Flaky test report

Tests succeeded.

Expand to view the summary

Test stats 🧪

Test Results
Failed 0
Passed 9901
Skipped 1449
Total 11350

@kaiyan-sheng kaiyan-sheng merged commit 95a624c into elastic:7.x Jul 19, 2021
@kaiyan-sheng kaiyan-sheng deleted the backport_26852_7.x branch July 19, 2021 18:48
@zube zube bot removed the [zube]: Done label Oct 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport Team:Integrations Label for the Integrations team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants