이 문서에서는 Azure Cache for Redis 이벤트에 대한 속성과 스키마를 제공합니다. 이벤트 스키마에 대한 소개는 Azure Event Grid 이벤트 스키마를 참조하세요.
중요합니다
Azure Cache for Redis는 모든 SKU에 대한 사용 중지 타임라인을 발표했습니다. 가능한 한 빨리 기존 Azure Cache for Redis 인스턴스를 Azure Managed Redis로 이동하는 것이 좋습니다.
마이그레이션 지침:
사용 중지에 대한 자세한 내용은 다음을 참조하세요.
사용할 수 있는 이벤트 유형
이러한 이벤트는 클라이언트가 Azure Cache for Redis REST API를 호출하여 내보내거나 가져오거나 스케일링할 때 트리거됩니다. 패치 이벤트는 Redis 업데이트에 의해 트리거됩니다.
| 이벤트 이름 | Description |
|---|---|
| Microsoft.Cache.ExportRDBCompleted | 캐시 데이터를 내보낼 때 트리거됩니다. |
| Microsoft.Cache.ImportRDBCompleted | 캐시 데이터를 가져올 때 트리거됩니다. |
| Microsoft.Cache.패칭완료 | 패치가 완료될 때 트리거됩니다. |
| Microsoft.Cache.ScalingCompleted | 크기 조정이 완료되면 트리거됩니다. |
예제 이벤트
이벤트가 트리거될 때 Event Grid 서비스는 해당 이벤트에 대한 데이터를 구독 엔드포인트로 보냅니다. 이 섹션에는 각 Azure Cache for Redis 이벤트에 대해 해당 데이터가 어떻게 표시되는지에 대한 예제가 포함되어 있습니다.
Microsoft.Cache.PatchingCompleted 이벤트
[{
"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 이벤트
[{
"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 이벤트
[{
"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"
}]
이벤트 속성
이벤트에는 다음과 같은 최상위 데이터가 있습니다.
| 재산 | 유형 | Description |
|---|---|---|
source |
문자열 | 이벤트 원본에 대한 전체 리소스 경로입니다. 이 필드는 쓸 수 없습니다. Event Grid는 이 값을 제공합니다. |
subject |
문자열 | 게시자가 정의한 이벤트 주제의 경로입니다. |
type |
문자열 | 이 이벤트 원본에 대해 등록된 이벤트 유형 중 하나입니다. |
time |
문자열 | 공급자의 UTC 시간을 기준으로 이벤트가 생성되는 시간입니다. |
id |
문자열 | 이벤트의 고유 식별자입니다. |
data |
객체 | Azure Cache for Redis 이벤트 데이터입니다. |
specversion |
문자열 | CloudEvents 스키마 사양 버전입니다. |
데이터 개체에는 다음과 같은 속성이 있습니다:
| 재산 | 유형 | Description |
|---|---|---|
timestamp |
문자열 | 이벤트가 발생한 시간입니다. |
name |
문자열 | 이벤트의 이름입니다. |
status |
문자열 | 이벤트의 상태입니다. 실패했거나 성공했습니다. |
Quickstarts
Azure Cache for Redis 이벤트를 사용하려면 다음 빠른 시작 문서를 참조하세요.
| 이 도구를 사용하려는 경우: | 이 문서를 참조하세요. |
|---|---|
| Azure 포털 | 빠른 시작: Azure Portal을 사용하여 Azure Cache for Redis 이벤트를 웹 엔드포인트로 라우팅 |
| PowerShell | 빠른 시작: PowerShell을 사용하여 Azure Cache for Redis 이벤트를 웹 엔드포인트로 라우팅 |
| Azure 커맨드 라인 인터페이스 (CLI) | 빠른 시작: Azure CLI를 사용하여 Azure Cache for Redis 이벤트를 웹 엔드포인트로 라우팅 |
다음 단계
- Azure Event Grid에 대한 소개는 Event Grid란?을 참조하세요.
- Azure Event Grid 구독을 만드는 방법에 대한 자세한 내용은 Event Grid 구독 스키마를 참조하세요.