From 068d2a209497ff4642c00738a592b97ec6f5da6a Mon Sep 17 00:00:00 2001 From: Jacob Rothstein Date: Tue, 1 Dec 2020 14:49:11 -0800 Subject: [PATCH] soft floats on potentially-missing stats --- lib/ex_aws/cloudwatch/parsers.ex | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/ex_aws/cloudwatch/parsers.ex b/lib/ex_aws/cloudwatch/parsers.ex index 5be8d2f..7b193e7 100644 --- a/lib/ex_aws/cloudwatch/parsers.ex +++ b/lib/ex_aws/cloudwatch/parsers.ex @@ -161,13 +161,13 @@ if Code.ensure_loaded?(SweetXml) do defp metric_statistics_description do [ ~x"./GetMetricStatisticsResult/Datapoints/member"l, - average: ~x"./Average/text()"f, + average: ~x"./Average/text()"F, # TODO probably fix this extended_statistics: ~x"./ExtendedStatistics/text()"m, - maximum: ~x"./Maximum/text()"f, - minimum: ~x"./Minimum/text()"f, - sample_count: ~x"./SampleCount/text()"f, - sum: ~x"./Sum/text()"f, + maximum: ~x"./Maximum/text()"F, + minimum: ~x"./Minimum/text()"F, + sample_count: ~x"./SampleCount/text()"F, + sum: ~x"./Sum/text()"F, timestamp: ~x"./Timestamp/text()"s, unit: ~x"./Unit/text()"s ]