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

feat: Optimus spec based siren alerts #299

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

Mryashbhardwaj
Copy link
Member

Proton PR: goto/proton#137

@Mryashbhardwaj Mryashbhardwaj requested review from arinda-arif and sbchaos and removed request for arinda-arif November 8, 2024 07:59
@@ -400,7 +400,7 @@ def get_run_type(context):
def job_success_event(context):
try:
meta = {
"event_type": "TYPE_JOB_SUCCESS",

Choose a reason for hiding this comment

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

is this change expected?

Copy link
Member Author

Choose a reason for hiding this comment

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

yes this is needed

core/job/spec.go Outdated
@@ -560,14 +562,31 @@ type WebhookSpec struct {
Endpoints []WebhookEndPoint
}

func NewAlertSpec(on string, channels []string, config Config) (*AlertSpec, error) {
const (
DefaultSeverity = "INFO"

Choose a reason for hiding this comment

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

in here default severity is INFO, while in https://github.com/goto/optimus/pull/299/files#diff-ae8202ecdfcffa6355ad138f9caf0e43b8c5163a4a831e28be335bbcc3a66f2cR28 it is warning. Both should be warning, no?

Copy link
Member Author

Choose a reason for hiding this comment

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

yes correct,
fixing this

@ahmadnaufal
Copy link

other than the mentioned differences, PR looks good to me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants