报表字典补充

This commit is contained in:
wangxin
2018-07-17 11:36:19 +08:00
parent 85a7d08275
commit 4b5089dcc5
3 changed files with 7 additions and 1 deletions

View File

@@ -353,6 +353,7 @@ public final class Constants {
//日志查询接口URL
public static final String LOG_BASE_URL = Configurations.getStringProperty("logBaseUrl","");
public static final String NTC_SERVICE_REPORT=Configurations.getStringProperty("ntcServiceReport","ntcServiceReport");
public static final String NTC_ATTRTYPE_REPORT=Configurations.getStringProperty("ntcAttrTypeReport","ntcAttrTypeReport");
public static final String NTC_TAG_REPORT=Configurations.getStringProperty("ntcTagReport","ntcTagReport");
public static final String NTC_PZ_REPORT=Configurations.getStringProperty("ntcPzReport","ntcPzReport");
public static final String NTC_NTC_SRCIP_REPORT=Configurations.getStringProperty("ntcSrcipDomesticReport","ntcSrcipDomesticReport");

View File

@@ -68,7 +68,7 @@ public class NtcXzReportController extends BaseController {
model.addAttribute("titles", titles);
try {
ReportResult<NtcAttrTypeReport> result=new ReportResult<>();
StringBuffer url=new StringBuffer(Constants.LOG_BASE_URL+Constants.NTC_TAG_REPORT);
StringBuffer url=new StringBuffer(Constants.LOG_BASE_URL+Constants.NTC_ATTRTYPE_REPORT);
Gson gson=Constants.gsonbuilder.create();
String json=result.getReport(url.toString(), bean);
result = gson.fromJson(json, new TypeToken<ReportResult<NtcAttrTypeReport>>() {

View File

@@ -230,6 +230,11 @@ logBaseUrl=http://10.0.6.242:8080/galaxy/service/log/v1/
ntcPzReport=ntcPzReport
ntcServiceReport=ntcServiceReport
ntcTagReport=ntcTagReport
ntcAttrTypeReport=ntcAttrTypeReport
ntcLwhhReport=ntcLwhhReport
ntcSrcipDomesticReport=ntcSrcipDomesticReport
ntcDestipCountryReport=ntcDestipCountryReport
ntcEntranceReport=ntcEntranceReport
ntcIpLog=ntcIpLogs
ntcHttpLog=ntcHttpLogs
ntcDnsLog=ntcDnsLogs