com.heanbian.block.zabbix.api.ZabbixHostGetRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of zabbix-client Show documentation
Show all versions of zabbix-client Show documentation
heanbian zabbix client component.
package com.heanbian.block.zabbix.api;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class ZabbixHostGetRequest {
private Map params = new HashMap<>();
public Map getParams() {
return params;
}
public ZabbixHostGetRequest setSelectGroups(String selectGroups) {
this.params.put("selectGroups", selectGroups);
return this;
}
public ZabbixHostGetRequest setOutput(String... output) {
return this.setOutput(Arrays.asList(output));
}
public ZabbixHostGetRequest setOutput(List output) {
this.params.put("output", output);
return this;
}
public ZabbixHostGetRequest setFilterHosts(String... hosts) {
return this.setFilterHosts(Arrays.asList(hosts));
}
public ZabbixHostGetRequest setFilterHosts(List hosts) {
Map filter = new HashMap<>(1);
filter.put("host", hosts);
this.params.put("filter", filter);
return this;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy