Skip to content

Commit 8904226

Browse files
authored
Adding new statuses and a property to EmailDeliveryReportReceived Event (#23593)
* Adding new status to EmailDeliveryReportReceived Event Adding new status value "Suppressed" to EmailDeliveryReportReceived Event in AcsEvents * Adding new property to Email event * Adding new status * Updates from feedback. * Adding description for the enum * Fix Prettier check * Update description * Updating example * Updated swagger object def * Updating property name * renaming property
1 parent b40c1b9 commit 8904226

File tree

2 files changed

+50
-5
lines changed

2 files changed

+50
-5
lines changed

specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/AzureCommunicationServices.json

Lines changed: 46 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -519,19 +519,51 @@
519519
"type": "string"
520520
},
521521
"status": {
522-
"description": "The status of the email",
522+
"description": "The status of the email. Any value other than Delivered is considered failed.",
523523
"type": "string",
524524
"enum": [
525-
"Failed",
525+
"Bounced",
526526
"Delivered",
527+
"Failed",
527528
"FilteredSpam",
528-
"Quarantined"
529+
"Quarantined",
530+
"Suppressed"
529531
],
530532
"x-ms-enum": {
531533
"name": "AcsEmailDeliveryReportStatus",
532-
"modelAsString": true
534+
"modelAsString": true,
535+
"values": [
536+
{
537+
"value": "Bounced",
538+
"description": "Hard bounce detected while sending the email"
539+
},
540+
{
541+
"value": "Delivered",
542+
"description": "The email was delivered"
543+
},
544+
{
545+
"value": "Failed",
546+
"description": "The email failed to be delivered"
547+
},
548+
{
549+
"value": "FilteredSpam",
550+
"description": "The message was identified spam and was rejected or blocked (not quarantined)."
551+
},
552+
{
553+
"value": "Quarantined",
554+
"description": "The message was quarantined (as spam, bulk mail, or phishing). For more information, see Quarantined email messages in EOP (EXCHANGE ONLINE PROTECTION)."
555+
},
556+
{
557+
"value": "Suppressed",
558+
"description": "The email was suppressed"
559+
}
560+
]
533561
}
534562
},
563+
"deliveryStatusDetails": {
564+
"description": "Detailed information about the status if any",
565+
"$ref": "#/definitions/AcsEmailDeliveryReportStatusDetails"
566+
},
535567
"deliveryAttemptTimeStamp": {
536568
"description": "The time at which the email delivery report received timestamp",
537569
"format": "date-time",
@@ -819,6 +851,16 @@
819851
"type": "string"
820852
}
821853
}
854+
},
855+
"AcsEmailDeliveryReportStatusDetails": {
856+
"description": "Detailed information about the status if any",
857+
"type": "object",
858+
"properties": {
859+
"statusMessage": {
860+
"description": "Detailed status message",
861+
"type": "string"
862+
}
863+
}
822864
}
823865
}
824866
}

specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/email_delivery_report_received.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@
77
"recipient": "test1@contoso.com",
88
"messageId": "950850f5-bcdf-4315-b77a-6447cf56fac9",
99
"status": "delivered",
10-
"deliveryAttemptTimeStamp": "2023-02-09T19:46:12.2480265+00:00"
10+
"deliveryAttemptTimeStamp": "2023-02-09T19:46:12.2480265+00:00",
11+
"deliveryStatusDetails": {
12+
"statusMessage": "DestinationMailboxFull"
13+
}
1114
},
1215
"eventType": "Microsoft.Communication.EmailDeliveryReportReceived",
1316
"dataVersion": "1.0",

0 commit comments

Comments
 (0)