2022 Zabbix中国峰会
2022 Zabbix中国峰会
Table of Contents

> Graph object图形对象

The following objects are directly related to the graph API. 以下对象与“图形”API有关。

Graph

The graph object has the following properties. “graph”对象具有以下参数。

Property参数 T pe类型 Des ription描述
图形ID graphid s ring字符串型 *(rea only只读)* ID of the graph.图形的ID
高度 height  i(required必要) teger整型 Hei ht of the graph in pixels.图形的高度(单位:像素)
名称 name  s(required必要) ring字符串型 Name f the graph.图形的名称
宽度 width  i(required必要) teger整型 Wid h of the graph in pixels. 图形的宽度(单位:像素)
标志 flags i teger整型 *(r adonly只读)* Origin of the graph. 图形的来源

Possible values are:可用值:
0 - (default默认值) a plain graph;一幅简图;
4 - a discovered graph.一副发现图
图形类型 graphtype int ger整型 Graph s layout type. 图形类别。

Possible values: 可用值:
0 - (default默认值) normal常规;
1 - stacked堆积图;
2 - pie饼图;
3 - exploded.分散饼图
百分比_左 percent_left flo t浮点型 Left p rcentile.百分比线(左)

Default:默认值:0.
百分比_右 percent_right flo t浮点型 Right ercentile. 百分比线(右)

Default:默认值:0.
3D展示 show_3d i teger整型 Whe her to show pie and exploded graphs in 3D.是否以3D图形展示饼图和分散饼图

Possible values:可用值:
0 - (default默认值) show in 2D;以2D图展示
1 - show in 3D.以3D图展示
显示图例 show_legend int ger整型 Wheth r to show the legend on the graph. 是否在图形上显示图例

Possible values:可用值:
0 - hide;隐藏
1 - (default默认值) show.显示
显示工作时间 show_work_period integ r整型 Whether to show the working time on the graph.是否在图形上显示工作时间

Possible values:可用值:
0 - hide;隐藏
1 - (default默认值) show.显示
模板ID templateid s ring字符串型 *(rea only只读)* ID of the parent template graph.父模板图形ID
Y轴最大值 yaxismax flo t浮点型 The fi ed maximum value for the Y axis.Y轴的固定最大值

Default:默认值:100
Y轴最小值 yaxismin flo t浮点型 The fi ed minimum value for the Y axis.Y轴的固定最小值

Default:默认值:0
Y轴最大值监控项ID ymax_itemid string 符串型 ID of the tem that is used as the maximum value for the Y axis.用于作为Y轴最大值的监控项ID
Y轴最大值类型 ymax_type integ r整型 Maximum value calculation method for the Y axis.Y轴最大值的计算方式

Possible values可用值:
0 - (default默认值) calculated;可计算的
1 - fixed;固定值
2 - item监控项.
Y轴最小值监控项ID ymin_itemid string 符串型 ID of the tem that is used as the minimum value for the Y axis.用于作为Y轴最小值的监控项ID
Y轴最小值类型 ymin_type integ r整型 Minimum value calculation method for the Y axis. Y轴最小值的计算方式

Possible values可用值:
0 - (default默认值) calculated可计算的;
1 - fixed固定值;
2 - item监控项.