2022 Zabbix中国峰会
2022 Zabbix中国峰会

> Graph prototype object 图形原型对象

The following objects are directly related to the graphprototype API. 以下对象与graphprototype API有直接关系。

Graph prototype图形原型

The graph prototype object has the following properties.图形原型对象有以下参数(属性)

Property参数 T pe类型 Des ription描述
图形ID graphid s ring字符串型 *(rea only只读)* ID of the graph prototype.图形原型的ID
高度 height  i(required必要) teger整数型 Heig t of the graph prototype in pixels.图形原型的高度(单位:像素)
名称 name  s(required必要) ring字符串型 Name f the graph prototype.图形原型的名称
宽度 width  i(required必要) teger整数型 Widt of the graph prototype in pixels.图形原型的宽度(单位:像素)
图形类型 graphtype int ger整数型 Graph rototypes's layout type.图形原型布局类型

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

Default默认值: 0.
百分比右 percent_right flo t 浮点数型 Right p rcentile.右侧百分比线

Default默认值: 0.
3D展示 show_3d i teger 整数型 Whet er to show discovered pie and exploded graphs in 3D.是否使用3D形式展示被发现的饼图和分散饼图

Possible values可用值:
0 - (default默认) show in 2D 2D形式展示;
1 - show in 3D 3D形式展示.
图例显示 show_legend int ger 整数型 Whethe to show the legend on the discovered graph.是否在被发现的图形上显示图例

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

Possible values可用值:
0 - hide隐藏;
1 - (default默认值) show显示.
模板ID templateid s ring字符串 *(re donly只读)* ID of the parent template graph prototype.图形圆形的父模板的ID
Y轴最大值 yaxismax flo t 浮点数型 The fix d maximum value for the Y axis.Y轴的固定最大值
Y轴最小值 yaxismin flo t 浮点数型 The fix d minimum value for the Y axis.Y轴的固定最小值
Y轴最大值监控项ID ymax_itemid string 符串 ID of the item that is used as the maximum value for the Y axis.用于作为Y轴最大值的监控项ID
Y轴最大值类型 ymax_type integ r整数型 Maximum alue 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 alue calculation method for the Y axis.Y轴最小值的计算方式

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