aws-health-aware icon indicating copy to clipboard operation
aws-health-aware copied to clipboard

Moving get_account_name call to account loop

Open gdougaws opened this issue 1 year ago • 1 comments

Issue #72

Description of changes: Moved the call to get_account_name from the event_entities loop to the affected_accounts loop to reduce the number of calls to get the account name when in Org Mode to a single call per account instead of a call per entity/resource.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

gdougaws avatar Dec 04 '23 05:12 gdougaws

Updated PR to include if statement to skip the get_account_name call if the event contains more than 100 accounts.

gdougaws avatar Dec 06 '23 04:12 gdougaws

Closing as we resolved in a separate PR https://github.com/aws-samples/aws-health-aware/pull/78

andrewcr7 avatar Mar 27 '24 18:03 andrewcr7