Starts a previously stopped monitoring schedule.
By default, when you successfully create a new schedule, the status of a monitoring schedule is scheduled.
Parameters:
Raises:
Source code in docs_src/capo_sagemaker/_services/sage_maker.py
| def start_monitoring_schedule(
self,
*,
config_overrides: Optional[SageMakerClientConfig] = None,
monitoring_schedule_name: Optional[
"capo_sagemaker.types.monitoring_schedule_name.MonitoringScheduleName"
] = None,
) -> None:
"""<p>Starts a previously stopped monitoring schedule.</p> <note> <p>By default, when you successfully create a new schedule, the status of a monitoring schedule is <code>scheduled</code>.</p> </note>
Args:
monitoring_schedule_name: <p>The name of the schedule to start.</p>
Raises:
capo_sagemaker.errors.resource_not_found.ResourceNotFound: <p>Resource being access is not found.</p>
capo_sagemaker.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_sagemaker.types.start_monitoring_schedule_request.StartMonitoringScheduleRequest]",
) -> OperationResponse[None]:
import capo_sagemaker._operations.sage_maker.start_monitoring_schedule
output, http_response = (
capo_sagemaker._operations.sage_maker.start_monitoring_schedule.start_monitoring_schedule(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("StartMonitoringSchedule")
)
input_: capo_sagemaker.types.start_monitoring_schedule_request.StartMonitoringScheduleRequest = {}
if monitoring_schedule_name is not None:
input_["monitoring_schedule_name"] = monitoring_schedule_name
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|