|
59 | 59 | ] |
60 | 60 | }, |
61 | 61 | { |
62 | | - "description": "Test transactionSummary event", |
| 62 | + "description": "Test transactionSummary event with existing API", |
63 | 63 | "input": [ |
64 | 64 | "{\"timestamp\":1594670847467,\"correlationId\":\"ffbe0c5f95da03f602a6e587\",\"processInfo\":{\"hostname\":\"ip-172-31-62-146.ec2.internal\",\"domainId\":\"e1ff3aab-3b11-4820-a1be-3763da2beda4\",\"groupId\":\"group-2\",\"groupName\":\"group-a\",\"serviceId\":\"instance-3\",\"serviceName\":\"instance-3\",\"version\":\"7.7.20200530\"},\"transactionSummary\":{\"path\":\"/petstore/v2/user/Chris\", \"protocol\":\"https\", \"protocolSrc\":\"8065\", \"status\":\"success\", \"serviceContexts\":[{\"service\":\"Petstore\", \"monitor\":true, \"client\":null, \"org\":null, \"app\":null, \"method\":\"getUserByName\", \"status\":\"success\", \"duration\":2}]}}" |
65 | 65 | ], |
|
100 | 100 | } |
101 | 101 | ] |
102 | 102 | }, |
| 103 | + { |
| 104 | + "description": "Test transactionSummary event with unknwon API that cannot be looked up", |
| 105 | + "input": [ |
| 106 | + "{\"timestamp\":1594670847467,\"correlationId\":\"OMG-UNKNOWN-API\",\"processInfo\":{\"hostname\":\"ip-172-31-62-146.ec2.internal\",\"domainId\":\"e1ff3aab-3b11-4820-a1be-3763da2beda4\",\"groupId\":\"group-2\",\"groupName\":\"group-a\",\"serviceId\":\"instance-3\",\"serviceName\":\"instance-3\",\"version\":\"7.7.20200530\"},\"transactionSummary\":{\"path\":\"/petstore/v2/user/Chris\", \"protocol\":\"https\", \"protocolSrc\":\"8065\", \"status\":\"success\", \"serviceContexts\":[{\"service\":\"Petstore\", \"monitor\":true, \"client\":null, \"org\":null, \"app\":null, \"method\":\"getUserByName\", \"status\":\"success\", \"duration\":2}]}}" |
| 107 | + ], |
| 108 | + "expected": [ |
| 109 | + { |
| 110 | + "@timestamp": "2020-07-13T20:07:27.467Z", |
| 111 | + "correlationId": "OMG-UNKNOWN-API", |
| 112 | + "logtype": "openlog", |
| 113 | + "processInfo": { |
| 114 | + "hostname": "ip-172-31-62-146.ec2.internal", |
| 115 | + "domainId": "e1ff3aab-3b11-4820-a1be-3763da2beda4", |
| 116 | + "groupId": "group-2", |
| 117 | + "groupName": "group-a", |
| 118 | + "serviceId": "instance-3", |
| 119 | + "serviceName": "instance-3", |
| 120 | + "version": "7.7.20200530" |
| 121 | + }, |
| 122 | + "transactionSummary": { |
| 123 | + "path": "/this/api/is/unknown", |
| 124 | + "protocol": "https", |
| 125 | + "protocolSrc": "8065", |
| 126 | + "status": "success", |
| 127 | + "serviceContext": { |
| 128 | + "service": "A unknown API", |
| 129 | + "monitor": true, |
| 130 | + "client": null, |
| 131 | + "appOrg": null, |
| 132 | + "app": null, |
| 133 | + "method": "getUserByName", |
| 134 | + "status": "success", |
| 135 | + "duration": 2 |
| 136 | + } |
| 137 | + } |
| 138 | + } |
| 139 | + ] |
| 140 | + }, |
103 | 141 | { |
104 | 142 | "description": "Test transactionSummary without ServiceConext event", |
105 | 143 | "input": [ |
|
0 commit comments