= genimage = Generate image and return image identificator (for future use in getimage.php) along with various image properties. == Mandatory Properties == * [wiki:adeiParam_db_server db_server ] - Data source * [wiki:adeiParam_db_name db_name ] - Database name * [wiki:adeiParam_db_group db_group ] - Log Group * [wiki:adeiParam_frame_width frame_width ] - image width * [wiki:adeiParam_frame_height frame_height ] - image height == Optional Properties == * [wiki:adeiParam_db_mask db_mask] - Item mask * [wiki:adeiParam_window window] - Data Interval (everything by default) * [wiki:adeiParam_aggregator aggregator] - data aggregation mode * [wiki:adeiParam_show_marks show_marks] - real-data-points reporting mode * [wiki:adeiParam_show_gaps show_gaps] - missing-data reporting mode * [wiki:adeiParam_interpolate_gaps interpolate_gaps] - data interpolation mode * [wiki:adeiPram_precision precision] - specifies required chart precision * [wiki:adeiParam_hide_axes hide_axes] - generate axes-less graph == Returned Result == The request returns JSON encoded array of properties of generated image. If an error have occurred, the only returned property is ''error''. * ''error'' - should be 0 if image generated successfully, otherwise contains the problem description * ''image'' - it is indeficator of generated image which should be passed to the [wiki:adeiService_getimage getimage] request in order to obtain the image. * ''margins'' - array describing graph margins [left,top, right, bottom]. It is a space allocated for axis, etc. * ''xmin'' - UNIX timestamp corresponding to the left corner of X-axis * ''xmax'' - UNIX timestamp corresponding to the right corner of X-axis * ''ymin'' - value corresponding to the bottom corner of Y-axis * ''ymax'' - value corresponding to the upper corner of Y-axis * ''yzoom'' - boolean flag indicating if image iz zoomed over Y-axis * ''precision'' - approximate precision of the graph (1 is maximum)