图原型 object

以下objects与graphprototypeAPI直接相关。

图形原型

图形原型对象具有以下属性。

Property Type Description
graphid ID 图形原型的 ID。

Property behavior:
- read-only
- required for update operations
height integer 图形原型的高度,单位为像素。

Property behavior:
- required for create operations
name string 图形原型的名称。

Property behavior:
- required for create operations
width integer 图形原型的宽度,单位为像素。

Property behavior:
- required for create operations
graphtype integer 图形原型的布局类型。

Possible values:
0 - (default) normal;
1 - stacked;
2 - pie;
3 - exploded.
percent_left float 左侧百分位。

Default: 0.
percent_right float 右侧百分位。

Default: 0.
show_3d integer 是否以 3D 方式显示发现的饼图和分离图。

Possible values:
0 - (default) show in 2D;
1 - show in 3D.
show_legend integer 是否在发现的图形上显示图例。

Possible values:
0 - hide;
1 - (default) show.
show_work_period integer 是否在发现的图形上显示工作时间。

Possible values:
0 - hide;
1 - (default) show.
templateid ID 父模板图形原型的 ID。

Property behavior:
- read-only
yaxismax float Y 轴的固定最大值。
yaxismin float Y 轴的固定最小值。
ymax_itemid ID 用作 Y 轴最大值的监控项 ID。

If a user has no access to the specified item, the graph is rendered as if ymax_type is set to "calculated".
ymax_type integer Y 轴最大值的计算方式。

Possible values:
0 - (default) calculated;
1 - fixed;
2 - item.
ymin_itemid ID 用作 Y 轴最小值的监控项 ID。

If a user has no access to the specified item, the graph is rendered as if ymin_type is set to "calculated".
ymin_type integer Y 轴最小值的计算方式。

Possible values:
0 - (default) calculated;
1 - fixed;
2 - item.
discover integer 图形原型的发现状态。

Possible values:
0 - (default) new graphs will be discovered;
1 - new graphs will not be discovered and existing graphs will be marked as lost.
uuid string 通用唯一标识符,用于将导入的图形原型链接到已存在的图形原型。如果未提供,则自动生成。

Property behavior:
- supported if the graph prototype belongs to a template