Write a program to calculate the moving average of a metric with a sliding window for Datadog metrics.
Implement moving_average(values, window_size), where values is a non-empty list of numeric metric values and window_size is a positive integer. Return a list containing the average of every complete contiguous window, from left to right.
def moving_average(values, window_size):