This is a translation of the original English documentation page. Help us make it better.

> Graph prototype object

A következő objektumok közvetlenül kapcsolódnak a "graphprototype" API-hoz.

Graph prototype

The graph prototype object has the following properties.

Property Type Description
graphid string (readonly) ID of the graph prototype.
height
(required)
integer Height of the graph prototype in pixels.
name
(required)
string Name of the graph prototype.
width
(required)
integer Width of the graph prototype in pixels.
graphtype integer Graph prototypes's layout type.

Possible values:
0 - (default) normal;
1 - stacked;
2 - pie;
3 - exploded.
percent_left float Left percentile.

Default: 0.
percent_right float Right percentile.

Default: 0.
show_3d integer Whether to show discovered pie and exploded graphs in 3D.

Possible values:
0 - (default) show in 2D;
1 - show in 3D.
show_legend integer Whether to show the legend on the discovered graph.

Possible values:
0 - hide;
1 - (default) show.
show_work_period integer Whether to show the working time on the discovered graph.

Possible values:
0 - hide;
1 - (default) show.
templateid string (readonly) ID of the parent template graph prototype.
yaxismax float The fixed maximum value for the Y axis.
yaxismin float The fixed minimum value for the Y axis.
ymax_itemid string ID of the item that is used as the maximum value for the Y axis.

Starting with Zabbix 6.0.7, if user have no access to specified item, the graph is rendered like ymax_type would be set to '0' (calculated).
ymax_type integer Maximum value calculation method for the Y axis.

Possible values:
0 - (default) calculated;
1 - fixed;
2 - item.
ymin_itemid string ID of the item that is used as the minimum value for the Y axis.

Starting with Zabbix 6.0.7, if user have no access to specified item, the graph is rendered like ymin_type would be set to '0' (calculated).
ymin_type integer Minimum value calculation method for the Y axis.

Possible values:
0 - (default) calculated;
1 - fixed;
2 - item.
discover integer Graph prototype discovery status.

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 Universal unique identifier, used for linking imported graph prototypes to already existing ones. Used only for graph prototypes on templates. Auto-generated, if not given.

For update operations this field is readonly.

Note that for some methods (update, delete) the required/optional parameter combination is different.