Joseph Thickpenny Ryan
02/06/2023, 5:54 PMWill Raphaelson
02/06/2023, 6:30 PMJoseph Thickpenny Ryan
02/06/2023, 7:33 PM{
"name": "test",
"trigger": {
"after": [ "prefect.flow-run.Failed" ],
"posture": "Reactive",
"threshold": 1,
},
"actions": [
{
"type": "send-notification",
"block_document_id": "XXXXXXXX",
"subject": "failure",
"body": "failure"
}
]
}
Will Raphaelson
02/07/2023, 4:40 PMAUTOMATION = {
"name": "notification-test-3",
"description": "notification",
"trigger": {
"match": {
"prefect.resource.id": "prefect.flow-run.*"},
"match_related":
{"prefect.resource.id":
["prefect.flow.4914aee7-f66b-4410-a719-7f18dde2d583"],
"prefect.resource.role": "flow"},
"after": [],
"expect": ["prefect.flow-run.Completed"],
"for_each": ["prefect.resource.id"],
"posture": "Reactive",
"threshold": 1,
"within": 10.0},
"actions": [
{"type": "send-notification",
"block_document_id": "23f174d5-0a6e-440d-9965-4cd45b54d3d9",
"subject": "yo",
"body": mssg,
},
],
}
Joseph Thickpenny Ryan
02/07/2023, 4:42 PMWill Raphaelson
02/07/2023, 4:44 PMAUTOMATION = {
"name": "notification-test-3",
"description": "notification",
"trigger": {
"match": {
"prefect.resource.id": "prefect.flow-run.*"},
"match_related": {},
"after": [],
"expect": ["prefect.flow-run.Completed"],
"for_each": ["prefect.resource.id"],
"posture": "Reactive",
"threshold": 1,
"within": 10.0},
"actions": [
{"type": "send-notification",
"block_document_id": "23f174d5-0a6e-440d-9965-4cd45b54d3d9",
"subject": "yo",
"body": mssg,
},
],
}
Joseph Thickpenny Ryan
02/08/2023, 9:16 AMWill Raphaelson
02/08/2023, 5:19 PM