Authored by jack

较少http传输项

@@ -30,7 +30,7 @@ public class HostInterfaceRequest extends ZabbixRequest { @@ -30,7 +30,7 @@ public class HostInterfaceRequest extends ZabbixRequest {
30 30
31 Filter filter; 31 Filter filter;
32 32
33 - String output = "extend"; 33 + String output[] = {"hostid", "ip"};
34 34
35 35
36 public Params(Filter filter) { 36 public Params(Filter filter) {
@@ -14,21 +14,9 @@ public class HostInterfaceResponse extends ZabbixResponse { @@ -14,21 +14,9 @@ public class HostInterfaceResponse extends ZabbixResponse {
14 @Data 14 @Data
15 public static class HostInterface { 15 public static class HostInterface {
16 16
17 - String interfaceid;  
18 -  
19 String hostid; 17 String hostid;
20 18
21 - String main;  
22 -  
23 - String type;  
24 -  
25 - String useip;  
26 -  
27 String ip; 19 String ip;
28 -  
29 - String dns;  
30 -  
31 - String port;  
32 } 20 }
33 21
34 } 22 }
@@ -25,7 +25,7 @@ public class ItemRequest extends ZabbixRequest { @@ -25,7 +25,7 @@ public class ItemRequest extends ZabbixRequest {
25 25
26 private String hostids; 26 private String hostids;
27 27
28 - private String output = "extend"; 28 + private String[] output = {"hostid","itemid","key_"};
29 29
30 private String sortfield = "name"; 30 private String sortfield = "name";
31 31