예약된 쿼리 알림 메시지 - Amazon Timestream

Amazon Timestream for LiveAnalytics와 유사한 기능을 원하는 경우 Amazon Timestream for InfluxDB를 고려해 보세요. 간소화된 데이터 수집과 실시간 분석을 위한 10밀리초 미만의 쿼리 응답 시간을 제공합니다. 여기에서 자세히 알아보세요.

예약된 쿼리 알림 메시지

이 섹션에서는 예약된 쿼리의 상태를 생성, 삭제, 실행 또는 업데이트할 때 Timestream for LiveAnalytics에서 보내는 메시지에 대해 설명합니다.

알림 메시지 이름 구조 설명

CreatingNotificationMessage

CreatingNotificationMessage { String arn; NotificationType type; }

이 알림 메시지는 CreateScheduledQuery에 대한 응답을 보내기 전에 전송됩니다. 이 알림을 전송한 후 예약된 쿼리가 활성화됩니다.

arn - 생성 중인 예약된 쿼리의 ARN입니다.

type - SCHEDULED_QUERY_CREATING

UpdateNotificationMessage

UpdateNotificationMessage { String arn; NotificationType type; QueryState state; }

이 알림 메시지는 예약된 쿼리가 업데이트될 때 전송됩니다. Timestream for LiveAnalytics는 다음과 같이 복구할 수 없는 오류가 발생할 경우 예약된 쿼리를 자동으로 비활성화할 수 있습니다.

  • AssumeRole 실패

  • 고객 관리형 KMS 키가 지정된 경우 KMS와 통신할 때 발생한 모든 4xx 오류

  • 예약된 쿼리 실행 중 발생한 모든 4xx 오류

  • 쿼리 결과를 수집하는 동안 발생한 모든 4xx 오류

arn - 업데이트 중인 예약된 쿼리의 ARN입니다.

type - SCHEDULED_QUERY_UPDATE

상태 - 활성화됨 또는 비활성화됨

DeleteNotificationMessage

DeletionNotificationMessage { String arn; NotificationType type; }

이 알림 메시지는 예약된 쿼리가 삭제되면 전송됩니다.

arn - 생성 중인 예약된 쿼리의 ARN입니다.

type - SCHEDULED_QUERY_DELETED

SuccessNotificationMessage

SuccessNotificationMessage { NotificationType type; String arn; Date nextInvocationEpochSecond; ScheduledQueryRunSummary runSummary; } ScheduledQueryRunSummary { Date invocationTime; Date triggerTime; String runStatus; ExecutionStats executionstats; ErrorReportLocation errorReportLocation; String failureReason; } ExecutionStats { Long bytesMetered; Long dataWrites; Long queryResultRows; Long recordsIngested; Long executionTimeInMillis; } ErrorReportLocation { S3ReportLocation s3ReportLocation; } S3ReportLocation { String bucketName; String objectKey; }

이 알림 메시지는 예약된 쿼리가 실행되고 결과가 성공적으로 수집되면 전송됩니다.

ARN - 삭제 중인 예약된 쿼리의 ARN입니다.

NotificationType - AUTO_TRIGGER_SUCCESS 또는 MANUAL_TRIGGER_SUCCESS

nextInvocationEpochSecond - 다음에 Timestream for LiveAnalytics에서 예약된 쿼리를 실행합니다.

runSummary - 예약된 쿼리 실행에 대한 정보입니다.

FailureNotificationMessage

FailureNotificationMessage { NotificationType type; String arn; ScheduledQueryRunSummary runSummary; } ScheduledQueryRunSummary { Date invocationTime; Date triggerTime; String runStatus; ExecutionStats executionstats; ErrorReportLocation errorReportLocation; String failureReason; } ExecutionStats { Long bytesMetered; Long dataWrites; Long queryResultRows; Long recordsIngested; Long executionTimeInMillis; } ErrorReportLocation { S3ReportLocation s3ReportLocation; } S3ReportLocation { String bucketName; String objectKey; }

이 알림 메시지는 예약된 쿼리 실행 중 실패가 발생하거나 쿼리 결과를 수집할 때 전송됩니다.

arn - 실행 중인 예약된 쿼리의 ARN입니다.

type - AUTO_TRIGGER_FAILURE 또는 MANUAL_TRIGGER_FAILURE

runSummary - 예약된 쿼리 실행에 대한 정보입니다.