Module Values.GetMetricWidgetImageOutputSource

You 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: As many as 100 metrics in the graph. Up to 100 KB uncompressed payload.

Sourcetype getMetricWidgetImageResult = {
  1. metricWidgetImage : MetricWidgetImage.t option;
    (*

    The image of the graph, in the output format specified. The output is base64-encoded.

    *)
}
Sourceand responseMetaData = unit
Sourceand t = {
  1. getMetricWidgetImageResult : getMetricWidgetImageResult;
  2. responseMetaData : responseMetaData;
}
Sourcetype error = [
  1. | `Unknown_operation_error of string * string option
]
Sourceval context_ : string
Sourceval make : ?metricWidgetImage:??? -> unit -> t
Sourceval error_of_json : 'a -> Yojson.Safe.t -> [> `Unknown_operation_error of 'a * string option ]
Sourceval error_of_xml : 'a -> Awso.Xml.t -> [> `Unknown_operation_error of 'a * string option ]
Sourceval error_to_json : error -> Yojson.Safe.t
Sourceval of_header_and_body : ('a * MetricWidgetImage.t) -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Structure of (string * [> `Blob of MetricWidgetImage.t ]) list ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t