create_monitor
async
¶
create_monitor(
monitor_name: Name,
resource_arn: Arn,
*,
config_overrides: Optional[AsyncforecastClientConfig] = None,
tags: Optional[Tags] = None,
) -> CreateMonitorResponse
Creates a predictor monitor resource for an existing auto predictor. Predictor monitoring allows you to see how your predictor's performance changes over time. For more information, see Predictor Monitoring.
Parameters:
-
monitor_name(Name) –The name of the monitor resource.
-
resource_arn(Arn) –The Amazon Resource Name (ARN) of the predictor to monitor.
-
tags(Optional[Tags], default:None) –A list of tags to apply to the monitor resource.
Raises:
-
InvalidInputException–We can't process the request because it includes an invalid value or a value that exceeds the valid range.
-
LimitExceededException–The limit on the number of resources per account has been exceeded.
-
ResourceAlreadyExistsException–There is already a resource with this name. Try again with a different name.
-
ResourceInUseException–The specified resource is in use.
-
ResourceNotFoundException–We can't find a resource with that Amazon Resource Name (ARN). Check the ARN and try again.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_forecast/_services/async_forecast.py
1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 | |