Get list of table types

To get the list of tables which can be included in reports, use the command report/get_report_tables:

svc=report/get_report_tables&params={lang:<text>}

Parameters

Name Description
lang two-lettered language code

Response

[
	{
		"id":<uint>,		/* table ID */
		"name":<text>,		/* system table name */
		"display_name":<text>,	/* default table name */
		"type":<text>,		/* table type */
		"calc_type":<text>,	/* type of template in which this table can be used (see below) */
		"param_type":<text>,	/* text parameters */
		"columns":[		/* array of columns */
			{
				"name":<text>,			/* system column name */
				"display_name":<text>,		/* default column name */
				"stats_display_name":<text>,	/* list of column headers (if it is a statistics table) */
				"type":<text>,			/* column type */
				"flags":<uint>			/* column flags (see below) */
			}
		]
	}
]

Template types:

  • avl_unit;
  • avl_unit_group;
  • storage_user;
  • avl_driver;
  • avl_resource;
  • avl_retranslator.

Column flags:

Flag Description
0x01 show as table column
0x02 show as statistics column
0x04 show as global switcher
0x08 show as column with position data
0x10 show as chart axis
Follow us on Facebook Gurtam Wialon Twitter Gurtam Wialon info@gurtam.com   |   Copyright © 2002-2024 Gurtam