Improve StackdriverWriter code

Add additional logic to handle cases when a MetricDescriptor is already defined
on the server, fix an NPE in related code, and add additional tests to ensure
that TimeSeries created from native MetricPoints are well-formed.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=130555708
This commit is contained in:
shikhman 2016-08-17 13:24:18 -07:00 committed by Ben McIlwain
parent 9e810c4b36
commit 7a041d066f
2 changed files with 107 additions and 67 deletions

View file

@ -10,7 +10,7 @@ java_library(
srcs = glob(["*.java"]),
deps = [
"//google/monitoring:monitoring_java_lib",
"//java/com/google/api/client/json",
"//java/com/google/api/client/googleapis/json",
"//java/com/google/common/annotations",
"//java/com/google/common/base",
"//java/com/google/common/collect",