美文网首页
zabbixApi4j-Graph item

zabbixApi4j-Graph item

作者: 差不多先生_tl | 来源:发表于2018-01-11 11:37 被阅读21次

Graph item

graphitem.get: 检索图项目

image.png
GraphItemGetTest
package cn.com.yeexun.testzabbix.zabbix4j.example.graphitem;

import static org.junit.Assert.assertNotNull;

import org.junit.Test;

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

import com.zabbix4j.graphitem.GraphItemGetRequest;
import com.zabbix4j.graphitem.GraphItemGetResponse;
import com.zabbix4j.graphitem.GraphItemObject;


/**
 * Created by Suguru Yajima on 2014/06/01.
 */
public class GraphItemGetTest extends ZabbixApiTestBase {


    public GraphItemGetTest() {
        super();
    }

    @Test
    public void testGet1() throws Exception {
        GraphItemGetRequest request = new GraphItemGetRequest();
        GraphItemGetRequest.Params params = request.getParams();

        GraphItemGetResponse response = zabbixApi.graphItem().get(request);
        assertNotNull(response);

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

        GraphItemObject item = response.getResult().get(0);
        assertNotNull(item);

        assertNotNull(item.getCalc_fnc());
        assertNotNull(item.getColor());
        assertNotNull(item.getDrawtype());
        assertNotNull(item.getGitemid());
        assertNotNull(item.getGraphid());
        assertNotNull(item.getItemid());
        assertNotNull(item.getSortorder());
        assertNotNull(item.getType());
        assertNotNull(item.getYaxisside());
    }
}

相关文章

  • zabbixApi4j-Graph item

    Graph item graphitem.get: 检索图项目 GraphItemGetTest

  • zabbixApi4j-Graph

    Graph: 该类旨在与项目一起工作。 graph.create: 创建新的图形graph.delete: 删除图...

  • 模板语言

    循环{{ item }} {% for item in item_list %} {{ item }} {{ fo...

  • zabbixApi4j-Graph prototype

    Graph prototype: 这个类设计用于处理图形原型。 graphprototype.create: 创建...

  • 无标题文章

    [item['url'] for item in item_info.find()]等于for item in i...

  • Python-列表

    列表 a=["item1","item2","item3","item4","item5"] 列表的操作(增、删、...

  • shift to markdown

    title title title 无序列表 item1 item2 item3 有序列表 item1 item2...

  • zabbixApi4j-Item

    Item item.create: 创建新项目item.delete: 删除项目item.exists: 检查项目...

  • SDWebImage的正确用法

    ``` - setItem:(CustomItem *)item{_item=item;if(缓存中有原图){se...

  • SDWebImage 缓存

    - setItem:(CustomItem *)item { _item=item; //占位图片 UIImage...

网友评论

      本文标题:zabbixApi4j-Graph item

      本文链接:https://www.haomeiwen.com/subject/nvuznxtx.html