-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Update readme.md #15637
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
Merged
Merged
Update readme.md #15637
Changes from 1 commit
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -38,6 +38,51 @@ A sample valid event definition is shown below: | |
| ``` | ||
| ~~~ | ||
|
|
||
| In addition to the event schema definition, you must provide a JSON example of a real event the service can trigger. This example must be in a "examples" folder close to your JSON, and called using snakeCase based on the event final name. The example should contain the envelope, but could be CloudEvent or EventGrid schema, whatever is easier. No PR will be accepted without the example. | ||
|
|
||
| For the previous schema, the example file should be called "chat_message_received.json" and contains: | ||
| ~~~ markdown | ||
| ```json | ||
| { | ||
| "id": "02272459-badb-4e2e-b538-4cb8a2f71da6", | ||
| "topic": "/subscriptions/{subscription-id}/resourceGroups/{group-name}/providers/Microsoft.Communication/communicationServices/{communication-services-resource-name}", | ||
| "subject": "thread/{thread-id}/sender/{rawId}/recipient/{rawId}", | ||
| "data": { | ||
| "messageBody": "Welcome to Azure Communication Services", | ||
| "messageId": "1613694358927", | ||
| "metadata": { | ||
| "key": "value", | ||
| "description": "A map of data associated with the message" | ||
| }, | ||
| "senderId": "8:acs:109f0644-b956-4cd9-87b1-71024f6e2f44_00000008-578d-7caf-07fd-084822001724", | ||
| "senderCommunicationIdentifier": { | ||
| "rawId": "8:acs:109f0644-b956-4cd9-87b1-71024f6e2f44_00000008-578d-7caf-07fd-084822001724", | ||
| "communicationUser": { | ||
| "id": "8:acs:109f0644-b956-4cd9-87b1-71024f6e2f44_00000008-578d-7caf-07fd-084822001724" | ||
| } | ||
| }, | ||
| "senderDisplayName": "Jhon", | ||
| "composeTime": "2021-02-19T00:25:58.927Z", | ||
| "type": "Text", | ||
| "version": 1613694358927, | ||
| "recipientId": "8:acs:109f0644-b956-4cd9-87b1-71024f6e2f44_00000008-578d-7d05-83fe-084822000f6d", | ||
| "recipientCommunicationIdentifier": { | ||
| "rawId": "8:acs:109f0644-b956-4cd9-87b1-71024f6e2f44_00000008-578d-7d05-83fe-084822000f6d", | ||
| "communicationUser": { | ||
| "id": "8:acs:109f0644-b956-4cd9-87b1-71024f6e2f44_00000008-578d-7d05-83fe-084822000f6d" | ||
| } | ||
| }, | ||
| "transactionId": "oh+LGB2dUUadMcTAdRWQxQ.1.1.1.1.1827536918.1.7", | ||
| "threadId": "19:[email protected]" | ||
| }, | ||
| "eventType": "Microsoft.Communication.ChatMessageReceived", | ||
| "dataVersion": "1.0", | ||
| "metadataVersion": "1", | ||
| "eventTime": "2021-02-19T00:25:59.9436666Z" | ||
| } | ||
| ``` | ||
| ~~~ | ||
|
|
||
| --- | ||
| ## Getting Started | ||
| To build the SDK for EventGrid, simply [Install AutoRest](https://aka.ms/autorest/install) and in this folder, run: | ||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.