describeAlarmModel method
Retrieves information about an alarm model. If you don't specify a value
for the alarmModelVersion parameter, the latest version is
returned.
May throw InternalFailureException.
May throw InvalidRequestException.
May throw ResourceNotFoundException.
May throw ServiceUnavailableException.
May throw ThrottlingException.
Parameter alarmModelName :
The name of the alarm model.
Parameter alarmModelVersion :
The version of the alarm model.
Implementation
Future<DescribeAlarmModelResponse> describeAlarmModel({
required String alarmModelName,
String? alarmModelVersion,
}) async {
final $query = <String, List<String>>{
if (alarmModelVersion != null) 'version': [alarmModelVersion],
};
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri: '/alarm-models/${Uri.encodeComponent(alarmModelName)}',
queryParams: $query,
exceptionFnMap: _exceptionFns,
);
return DescribeAlarmModelResponse.fromJson(response);
}