last_fill(set[])

This function is an alias to fill, with the value parameter set to the metric’s last recorded value displayed within the viewable graph.

last_fill(s("AWS.ELB.HTTPCode_Backend_5XX", {"name": "prod.web*"}, {period: "60"}))

In order for last_fill() to work, the metric must have its period attribute set, or you must supply period to the series function.

Example:

In the graph below, the metric has many streams which report intermittently:

composite-last-fill-gaps

Here is the same metric with last_fill() applied:

last_fill(s("json.errors.count",{"name": "prod.web*"}, {period: "300"}))

composite-last-fill

The last recorded value within the viewable graph is repeated for the remaining intervals. This function is not recommended to be used with alerts as the last value only applies to the viewable graph, and will not pull the last value of historical data.