Skip to main content

monitors

Creates, updates, deletes, gets or lists a monitors resource.

Overview

Namemonitors
TypeResource
Idaws.forecast.monitors

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
baselineobjectMetrics you can use as a baseline for comparison purposes. Use these values you interpret monitoring results for an auto predictor.
creation_timestring (date-time)The timestamp for when the monitor resource was created.
estimated_evaluation_time_remaining_in_minutesinteger (int64)The estimated number of minutes remaining before the monitor resource finishes its current evaluation.
last_evaluation_statestringThe state of the monitor's latest evaluation.
last_evaluation_timestring (date-time)The timestamp of the latest evaluation completed by the monitor.
last_modification_timestring (date-time)The timestamp of the latest modification to the monitor.
messagestringAn error message, if any, for the monitor.
monitor_arnstringThe Amazon Resource Name (ARN) of the monitor resource described. (pattern: <code>arn:([a-z\d-]+):forecast:.:.:.+</code>)
monitor_namestringThe name of the monitor. (pattern: <code>^[a-zA-Z][a-zA-Z0-9_]*</code>)
resource_arnstringThe Amazon Resource Name (ARN) of the auto predictor being monitored. (pattern: <code>arn:([a-z\d-]+):forecast:.:.:.+</code>)
statusstringThe status of the monitor resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_monitorselectregionDescribes a monitor resource. In addition to listing the properties provided in the CreateMonitor request, this operation lists the following properties: Baseline CreationTime LastEvaluationTime LastEvaluationState LastModificationTime Message Status
list_monitorsselectregionReturns a list of monitors created with the CreateMonitor operation and CreateAutoPredictor operation. For each monitor resource, this operation returns of a summary of its properties, including its Amazon Resource Name (ARN). You can retrieve a complete set of properties of a monitor resource by specify the monitor's ARN in the DescribeMonitor operation.
create_monitorinsertregion, MonitorName, ResourceArnCreates a predictor monitor resource for an existing auto predictor. Predictor monitoring allows you to see how your predictor's performance changes over time. For more information, see Predictor Monitoring.
delete_monitordeleteregionDeletes a monitor resource. You can only delete a monitor resource with a status of ACTIVE, ACTIVE_STOPPED, CREATE_FAILED, or CREATE_STOPPED.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Describes a monitor resource. In addition to listing the properties provided in the CreateMonitor request, this operation lists the following properties: Baseline CreationTime LastEvaluationTime LastEvaluationState LastModificationTime Message Status

SELECT
baseline,
creation_time,
estimated_evaluation_time_remaining_in_minutes,
last_evaluation_state,
last_evaluation_time,
last_modification_time,
message,
monitor_arn,
monitor_name,
resource_arn,
status
FROM aws.forecast.monitors
WHERE region = '{{ region }}' -- required
;

INSERT examples

Creates a predictor monitor resource for an existing auto predictor. Predictor monitoring allows you to see how your predictor's performance changes over time. For more information, see Predictor Monitoring.

INSERT INTO aws.forecast.monitors (
MonitorName,
ResourceArn,
Tags,
region
)
SELECT
'{{ MonitorName }}' /* required */,
'{{ ResourceArn }}' /* required */,
'{{ Tags }}',
'{{ region }}'
RETURNING
monitor_arn
;

DELETE examples

Deletes a monitor resource. You can only delete a monitor resource with a status of ACTIVE, ACTIVE_STOPPED, CREATE_FAILED, or CREATE_STOPPED.

DELETE FROM aws.forecast.monitors
WHERE region = '{{ region }}' --required
;