All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.heanbian.block.zabbix.api.ZabbixTrendGetRequest Maven / Gradle / Ivy

There is a newer version: 1.0.8
Show newest version
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