-
-
Notifications
You must be signed in to change notification settings - Fork 343
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Improved AWS backup notification readability (#222)
Co-authored-by: Anton Babenko <[email protected]> Co-authored-by: Bryant Biggs <[email protected]>
- Loading branch information
1 parent
6c17291
commit 27d1c46
Showing
3 changed files
with
633 additions
and
261 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,109 @@ | ||
{ | ||
"Records": [ | ||
{ | ||
"EventSource": "aws:sns", | ||
"EventVersion": "1.0", | ||
"EventSubscriptionArn": "arn:aws:sns:...-a3802aa1ed45", | ||
"Sns": { | ||
"Type": "Notification", | ||
"MessageId": "12345678-abcd-123a-def0-abcd1a234567", | ||
"TopicArn": "arn:aws:sns:us-west-1:123456789012:backup-2sqs-sns-topic", | ||
"Subject": "Notification from AWS Backup", | ||
"Message": "An AWS Backup job was completed successfully. Recovery point ARN: arn:aws:ec2:us-west-1:123456789012:volume/vol-012f345df6789012d. Resource ARN : arn:aws:ec2:us-west-1:123456789012:volume/vol-012f345df6789012e. BackupJob ID : 1b2345b2-f22c-4dab-5eb6-bbc7890ed123", | ||
"Timestamp": "2019-08-02T18:46:02.788Z", | ||
"MessageAttributes": { | ||
"EventType": { | ||
"Type": "String", | ||
"Value": "BACKUP_JOB" | ||
}, | ||
"State": { | ||
"Type": "String", | ||
"Value": "COMPLETED" | ||
}, | ||
"AccountId": { | ||
"Type": "String", | ||
"Value": "123456789012" | ||
}, | ||
"Id": { | ||
"Type": "String", | ||
"Value": "1b2345b2-f22c-4dab-5eb6-bbc7890ed123" | ||
}, | ||
"StartTime": { | ||
"Type": "String", | ||
"Value": "2019-09-02T13:48:52.226Z" | ||
} | ||
} | ||
} | ||
}, | ||
{ | ||
"EventSource": "aws:sns", | ||
"EventVersion": "1.0", | ||
"EventSubscriptionArn": "arn:aws:sns:...-a3802aa1ed45", | ||
"Sns": { | ||
"Type": "Notification", | ||
"MessageId": "12345678-abcd-123a-def0-abcd1a234567", | ||
"TopicArn": "arn:aws:sns:us-west-1:123456789012:backup-2sqs-sns-topic", | ||
"Subject": "Notification from AWS Backup", | ||
"Message": "An AWS Backup job failed. Resource ARN : arn:aws:ec2:us-west-1:123456789012:volume/vol-012f345df6789012e. BackupJob ID : 1b2345b2-f22c-4dab-5eb6-bbc7890ed123", | ||
"Timestamp": "2019-08-02T18:46:02.788Z", | ||
"MessageAttributes": { | ||
"EventType": { | ||
"Type": "String", | ||
"Value": "BACKUP_JOB" | ||
}, | ||
"State": { | ||
"Type": "String", | ||
"Value": "FAILED" | ||
}, | ||
"AccountId": { | ||
"Type": "String", | ||
"Value": "123456789012" | ||
}, | ||
"Id": { | ||
"Type": "String", | ||
"Value": "1b2345b2-f22c-4dab-5eb6-bbc7890ed123" | ||
}, | ||
"StartTime": { | ||
"Type": "String", | ||
"Value": "2019-09-02T13:48:52.226Z" | ||
} | ||
} | ||
} | ||
}, | ||
{ | ||
"EventSource": "aws:sns", | ||
"EventVersion": "1.0", | ||
"EventSubscriptionArn": "arn:aws:sns:...-a3802aa1ed45", | ||
"Sns": { | ||
"Type": "Notification", | ||
"MessageId": "12345678-abcd-123a-def0-abcd1a234567", | ||
"TopicArn": "arn:aws:sns:us-west-1:123456789012:backup-2sqs-sns-topic", | ||
"Subject": "Notification from AWS Backup", | ||
"Message": "An AWS Backup job failed to complete in time. Resource ARN : arn:aws:ec2:us-west-1:123456789012:volume/vol-012f345df6789012e. BackupJob ID : 1b2345b2-f22c-4dab-5eb6-bbc7890ed123", | ||
"Timestamp": "2019-08-02T18:46:02.788Z", | ||
"MessageAttributes": { | ||
"EventType": { | ||
"Type": "String", | ||
"Value": "BACKUP_JOB" | ||
}, | ||
"State": { | ||
"Type": "String", | ||
"Value": "EXPIRED" | ||
}, | ||
"AccountId": { | ||
"Type": "String", | ||
"Value": "123456789012" | ||
}, | ||
"Id": { | ||
"Type": "String", | ||
"Value": "1b2345b2-f22c-4dab-5eb6-bbc7890ed123" | ||
}, | ||
"StartTime": { | ||
"Type": "String", | ||
"Value": "2019-09-02T13:48:52.226Z" | ||
} | ||
} | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.