From 592bd3d5c263de7c5334d64902d225b764fb7b57 Mon Sep 17 00:00:00 2001 From: Joel Johnson Date: Tue, 8 Oct 2024 13:57:32 +0530 Subject: [PATCH 1/2] deleted java and shell examples which are outdated --- .../post.java | 18 --------------- .../post.shell | 23 ------------------- 2 files changed, 41 deletions(-) delete mode 100644 spec/code_samples/JAVA/api@application-monitoring@analyze@traces/post.java delete mode 100644 spec/code_samples/SHELL/api@application-monitoring@analyze@traces/post.shell diff --git a/spec/code_samples/JAVA/api@application-monitoring@analyze@traces/post.java b/spec/code_samples/JAVA/api@application-monitoring@analyze@traces/post.java deleted file mode 100644 index 4d845d8..0000000 --- a/spec/code_samples/JAVA/api@application-monitoring@analyze@traces/post.java +++ /dev/null @@ -1,18 +0,0 @@ -CloseableHttpClient client = HttpClients.createDefault(); -String url = "https://unit-tenant.instana.com/api/application-monitoring/analyze/traces"; -HttpPost httpPost = new HttpPost(url); -String json = "{" - + "\"pagination\":{\"retrievalSize\":20,\"offset\":0}," - + "\"timeFrame\":{\"windowSize\":3600000}" - + "}" -StringEntity entity = new StringEntity(json); -httpPost.setEntity(entity); -httpPost.setHeader("Accept", "application/json"); -httpPost.setHeader("Content-type", "application/json"); -httpPost.setHeader("Authorization", "apiToken xxxxxxxx"); - -CloseableHttpResponse response = client.execute(httpPost); - -assertThat(response.getStatusLine().getStatusCode(), equalTo(200)); -String traceResult = EntityUtils.toString(response.getEntity()); -client.close(); diff --git a/spec/code_samples/SHELL/api@application-monitoring@analyze@traces/post.shell b/spec/code_samples/SHELL/api@application-monitoring@analyze@traces/post.shell deleted file mode 100644 index adf3a7a..0000000 --- a/spec/code_samples/SHELL/api@application-monitoring@analyze@traces/post.shell +++ /dev/null @@ -1,23 +0,0 @@ -curl --request POST \ - --url https://unit-tenant.instana.io/api/application-monitoring/analyze/call-groups \ - --header 'authorization: apiToken {apiToken}}' \ - --header 'content-type: application/json' \ - --data '{ - -"timeFrame": { -"windowSize": 36000000 -}, -"order":{ - "by": "errors", -"direction": "DESC" -}, -"group": { -"groupbyTag": "application.name" -}, -"metrics": [ -{ -"metric": "errors", -"aggregation": "MEAN" -} -] -} ' \ No newline at end of file From 9194616729a42f3446f74abdb89bec5c1cd6286f Mon Sep 17 00:00:00 2001 From: Joel Johnson Date: Tue, 8 Oct 2024 14:01:21 +0530 Subject: [PATCH 2/2] removing unwanted text sections --- spec/descriptions/getTraces.md | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/spec/descriptions/getTraces.md b/spec/descriptions/getTraces.md index b17687a..1de6b7b 100644 --- a/spec/descriptions/getTraces.md +++ b/spec/descriptions/getTraces.md @@ -1,11 +1 @@ This endpoint retrieves the metrics for traces. - -**Manditory Paramters:** - -**Optional Paramters:** - -**Defaults:** - -**Limits:** - -**Tips:**