zabbixApi4j-Template screen item

Template screen item

templatescreenitem.get: 检索模板屏幕项目

zabbixApi4j-Template screen item_第1张图片
image.png


TemplateScreenItemGetTest
package cn.com.yeexun.testzabbix.zabbix4j.example.templatescreenitem;

import static org.junit.Assert.assertNotNull;

import org.junit.Test;

import cn.com.yeexun.testzabbix.zabbix4j.common.ZabbixApiTestBase;

import com.zabbix4j.templatescreenitem.TemplateScreenItemGetRequest;
import com.zabbix4j.templatescreenitem.TemplateScreenItemGetResponse;

/**
 * @author Suguru Yajima
 */
public class TemplateScreenItemGetTest extends ZabbixApiTestBase {
    public TemplateScreenItemGetTest() {
        super();
    }

    @Test
    public void testGet() throws Exception {
        TemplateScreenItemGetRequest request = new TemplateScreenItemGetRequest();

        TemplateScreenItemGetResponse response = zabbixApi.templateScreenItem().get(request);
        assertNotNull(response);

        logger.debug(getGson().toJson(response));


    }
}

你可能感兴趣的:(zabbixApi4j-Template screen item)