From 894a73196b2059e868afdbea050b98715f55bcad Mon Sep 17 00:00:00 2001 From: Wassim DHIF Date: Wed, 18 Dec 2024 14:22:46 +0100 Subject: [PATCH] chore(tagger): fix curl example for OriginInfo resolution Signed-off-by: Wassim DHIF --- pkg/proto/datadog/api/v1/api.proto | 2 +- pkg/proto/pbgo/core/api.pb.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/proto/datadog/api/v1/api.proto b/pkg/proto/datadog/api/v1/api.proto index 3e53e3aa7c7733..2d03883d00cf0d 100644 --- a/pkg/proto/datadog/api/v1/api.proto +++ b/pkg/proto/datadog/api/v1/api.proto @@ -55,7 +55,7 @@ service AgentSecure { // can be called through the HTTP gateway, and entity will be returned as JSON: // $ curl -H "authorization: Bearer $(cat /etc/datadog-agent/auth_token)" \ // -XPOST -k -H "Content-Type: application/json" \ - // --data '{"externalDataInit": false,"externalDataPodUID": "54383382-cea3-49e3-9dda-325436ddd5b8","externalDataContainerName": "dd-trace-py"}' \ + // --data '{"externalData": {"init": false,"containerName": "dd-trace-py","podUID": "c4b45c6a-b296-4bd5-88df-7c2d6bcaabef"}}' \ // https://localhost:5001/v1/grpc/tagger/generate_container_id_from_origin_info // { // "containerID":"c9fd60251b5237467462dad48999815eb0025f367c6e1abe91e0bd787d5915fc" diff --git a/pkg/proto/pbgo/core/api.pb.go b/pkg/proto/pbgo/core/api.pb.go index f99b9d0f48fbfd..86c3b100390c10 100644 --- a/pkg/proto/pbgo/core/api.pb.go +++ b/pkg/proto/pbgo/core/api.pb.go @@ -398,7 +398,7 @@ type AgentSecureClient interface { // // $ curl -H "authorization: Bearer $(cat /etc/datadog-agent/auth_token)" \ // -XPOST -k -H "Content-Type: application/json" \ - // --data '{"externalDataInit": false,"externalDataPodUID": "54383382-cea3-49e3-9dda-325436ddd5b8","externalDataContainerName": "dd-trace-py"}' \ + // --data '{"externalData": {"init": false,"containerName": "dd-trace-py","podUID": "c4b45c6a-b296-4bd5-88df-7c2d6bcaabef"}}' \ // https://localhost:5001/v1/grpc/tagger/generate_container_id_from_origin_info // { // "containerID":"c9fd60251b5237467462dad48999815eb0025f367c6e1abe91e0bd787d5915fc" @@ -680,7 +680,7 @@ type AgentSecureServer interface { // // $ curl -H "authorization: Bearer $(cat /etc/datadog-agent/auth_token)" \ // -XPOST -k -H "Content-Type: application/json" \ - // --data '{"externalDataInit": false,"externalDataPodUID": "54383382-cea3-49e3-9dda-325436ddd5b8","externalDataContainerName": "dd-trace-py"}' \ + // --data '{"externalData": {"init": false,"containerName": "dd-trace-py","podUID": "c4b45c6a-b296-4bd5-88df-7c2d6bcaabef"}}' \ // https://localhost:5001/v1/grpc/tagger/generate_container_id_from_origin_info // { // "containerID":"c9fd60251b5237467462dad48999815eb0025f367c6e1abe91e0bd787d5915fc"