Skip to content

Commit

Permalink
Added redis cache publisher schema for azure event grid. (Azure#8486)
Browse files Browse the repository at this point in the history
* Added redis cache Event Schema to Event Grid DP Repo

* removed commented section
  • Loading branch information
abebts2000 authored and tasharm-0412 committed Mar 4, 2020
1 parent a83b99f commit e544dd0
Show file tree
Hide file tree
Showing 2 changed files with 89 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
{
"swagger": "2.0",
"info": {
"version": "2018-01-01",
"title": "Schema of Redis Cache events published to Azure Event Grid",
"description": "Describes the schema of the Redis Cache events published to Azure Event Grid. This corresponds to the Data property of an EventGridEvent."
},
"paths": {},
"definitions": {
"RedisPatchingCompletedEventData": {
"description": "Schema of the Data property of an EventGridEvent for an Microsoft.Cache.PatchingCompleted event.",
"type": "object",
"properties": {
"timestamp": {
"description": "The time at which the event occurred.",
"format": "date-time",
"type": "string"
},
"name": {
"description": "The name of this event.",
"type": "string"
},
"status": {
"description": "The status of this event. Failed or succeeded ",
"type": "string"
}
}
},
"RedisScalingCompletedEventData": {
"description": "Schema of the Data property of an EventGridEvent for an Microsoft.Cache.ScalingCompleted event.",
"type": "object",
"properties": {
"timestamp": {
"description": "The time at which the event occurred.",
"format": "date-time",
"type": "string"
},
"name": {
"description": "The name of this event.",
"type": "string"
},
"status": {
"description": "The status of this event. Failed or succeeded ",
"type": "string"
}
}
},
"RedisExportRDBCompletedEventData": {
"description": "Schema of the Data property of an EventGridEvent for an Microsoft.Cache.ExportRDBCompleted event.",
"type": "object",
"properties": {
"timestamp": {
"description": "The time at which the event occurred.",
"format": "date-time",
"type": "string"
},
"name": {
"description": "The name of this event.",
"type": "string"
},
"status": {
"description": "The status of this event. Failed or succeeded ",
"type": "string"
}
}
},
"RedisImportRDBCompletedEventData": {
"description": "Schema of the Data property of an EventGridEvent for an Microsoft.Cache.ImportRDBCompleted event.",
"type": "object",
"properties": {
"timestamp": {
"description": "The time at which the event occurred.",
"format": "date-time",
"type": "string"
},
"name": {
"description": "The name of this event.",
"type": "string"
},
"status": {
"description": "The status of this event. Failed or succeeded ",
"type": "string"
}
}
}
}
}
2 changes: 2 additions & 0 deletions specification/eventgrid/data-plane/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ input-file:
- Microsoft.SignalRService/stable/2018-01-01/SignalRService.json
- Microsoft.KeyVault/stable/2018-01-01/KeyVault.json
- Microsoft.MachineLearningServices/stable/2018-01-01/MachineLearningServices.json
- Microsoft.Cache/stable/2018-01-01/RedisCache.json
```

---
Expand Down Expand Up @@ -137,6 +138,7 @@ input-file:
- $(this-folder)/Microsoft.SignalRService/stable/2018-01-01/SignalRService.json
- $(this-folder)/Microsoft.KeyVault/stable/2018-01-01/KeyVault.json
- $(this-folder)/Microsoft.MachineLearningServices/stable/2018-01-01/MachineLearningServices.json
- $(this-folder)/Microsoft.Cache/stable/2018-01-01/RedisCache.json
```

Expand Down

0 comments on commit e544dd0

Please sign in to comment.