From dc329abd98df6311c6b16dc815ca55f709b9157d Mon Sep 17 00:00:00 2001 From: Sergey Kuryanov Date: Tue, 10 Jul 2018 20:06:12 +0300 Subject: [PATCH] Fix assertion failures by removing unused keys. --- librato-iOS/Metrics/LibratoGaugeMetric.m | 4 +--- librato-iOS/Metrics/LibratoMetric.m | 3 +-- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/librato-iOS/Metrics/LibratoGaugeMetric.m b/librato-iOS/Metrics/LibratoGaugeMetric.m index 16ee6df..5de2cbc 100644 --- a/librato-iOS/Metrics/LibratoGaugeMetric.m +++ b/librato-iOS/Metrics/LibratoGaugeMetric.m @@ -71,9 +71,7 @@ + (NSDictionary *)JSONKeyPathsByPropertyKey @"sum": sumKey, @"min": minKey, @"max": maxKey, - @"squares": squaresKey, - @"type": NSNull.null, - LibratoMetricValueKey: NSNull.null + @"squares": squaresKey }; } diff --git a/librato-iOS/Metrics/LibratoMetric.m b/librato-iOS/Metrics/LibratoMetric.m index ed7b44a..e7570d0 100644 --- a/librato-iOS/Metrics/LibratoMetric.m +++ b/librato-iOS/Metrics/LibratoMetric.m @@ -61,8 +61,7 @@ + (NSDictionary *)JSONKeyPathsByPropertyKey @"name": LibratoMetricNameKey, @"value": LibratoMetricValueKey, @"measureTime": LibratoMetricMeasureTimeKey, - @"source": LibratoMetricSourceKey, - @"type": NSNull.null + @"source": LibratoMetricSourceKey }; }