

For similar capabilities to Amazon Timestream for LiveAnalytics, consider Amazon Timestream for InfluxDB. It offers simplified data ingestion and single-digit millisecond query response times for real-time analytics. Learn more [here](https://docs.aws.amazon.com//timestream/latest/developerguide/timestream-for-influxdb.html).

# Scheduled query notification messages
<a name="scheduledqueries-notification"></a>

This section describes the messages sent by Timestream for LiveAnalytics when creating, deleting, running, or updating the state of a scheduled query. 


| Notification message name | Structure | Description | 
| --- | --- | --- | 
|  CreatingNotificationMessage  |  <pre>CreatingNotificationMessage {<br />    String arn;<br />    NotificationType type;<br />}</pre>  |  This notification message is sent before sending the response for `CreateScheduledQuery`. The scheduled query is enabled after sending this notification.  *arn* - The ARN of the scheduled query that is being created. *type* - SCHEDULED\$1QUERY\$1CREATING  | 
|  UpdateNotificationMessage  |  <pre> UpdateNotificationMessage {<br />    String arn;<br />    NotificationType type;<br />    QueryState state;<br />}</pre>  |  This notification message is sent when a scheduled query is updated. Timestream for LiveAnalytics can disable the scheduled query, automatically, in case non-recoverable error is encountered, such as: [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/timestream/latest/developerguide/scheduledqueries-notification.html) *arn* - The ARN of the scheduled query that is being updated. *type* - SCHEDULED\$1QUERY\$1UPDATE *state* - ENABLED or DISABLED  | 
|  DeleteNotificationMessage  |  <pre>DeletionNotificationMessage {<br />    String arn;<br />    NotificationType type;<br />}</pre>  |  This notification message is sent when a scheduled query has been deleted.  *arn* - The ARN of the scheduled query that is being created. *type* - SCHEDULED\$1QUERY\$1DELETED  | 
|  SuccessNotificationMessage  |  <pre>SuccessNotificationMessage {<br />    NotificationType type;<br />    String arn;<br />    Date nextInvocationEpochSecond;<br />    ScheduledQueryRunSummary runSummary;<br />}<br /><br />ScheduledQueryRunSummary {<br />    Date invocationTime;<br />    Date triggerTime;<br />    String runStatus;<br />    ExecutionStats executionstats;<br />    ErrorReportLocation errorReportLocation;<br />    String failureReason;<br />}<br /><br /><br />ExecutionStats {<br />    Long bytesMetered;<br />    Long dataWrites;<br />    Long queryResultRows;<br />    Long recordsIngested;<br />    Long executionTimeInMillis;<br />}<br /><br /><br />ErrorReportLocation {<br />    S3ReportLocation s3ReportLocation;<br />}<br /><br /><br />S3ReportLocation {<br />    String bucketName;<br />    String objectKey;<br />}</pre>  |  This notification message is sent after the scheduled query is run and the results are successfully ingested.  *ARN* - The ARN of the scheduled query that is being deleted. *NotificationType* - AUTO\$1TRIGGER\$1SUCCESS or MANUAL\$1TRIGGER\$1SUCCESS. *nextInvocationEpochSecond* - The next time Timestream for LiveAnalytics will run the scheduled query. *runSummary* - Information about the scheduled query run.  | 
|  FailureNotificationMessage  |  <pre>FailureNotificationMessage {<br />    NotificationType type;<br />    String arn;<br />    ScheduledQueryRunSummary runSummary;<br />}<br /><br />ScheduledQueryRunSummary {<br />    Date invocationTime;<br />    Date triggerTime;<br />    String runStatus;<br />    ExecutionStats executionstats;<br />    ErrorReportLocation errorReportLocation;<br />    String failureReason;<br />}<br /><br /><br />ExecutionStats {<br />    Long bytesMetered;<br />    Long dataWrites;<br />    Long queryResultRows;<br />    Long recordsIngested;<br />    Long executionTimeInMillis;<br />}<br /><br /><br />ErrorReportLocation {<br />    S3ReportLocation s3ReportLocation;<br />}<br /><br /><br />S3ReportLocation {<br />    String bucketName;<br />    String objectKey;<br />}</pre>  |  This notification message is sent when a failure is encountered during a scheduled query run or when ingesting the query results.  *arn* - The ARN of the scheduled query that is being run. *type* - AUTO\$1TRIGGER\$1FAILURE or MANUAL\$1TRIGGER\$1FAILURE. *runSummary* - Information about the scheduled query run.  | 