listInferenceEvents method
Lists all inference events that have been found for the specified inference scheduler.
May throw AccessDeniedException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter inferenceSchedulerName :
The name of the inference scheduler for the inference events listed.
Parameter intervalEndTime :
Returns all the inference events with an end start time equal to or
greater than less than the end time given.
Parameter intervalStartTime :
Lookout for Equipment will return all the inference events with an end
time equal to or greater than the start time given.
Parameter maxResults :
Specifies the maximum number of inference events to list.
Parameter nextToken :
An opaque pagination token indicating where to continue the listing of
inference events.
Implementation
Future<ListInferenceEventsResponse> listInferenceEvents({
required String inferenceSchedulerName,
required DateTime intervalEndTime,
required DateTime intervalStartTime,
int? maxResults,
String? nextToken,
}) async {
_s.validateNumRange(
'maxResults',
maxResults,
1,
500,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.0',
'X-Amz-Target': 'AWSLookoutEquipmentFrontendService.ListInferenceEvents'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'InferenceSchedulerName': inferenceSchedulerName,
'IntervalEndTime': unixTimestampToJson(intervalEndTime),
'IntervalStartTime': unixTimestampToJson(intervalStartTime),
if (maxResults != null) 'MaxResults': maxResults,
if (nextToken != null) 'NextToken': nextToken,
},
);
return ListInferenceEventsResponse.fromJson(jsonResponse.body);
}