Event Grid 소스로서의 Azure Cache for Redis

이 문서에서는 Azure Cache for Redis 이벤트에 대한 속성과 스키마를 제공합니다. 이벤트 스키마에 대한 소개는 Azure Event Grid 이벤트 스키마를 참조하세요.

사용할 수 있는 이벤트 유형

해당 이벤트는 Azure Cache for Redis REST API를 호출하여 클라이언트에서 내보내기, 가져오기 또는 스케일링할 경우 트리거됩니다. 패치 이벤트는 Redis 업데이트에 의해 트리거됩니다.

이벤트 이름 설명
Microsoft.Cache.ExportRDBCompleted 캐시 데이터를 내보낼 때 트리거됩니다.
Microsoft.Cache.ImportRDBCompleted 캐시 데이터를 가져올 때 트리거됩니다.
Microsoft.Cache.PatchingCompleted 패치가 완료될 때 트리거됩니다.
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"
}]

이벤트 속성

이벤트에는 다음과 같은 최상위 데이터가 있습니다.

속성 Type Description
source string 이벤트 원본에 대한 전체 리소스 경로입니다. 이 필드는 쓸 수 없습니다. Event Grid는 이 값을 제공합니다.
subject string 게시자가 정의한 이벤트 주체의 경로입니다.
type string 이 이벤트 원본에 대해 등록된 이벤트 유형 중 하나입니다.
time string 공급자의 UTC 시간을 기준으로 이벤트가 생성되는 시간입니다.
id string 이벤트에 대한 고유 식별자입니다.
data 개체 Azure Cache for Redis 이벤트 데이터입니다.
specversion string CloudEvents 스키마 사양 버전입니다.

데이터 개체의 속성은 다음과 같습니다.

속성 Type Description
timestamp string 이벤트가 발생한 시간입니다.
name string 이벤트의 이름입니다.
status string 이벤트의 상태입니다. 실패 또는 성공.

빠른 시작

Azure Cache for Redis 이벤트를 시도하려면, 빠른 시작 문서를 참조하세요.

사용하려는 도구: 참조 문서:
Azure Portal 빠른 시작: Azure Portal을 사용하여 Azure Cache for Redis 이벤트를 웹 엔드포인트로 라우팅
PowerShell 빠른 시작: PowerShell을 사용하여 Azure Cache for Redis 이벤트를 웹 엔드포인트로 라우팅
Azure CLI 빠른 시작: Azure CLI를 사용하여 Azure Cache for Redis 이벤트를 웹 엔드포인트로 라우팅

다음 단계