Movatterモバイル変換


[0]ホーム

URL:


Skip to main content

This browser is no longer supported.

Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.

Download Microsoft EdgeMore info about Internet Explorer and Microsoft Edge
Table of contentsExit editor mode

Azure Cache for Redis as an Event Grid source

Feedback

In this article

This article provides the properties and schema for Azure Cache for Redis events. For an introduction to event schemas, seeAzure Event Grid event schema.

Available event types

These events are triggered when a client exports, imports, or scales by calling Azure Cache for Redis REST APIs. Patching event is triggered by Redis update.

Event nameDescription
Microsoft.Cache.ExportRDBCompletedTriggered when cache data is exported.
Microsoft.Cache.ImportRDBCompletedTriggered when cache data is imported.
Microsoft.Cache.PatchingCompletedTriggered when patching is completed.
Microsoft.Cache.ScalingCompletedTriggered when scaling is completed.

Example event

When an event is triggered, the Event Grid service sends data about that event to subscribing endpoint. This section contains an example of what that data would look like for each Azure Cache for Redis event.

Microsoft.Cache.PatchingCompleted event

[{"id": "9b87886d-21a5-4af5-8e3e-10c4b8dac73b","type": "Microsoft.Cache.PatchingCompleted","source": "/subscriptions/{subscription_id}/resourceGroups/{resource_group_name}/providers/Microsoft.Cache/Redis/{cache_name}","data": {"name": "PatchingCompleted","timestamp": "2020-12-09T21:50:19.9995668+00:00","status": "Succeeded"},"subject": "PatchingCompleted","time": "2020-12-09T21:50:19.9995668+00:00",    "specversion": "1.0"}]

Microsoft.Cache.ImportRDBCompleted event

[{"id": "9b87886d-21a5-4af5-8e3e-10c4b8dac73b","type": "Microsoft.Cache.ImportRDBCompleted","source": "/subscriptions/{subscription_id}/resourceGroups/{resource_group_name}/providers/Microsoft.Cache/Redis/{cache_name}","data": {"name": "ImportRDBCompleted","timestamp": "2020-12-09T21:50:19.9995668+00:00","status": "Succeeded"},"subject": "ImportRDBCompleted","eventTime": "2020-12-09T21:50:19.9995668+00:00","specversion": "1.0"}]

Microsoft.Cache.ExportRDBCompleted event

[{"id": "9b87886d-21a5-4af5-8e3e-10c4b8dac73b","type": "Microsoft.Cache.ExportRDBCompleted","source": "/subscriptions/{subscription_id}/resourceGroups/{resource_group_name}/providers/Microsoft.Cache/Redis/{cache_name}","data": {"name": "ExportRDBCompleted","timestamp": "2020-12-09T21:50:19.9995668+00:00","status": "Succeeded"},"subject": "ExportRDBCompleted","time": "2020-12-09T21:50:19.9995668+00:00","specversion": "1.0"}]

Microsoft.Cache.ScalingCompleted

[{"id": "9b87886d-21a5-4af5-8e3e-10c4b8dac73b","type": "Microsoft.Cache.ScalingCompleted","source": "/subscriptions/{subscription_id}/resourceGroups/{resource_group_name}/providers/Microsoft.Cache/Redis/{cache_name}","data": {"name": "ScalingCompleted","timestamp": "2020-12-09T21:50:19.9995668+00:00","status": "Succeeded"},"subject": "ScalingCompleted","time": "2020-12-09T21:50:19.9995668+00:00","specversion": "1.0"}]

Event properties

An event has the following top-level data:

PropertyTypeDescription
sourcestringFull resource path to the event source. This field isn't writeable. Event Grid provides this value.
subjectstringPublisher-defined path to the event subject.
typestringOne of the registered event types for this event source.
timestringThe time the event is generated based on the provider's UTC time.
idstringUnique identifier for the event.
dataobjectAzure Cache for Redis event data.
specversionstringCloudEvents schema specification version.

The data object has the following properties:

PropertyTypeDescription
timestampstringThe time when the event occurred.
namestringThe name of the event.
statusstringThe status of the event. Failed or succeeded.

Quickstarts

If you want to try Azure Cache for Redis events, see any of these quickstart articles:

If you want to use this tool:See this article:
Azure portalQuickstart: Route Azure Cache for Redis events to web endpoint with the Azure portal
PowerShellQuickstart: Route Azure Cache for Redis events to web endpoint with PowerShell
Azure CLIQuickstart: Route Azure Cache for Redis events to web endpoint with Azure CLI

Next steps


Feedback

Was this page helpful?

YesNoNo

Need help with this topic?

Want to try using Ask Learn to clarify or guide you through this topic?

Suggest a fix?

  • Last updated on

In this article

Was this page helpful?

YesNo
NoNeed help with this topic?

Want to try using Ask Learn to clarify or guide you through this topic?

Suggest a fix?