Smaws_Client_CloudWatch.GetMetricWidgetImageYou can use the GetMetricWidgetImage API to retrieve a snapshot graph of one or more Amazon CloudWatch metrics as a bitmap image. You can then embed this image into your services and products, such as wiki pages, reports, and documents. You could also retrieve images regularly, such as every minute, and create your own custom live dashboard.
The graph you retrieve can include all CloudWatch metric graph features, including metric math and horizontal and vertical annotations.
There is a limit of 20 transactions per second for this API. Each GetMetricWidgetImage action has the following limits:
val error_to_string : [ Smaws_Lib.Protocols.AwsQuery.error ] -> stringval request :
'http_type Smaws_Lib.Context.t ->
Types.get_metric_widget_image_input ->
(Types.get_metric_widget_image_output,
[> Smaws_Lib.Protocols.AwsQuery.error ])
Stdlib.resultval request_with_metadata :
'http_type Smaws_Lib.Context.t ->
Types.get_metric_widget_image_input ->
(Types.get_metric_widget_image_output Smaws_Lib.Response.t,
[> Smaws_Lib.Protocols.AwsQuery.error ] * Smaws_Lib.Response.metadata)
Stdlib.result