Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added the instance_type to report #684

Merged
merged 1 commit into from
Oct 10, 2023

Conversation

athiruma
Copy link
Collaborator

@athiruma athiruma commented Oct 9, 2023

Type of change

Note: Fill x in []

  • bug
  • enhancement
  • documentation
  • dependencies

Description

Added the instance_type to the cloudsensei report

For security reasons, all pull requests need to be approved first before running any automated CI

@athiruma athiruma added documentation Improvements or additions to documentation ok-to-test PR ok to test labels Oct 9, 2023
@athiruma athiruma requested a review from ebattat October 9, 2023 12:01
@athiruma athiruma self-assigned this Oct 9, 2023
@athiruma athiruma requested a review from krishvoor October 9, 2023 12:02
Copy link
Member

@krishvoor krishvoor left a comment

Choose a reason for hiding this comment

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

/lgtm

cloudsensei/lambda_function.py Outdated Show resolved Hide resolved
cloudsensei/lambda_function.py Outdated Show resolved Hide resolved
@athiruma athiruma force-pushed the cloudsensei_add_type branch from ad0223e to d50e724 Compare October 10, 2023 02:45
@@ -77,7 +77,8 @@ def get_resources(self):
long_running_instances_by_user.setdefault(user.lower(), {}).setdefault(region_name, []).append(
{'InstanceId': resource.get('InstanceId'),
'Name': name, 'LaunchDate': str(launch_time),
'RunningDays': f"{days} days", 'State': resource.get('State', {}).get('Name')})
'RunningDays': f"{days} days", 'State': resource.get('State', {}).get('Name'),
'InstanceType': resource.get('InstanceType')})
Copy link
Collaborator

Choose a reason for hiding this comment

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

can you change the order also here 'InstanceType' before 'RunningDays' ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

No need, It is the data storing/ returning variable.

Copy link
Collaborator

@ebattat ebattat left a comment

Choose a reason for hiding this comment

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

/LGTM

@ebattat ebattat merged commit 5015d6a into redhat-performance:main Oct 10, 2023
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation ok-to-test PR ok to test
Projects
Development

Successfully merging this pull request may close these issues.

3 participants