From 3662cb25d9f10ced7015bcb45020cf6587de1d37 Mon Sep 17 00:00:00 2001 From: googKamaljit Date: Wed, 5 May 2021 10:45:20 -0700 Subject: [PATCH] updated TargetV2 labels (#282) --- retrieval/resource_map.go | 4 ++-- retrieval/resource_map_test.go | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/retrieval/resource_map.go b/retrieval/resource_map.go index a62970f3..853934ae 100644 --- a/retrieval/resource_map.go +++ b/retrieval/resource_map.go @@ -140,8 +140,8 @@ var TargetV2ResourceMap = ResourceMap{ "org": constValue("org"), "env": constValue("env"), "proxy_name": constValue("proxy_name"), - "target_type": constValue("target_type"), - "target_endpoint": constValue("target_endpoint"), + "type": constValue("type"), + "endpoint": constValue("endpoint"), "runtime_version": constValue("runtime_version"), "instance_id": constValue("instance_id"), }, diff --git a/retrieval/resource_map_test.go b/retrieval/resource_map_test.go index 93649694..a52a0583 100644 --- a/retrieval/resource_map_test.go +++ b/retrieval/resource_map_test.go @@ -213,8 +213,8 @@ func TestTranslateTargetV2(t *testing.T) { } metricLabels := labels.Labels{ {"proxy_name", "my-name"}, - {"target_type", "my-target"}, - {"target_endpoint", "my-endpoint"}, + {"type", "my-type"}, + {"endpoint", "my-endpoint"}, {"org", "my-org"}, {"env", "my-env"}, {"runtime_version", "my-revision"}, @@ -227,8 +227,8 @@ func TestTranslateTargetV2(t *testing.T) { "org": "my-org", "env": "my-env", "proxy_name": "my-name", - "target_type": "my-target", - "target_endpoint": "my-endpoint", + "type": "my-type", + "endpoint": "my-endpoint", "runtime_version": "my-revision", "instance_id": "my-instance", }