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 budget extension ability #649

Merged
merged 1 commit into from
Aug 1, 2023

Conversation

athiruma
Copy link
Collaborator

  1. Added the budget extension ability.
    1. Created the AbstarctMonitorTIckets Interface, so that we can reuse it.
      1. This will cause the shifting of monitor_in_progress_tickets code from aws/monitor_tickets to AbstractMonitorTickets. So this file looks more.
      2. Make use of resourcegroupstaggingapi of to tag all resources having the tag TicketId.
  2. Added the example mongo_db schema to the data. So we can do sufficient changes in the future.

@athiruma athiruma added documentation Improvements or additions to documentation enhancement New feature or request ok-to-test PR ok to test labels Jul 27, 2023
@athiruma athiruma requested a review from ebattat July 27, 2023 14:23
@athiruma athiruma self-assigned this Jul 27, 2023
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.

Please try to avoid large PR, next time split it to small according to subjects

@@ -0,0 +1,34 @@
{
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why we need the es schema ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It will help us to identity, which data is currently storing in the Elastic Server


def cro_monitor_budget_remain_alert(self, ticket_id: str, budget: int, user: str, used_budget: int, remain_budget: int):
"""
This method return subject, body for the budget remain alert
Copy link
Collaborator

Choose a reason for hiding this comment

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

This method returns

cloud_governance/common/mails/mail_message.py Outdated Show resolved Hide resolved
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 7647b28 into redhat-performance:main Aug 1, 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 enhancement New feature or request ok-to-test PR ok to test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants