How can the user achieve this?
Send the data using the put-metric-data command with the aggregate-values parameter
Send the data using the put-metric-data command with the average-values parameter
Send the data using the put-metric-data command with the statistic-values parameter
Send the data using the put-metric-data command with the aggregate ג€”data parameter
Explanations:
Theput-metric-datacommand does not have anaggregate-valuesparameter. Instead, it allows sending metrics as single data points or aggregates via specific options but does not directly accept an aggregate-values parameter.
Theput-metric-datacommand allows sending the average as a statistic but does not have a parameter calledaverage-values. The average can be calculated from the raw data points but must be sent using the correct parameter.
Theput-metric-datacommand can accept thestatistic-valuesparameter, which allows sending multiple statistics (like sum, min, max, count) in one request. This matches the requirement to send the aggregate values calculated from the data.
Similar to option A, there is noaggregate-dataparameter in theput-metric-datacommand. The command allows for sending statistics but requires the use of valid existing parameters.