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 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:**