startMonitoringSchedule method
Starts a previously stopped monitoring schedule.
May throw ResourceNotFound.
Parameter monitoringScheduleName
:
The name of the schedule to start.
Implementation
Future<void> startMonitoringSchedule({
required String monitoringScheduleName,
}) async {
ArgumentError.checkNotNull(
monitoringScheduleName, 'monitoringScheduleName');
_s.validateStringLength(
'monitoringScheduleName',
monitoringScheduleName,
1,
63,
isRequired: true,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'SageMaker.StartMonitoringSchedule'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'MonitoringScheduleName': monitoringScheduleName,
},
);
}