Thanks to visit codestin.com
Credit goes to github.com

Skip to content

cannot deploy generic alert without specifying alert_type #473

@quajones

Description

@quajones
app = Goblet(function_name="test-function")
goblet_entrypoint(app)

error_alert = Alert(
    "test-alert",
    conditions=[LogMatchCondition("error", filter="severity>=ERROR", replace_filter=True)],
)
app.alert(error_alert)

goblet deploy -l us-central1 --skip-backend --skip-handlers --skip-infra

deploying the alert does not generate output or notify that the alert will not be deployed unless the alert_type is specified
updating this value to a valid value resolves this

error_alert.alert_type = "handler"

INFO:goblet.deployer:created alert: test-alert

Metadata

Metadata

Assignees

Labels

enhancementImprovement to existing feature or Goblet in general

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions