| | |
| | | @Autowired |
| | | private HttpCollectorForAsde httpCollectorForAsde; |
| | | |
| | | @Autowired |
| | | private HttpCollectorForAsde httpCollectorForAsdc; |
| | | |
| | | public Object getTagValue(String apiId, String tag) { |
| | | HttpApiEntity httpApi = httpApiService.getFromCatch(apiId); |
| | | if (httpApi == null) { |
| | |
| | | valueMap = httpCollectorForAsdb.getTagValues(apiId, tagNames); |
| | | } else if (SourceApiEnum.ASDE.getCode().equals(httpApi.getCode())) { |
| | | valueMap = httpCollectorForAsde.getTagValues(apiId, tagNames); |
| | | } else if (SourceApiEnum.ASDC.getCode().equals(httpApi.getCode())) { |
| | | valueMap = httpCollectorForAsdc.getTagValues(apiId, tagNames); |
| | | } |
| | | if (valueMap.get(tag) == null) { |
| | | return CommonConstant.BAD_VALUE; |