com.heanbian.block.zabbix.api.ZabbixTrendGetRequest 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 ZabbixTrendGetRequest {
/**
* @see ZabbixTrendGetResponse
*/
public ZabbixTrendGetRequest() {
this.setOutput("itemid", "clock", "num", "value_min", "value_avg", "value_max").setLimit("1");
}
private Map params = new HashMap<>();
public Map getParams() {
return params;
}
public ZabbixTrendGetRequest setOutput(String... output) {
this.params.put("output", Arrays.asList(output));
return this;
}
public ZabbixTrendGetRequest setItemids(String... itemids) {
return this.setItemids(Arrays.asList(itemids));
}
public ZabbixTrendGetRequest setItemids(List itemids) {
this.params.put("itemids", itemids);
return this;
}
public ZabbixTrendGetRequest setLimit(String limit) {
this.params.put("limit", limit);
return this;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy