describeMonitoringSchedule method
Future<DescribeMonitoringScheduleResponse>
describeMonitoringSchedule({
- required String monitoringScheduleName,
Describes the schedule for a monitoring job.
May throw ResourceNotFound.
Parameter monitoringScheduleName
:
Name of a previously created monitoring schedule.
Implementation
Future<DescribeMonitoringScheduleResponse> describeMonitoringSchedule({
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.DescribeMonitoringSchedule'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'MonitoringScheduleName': monitoringScheduleName,
},
);
return DescribeMonitoringScheduleResponse.fromJson(jsonResponse.body);
}