+
Skip to content

galvesribeiro/EventGridEmulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EventGridEmulator

Microsoft Azure EventGrid Emulator

How to use

dotnet run on the EventGridEmulator project directory

With the project running, POST the subscription object just like in the real Azure EventGrid:

POST http://localhost:5000/Microsoft.EventGrid/eventSubscriptions/{subscriptionName}

{
  "properties": {
    "destination": {
      "endpointType": "WebHook",
      "properties": {
        "endpointUrl": "http://localhost:5000/test"
      }
    },
    "filter": {
      "includedEventTypes": ["ALL"],
      "isSubjectCaseSensitive": true,
      "subjectBeginsWith": "Test",
      "subjectEndsWith": ".A"
    }
  }
}

After the subscription have been created, you can post Events to the events endpoint:

POST http://localhost:5000/Microsoft.EventGrid/events

[{
  "eventType": "recordInserted",
  "subject": "Test.A",
  "data": {
    "make": "Ducati",
    "model": "Monster"
  }
}]

The message will then be forwarded to the registered subscriptions.

This is a work in progress. Docker/Kubernetes support along with other kind of message publishers will come soon.

About

Microsoft Azure EventGrid Emulator

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载