Skip to content
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

[Event Grid] [AppConfiguration] Add snapshot events support #25393

Merged
merged 9 commits into from
Sep 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,58 @@
"type": "string"
}
}
},
"AppConfigurationSnapshotEventData": {
"description": "Schema of common properties of snapshot events",
"type": "object",
"properties": {
"name": {
"description": "The name of the snapshot.",
"type": "string"
},
"etag": {
"description": "The etag representing the new state of the snapshot.",
"type": "string"
},
"syncToken": {
"description": "The sync token representing the server state after the event.",
"type": "string"
}
}
},
"AppConfigurationSnapshotCreatedEventData": {
"description": "Schema of the Data property of an EventGridEvent for a Microsoft.AppConfiguration.SnapshotCreated event.",
"type": "object",
"allOf": [
{
"$ref": "#/definitions/AppConfigurationSnapshotEventData"
}
],
"x-ms-examples": {
"snapshotCreatedCloudEventsSchema": {
"$ref": "./examples/cloud-events-schema/snapshot_created.json"
},
"snapshotCreatedEventGridSchema": {
"$ref": "./examples/event-grid-schema/snapshot_created.json"
}
}
},
"AppConfigurationSnapshotModifiedEventData": {
"description": "Schema of the Data property of an EventGridEvent for a Microsoft.AppConfiguration.SnapshotModified event.",
"type": "object",
"allOf": [
{
"$ref": "#/definitions/AppConfigurationSnapshotEventData"
}
],
"x-ms-examples": {
"snapshotModifiedCloudEventsSchema": {
"$ref": "./examples/cloud-events-schema/snapshot_modified.json"
},
"snapshotModifiedEventGridSchema": {
"$ref": "./examples/event-grid-schema/snapshot_modified.json"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"source": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/microsoft.appconfiguration/configurationstores/contoso",
"subject": "https://contoso.azconfig.io/kvsnapshots/Foo",
"type": "Microsoft.AppConfiguration.SnapshotCreated",
"time": "2023-09-02T20:05:03.0000000Z",
"id": "84e17ea4-66db-4b54-8050-df8f7763f87b",
"data": {
"name": "Foo",
"etag": "FnUExLaj2moIi4tJX9AXn9sakm0",
"syncToken": "zAJw6V16=Njo1IzUxNjQ2NzM=;sn=5164673"
},
"specversion": "1.0"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"source": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/microsoft.appconfiguration/configurationstores/contoso",
"subject": "https://contoso.azconfig.io/snapshots/Foo",
"type": "Microsoft.AppConfiguration.SnapshotModified",
"time": "2023-09-03T20:05:03.0000000Z",
"id": "84e17ea4-66db-4b54-8050-df8f7763f87b",
"data": {
"name": "Foo",
"etag": "FnUExLaj2moIi4tJX9AXn9sakm0",
"syncToken": "zAJw6V16=Njo1IzUxNjQ2NzM=;sn=5164673"
},
"specversion": "1.0"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"id": "84e17ea4-66db-4b54-8050-df8f7763f87b",
"topic": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/microsoft.appconfiguration/configurationstores/contoso",
"subject": "https://contoso.azconfig.io/snapshots/Foo",
"data": {
"Name": "Foo",
"etag": "FnUExLaj2moIi4tJX9AXn9sakm0",
"syncToken": "zAJw6V16=Njo1IzUxNjQ2NzM=;sn=5164673"
},
"eventType": "Microsoft.AppConfiguration.SnapshotCreated",
"eventTime": "2023-09-02T20:05:03Z",
"dataVersion": "1",
"metadataVersion": "1"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"id": "84e17ea4-66db-4b54-8050-df8f7763f87b",
"topic": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/microsoft.appconfiguration/configurationstores/contoso",
"subject": "https://contoso.azconfig.io/snapshots/Foo",
"data": {
"name": "Foo",
"label": "FizzBuzz",
"etag": "FnUExLaj2moIi4tJX9AXn9sakm0",
"syncToken": "zAJw6V16=Njo1IzUxNjQ2NzM=;sn=5164673"
},
"eventType": "Microsoft.AppConfiguration.SnapshotModified",
"eventTime": "2023-09-03T20:05:03Z",
"dataVersion": "1",
"metadataVersion": "1"
}