Skip to main content

monitoring_schedules

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

Overview

Namemonitoring_schedules
TypeResource
Idaws.sagemaker.monitoring_schedules

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
creation_timestring (date-time)The time at which the monitoring job was created.
endpoint_namestringThe name of the endpoint for the monitoring job. (pattern: <code>[a-zA-Z0-9](-*[a-zA-Z0-9]){0,62}</code>)
failure_reasonstringA string, up to one KB in size, that contains the reason a monitoring job failed, if it failed.
last_modified_timestring (date-time)The time at which the monitoring job was last modified.
last_monitoring_execution_summaryobjectDescribes metadata on the last execution to run, if there was one.
monitoring_schedule_arnstringThe Amazon Resource Name (ARN) of the monitoring schedule. (pattern: <code>.*</code>)
monitoring_schedule_configobjectThe configuration object that specifies the monitoring schedule and defines the monitoring job.
monitoring_schedule_namestringName of the monitoring schedule. (pattern: <code>[a-zA-Z0-9](-*[a-zA-Z0-9]){0,62}</code>)
monitoring_schedule_statusstringThe status of an monitoring job. (Pending, Failed, Scheduled, Stopped)
monitoring_typestringThe type of the monitoring job that this schedule runs. This is one of the following values. DATA_QUALITY - The schedule is for a data quality monitoring job. MODEL_QUALITY - The schedule is for a model quality monitoring job. MODEL_BIAS - The schedule is for a bias monitoring job. MODEL_EXPLAINABILITY - The schedule is for an explainability monitoring job. (DataQuality, ModelQuality, ModelBias, ModelExplainability)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_monitoring_scheduleselectregionDescribes the schedule for a monitoring job.
list_monitoring_schedulesselectregionReturns list of all monitoring schedules.
create_monitoring_scheduleinsertregion, MonitoringScheduleName, MonitoringScheduleConfigCreates a schedule that regularly starts Amazon SageMaker AI Processing Jobs to monitor the data captured for an Amazon SageMaker AI Endpoint.
update_monitoring_scheduleupdateregion, MonitoringScheduleName, MonitoringScheduleConfigUpdates a previously created schedule.
delete_monitoring_scheduledeleteregionDeletes a monitoring schedule. Also stops the schedule had not already been stopped. This does not delete the job execution history of the monitoring schedule.
start_monitoring_scheduleexecregion, MonitoringScheduleNameStarts a previously stopped monitoring schedule. By default, when you successfully create a new schedule, the status of a monitoring schedule is scheduled.
stop_monitoring_scheduleexecregion, MonitoringScheduleNameStops a previously started monitoring schedule.

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 the schedule for a monitoring job.

SELECT
creation_time,
endpoint_name,
failure_reason,
last_modified_time,
last_monitoring_execution_summary,
monitoring_schedule_arn,
monitoring_schedule_config,
monitoring_schedule_name,
monitoring_schedule_status,
monitoring_type
FROM aws.sagemaker.monitoring_schedules
WHERE region = '{{ region }}' -- required
;

INSERT examples

Creates a schedule that regularly starts Amazon SageMaker AI Processing Jobs to monitor the data captured for an Amazon SageMaker AI Endpoint.

INSERT INTO aws.sagemaker.monitoring_schedules (
MonitoringScheduleName,
MonitoringScheduleConfig,
Tags,
region
)
SELECT
'{{ MonitoringScheduleName }}' /* required */,
'{{ MonitoringScheduleConfig }}' /* required */,
'{{ Tags }}',
'{{ region }}'
RETURNING
monitoring_schedule_arn
;

UPDATE examples

Updates a previously created schedule.

UPDATE aws.sagemaker.monitoring_schedules
SET
MonitoringScheduleName = '{{ MonitoringScheduleName }}',
MonitoringScheduleConfig = '{{ MonitoringScheduleConfig }}'
WHERE
region = '{{ region }}' --required
AND MonitoringScheduleName = '{{ MonitoringScheduleName }}' --required
AND MonitoringScheduleConfig = '{{ MonitoringScheduleConfig }}' --required
RETURNING
monitoring_schedule_arn;

DELETE examples

Deletes a monitoring schedule. Also stops the schedule had not already been stopped. This does not delete the job execution history of the monitoring schedule.

DELETE FROM aws.sagemaker.monitoring_schedules
WHERE region = '{{ region }}' --required
;

Lifecycle Methods

Starts a previously stopped monitoring schedule. By default, when you successfully create a new schedule, the status of a monitoring schedule is scheduled.

EXEC aws.sagemaker.monitoring_schedules.start_monitoring_schedule
@region='{{ region }}' --required
@@json=
'{
"MonitoringScheduleName": "{{ MonitoringScheduleName }}"
}'
;