Inserts a table containing summary device data into your report.
Purpose
Inserts a table containing summary device data into your report. This works for device configurations that were present in LogicMonitor at the time the report was run. Columns can be selected based on standard device properties.
Compatibility
The macro can be used in the highlighted input document types only. A greyed-out icon indicates not supported.
Usage
If the columns parameter is not specified, the following will be used:
- HostName
- DisplayedAs
- Type
- Status
The full list of supported columns are as follows. For more details, see the LogicMonitor API documentation.
- AllAsJson
- Id
- Link
- HostName
- NetflowCollectorId
- PreferredCollectorId
- CollectorDescription
- EnableNetflow
- DisplayName
- DisplayedAs
- Type
- AlertStatus
- Status
- AlertsAreAcknowledged
- AlertLevel
- AlertsAreInSdt
- DeviceGroupIds
- CurrentCollectorId
- AlertEnable
- AutoPropsAssignedOn
- AutoPropsUpdatedOn
- CreatedOn
- EffectiveAlertEnabled
- DeviceGroups
- Groups
- InSdt
- SdtStatus
- LastDataTime
- DeviceStatus
- AllAsJObject
- Any LogicMonitor device property, preceded with "Properties." (e.g. Properties.system.sysinfo, Properties.ips, Properties.location)
- Special SysInfo Properties (Cisco only):
- Properties.system.sysinfo.Hardware
- Properties.system.sysinfo.Software
- Properties.system.sysinfo.SoftwareVersion
- Properties.system.sysinfo.SoftwareStatus
See also Table Macros help.
.Updates
The 'style' parameter now applies Word's own built-in style for the Grid Table 5 Dark, Grid Table 6 Colorful and Grid Table 7 Colorful families (and their Accent variants), rather than a look-alike custom style named 'Grid Table 5', 'Grid Table 6' or 'Grid Table 7'. Using one of these styles for several tables no longer leaves extra styles such as 'Grid Table 51' in the Word document. Applies to every table-producing macro.
History (3)
The 'alertEnable', 'effectiveAlertEnabled', 'enableNetflow', 'alertsAreAcknowledged' and 'alertsAreInSdt' columns now read 'true' or 'false' rather than 'True' or 'False', matching 'inSdt' and the rest of the macro language. The 'lastDataTime' column now reads 'N/A' when the device has no value, matching the other date columns, rather than being blank.
The 'alertLevel' and 'alertsAreInSdt' columns no longer fail when a device's alert status has not been populated. Such a device is now reported as normal and not in scheduled downtime, exactly as one whose status is explicitly none.
The 'repeatHeaderPerPage' parameter now works as expected (now honours the false setting).
Behaviour (1)13 additional
| Parameter | Type | Presence | Purpose | Options | Default |
| Boolean | Optional | If true, the table will not be written to the report. This is useful if you want to use a Table macro in PowerPoint or RM Script files (which do not support adding tables) but have XLSX output enabled on the Schedule. This way the table data will be preserved and the macro will produce a Success rather than Macro Error, and the XLSX table will be generated. Note that in RM Script or Report Studio (code mode), you must set the hidden parameter to true or a Macro Error will occur. |
|
false |
Additional (13)
| Parameter | Type | Presence | Purpose | Options | Default |
| String | Optional | Post processing formula. Use {value} to substitute the macro's output into the formula as text, e.g. {value}/1024, or the bare word value to use the output itself, e.g. jPath(value, 'id') to read a property from an object. If the result is fractional it is shown to two decimal places unless you also set format, e.g. format=G to show it in full; a value kept by storeAs always retains its full precision. | N/A | N/A | |
| List<ExecutionResult> | Optional | If specified, asserts the expected execution result of the macro. Accepts a single value or a semicolon-separated list of acceptable values (e.g. 'Success;Warning'). The macro executes normally; if the actual result matches any of the desired values, the result is converted to Success. If the actual result does not match, the result is converted to MacroError with a descriptive message. This is primarily used for testing and diagnostic purposes. Valid values are: 'Unknown', 'Success', 'MacroError', 'WorkerStopped', 'Running', 'Warning', 'NeverRun', 'Cancelled', 'Pending', 'Paused', 'SystemError', 'Deferred' and 'Stopped'. |
|
N/A | |
| Boolean | Optional | Should NCalc expression evaluation throw error on Overflow |
|
true | |
| String | Optional | If specified, asserts the expected output type of the macro result. The macro executes normally; if the actual type does not match, a macro error is generated. Requires 'storeAs', 'storeAsHidden', or 'storeFormattedValueAs' to be set for typed validation. Valid types include CLR names (e.g. Int32, Int64, Single, Double, Boolean, String, JArray, JObject) and C# keyword aliases (e.g. int, long, float, double, bool, string, uint, ulong, short, ushort, byte, sbyte, decimal, char, object). The special value 'Number' matches any numeric type. | N/A | N/A | |
| String | Optional | If specified, asserts the expected output value of the macro result. The macro executes normally; if the actual value does not match, a macro error is generated. When 'storeAs' or 'storeAsHidden' is set, the stored variable value is compared. Otherwise, the document output text is compared. | N/A | N/A | |
| String | Optional | The condition that must be true in order for the macro to be executed/evaluated. Must either evaluate to true or false, for example: "3+5=8" or "contains('abcd', 'z')". | N/A | true | |
| Int32 | Optional | The maximum number of attempts when requesting data via the LogicMonitor API. |
|
N/A | |
| MacroMode | Optional | The mode in which variables are stored. In legacy mode (default for Schedules), the variable created is a string and formatted. In normal mode (default for Report Studio), the output variable is stored as a strongly-typed object, e.g. an Int32 or a JArray etc., rather than a formatted string. |
|
Legacy | |
| ObfuscationType | Optional | Obfuscation type. Use obfuscation to write reports where sensitive data is hidden. When used, ReportMagic guarantees that the same input string will map to the same output string for the whole of the report (but the next time the report runs, it will most likely map to a different value). If you use obfuscation, the property in your macro will not show up and instead, you will see a fake item of the obfuscation type chosen. |
|
None | |
| Boolean | Optional | Include devices in all child folders. |
|
true | |
| Boolean | Optional | Whether substituted variables are hidden from macro results (and the word 'REDACTED' will appear in progress screens and elsewhere in the web UI). |
|
false | |
| Boolean | Optional | Whether to wait during LogicMonitor upgrades (i.e. execution essentially pauses). |
|
N/A | |
| String | Optional | If specified, adds a warning message for this macro. This is processed as an NCalc, and the warning message will ALWAYS be present and will be the value of the evaluated NCalc expression. | N/A | N/A |
Colours (13)21 additional
| Parameter | Type | Presence | Purpose | Options | Default |
| Color | Optional | The critical cell background color to use. If omitted, the default of #C00000 is used; set it explicitly to override. Affects a cell or row based on the ThresholdAffects parameter. |
|
Color [A=255, R=192, G=0, B=0] | |
| Color | Optional | The critical cell text color to use. If omitted, no change is made. Affects a cell or row based on the ThresholdAffects parameter. |
|
N/A | |
| Color | Optional | The error cell background color to use. If omitted, the default of #F08000 is used; set it explicitly to override. Affects a cell or row based on the ThresholdAffects parameter. |
|
Color [A=255, R=240, G=128, B=0] | |
| Color | Optional | The error cell text color to use. If omitted, no change is made. Affects a cell or row based on the ThresholdAffects parameter. |
|
N/A | |
| Color | Optional | The fatal cell background color to use. If omitted, the default of #960000 is used; set it explicitly to override. Affects a cell or row based on the ThresholdAffects parameter. |
|
Color [A=255, R=150, G=0, B=0] | |
| Color | Optional | The fatal cell text color to use. If omitted, no change is made. Affects a cell or row based on the ThresholdAffects parameter. |
|
N/A | |
| Color | Optional | The info cell background color to use. If omitted, the default of #00D5D5 is used; set it explicitly to override. Affects a cell or row based on the ThresholdAffects parameter. |
|
Color [A=255, R=0, G=213, B=213] | |
| Color | Optional | The info cell text color to use. If omitted, no change is made. Affects a cell or row based on the ThresholdAffects parameter. |
|
N/A | |
| Color | Optional | The cell color to use when no issue exists. Affects a cell or row based on the ThresholdAffects parameter. |
|
N/A | |
| Color | Optional | The cell text color to use when no issue exists. Affects a cell or row based on the ThresholdAffects parameter. |
|
N/A | |
| Color | Optional | The warning cell background color to use. If omitted, the default of #F0C000 is used; set it explicitly to override. Affects a cell or row based on the ThresholdAffects parameter. |
|
Color [A=255, R=240, G=192, B=0] | |
| Color | Optional | The warning cell text color to use. If omitted, no change is made. Affects a cell or row based on the ThresholdAffects parameter. |
|
N/A | |
| Color | Optional | The colour of the worksheet tab in Excel (XLSX) output. If omitted, the tab keeps its default colour. Has no effect on Word / PDF / HTML output, which have no worksheet tabs. |
|
N/A |
Additional (21)
| Parameter | Type | Presence | Purpose | Options | Default |
| Boolean | Optional | Whether to color table cells if thresholds are breached, rather than color the text. |
|
true | |
| Color | Optional | The critical font background color to use. If omitted, no change is made. |
|
N/A | |
| Color | Optional | The critical font color to use. If omitted, no change is made. |
|
N/A | |
| Color | Optional | The critical table cell background color to use. If omitted, no change is made. |
|
N/A | |
| Color | Optional | The error font background color to use. If omitted, no change is made. |
|
N/A | |
| Color | Optional | The error font color to use. If omitted, no change is made. |
|
N/A | |
| Color | Optional | The error table cell background color to use. If omitted, no change is made. |
|
N/A | |
| Color | Optional | The fatal font background color to use. If omitted, no change is made. |
|
N/A | |
| Color | Optional | The fatal font color to use. If omitted, no change is made. |
|
N/A | |
| Color | Optional | The fatal table cell background color to use. If omitted, no change is made. |
|
N/A | |
| Color | Optional | The font background color to use. |
|
N/A | |
| Color | Optional | The font color to use. |
|
N/A | |
| Color | Optional | The info font background color to use. If omitted, no change is made. |
|
N/A | |
| Color | Optional | The info font color to use. If omitted, no change is made. |
|
N/A | |
| Color | Optional | The info table cell background color to use. If omitted, no change is made. |
|
N/A | |
| Color | Optional | The normal font background color to use. If omitted, no change is made. |
|
N/A | |
| Color | Optional | The normal font color to use. If omitted, no change is made. |
|
N/A | |
| Color | Optional | The normal table cell background color to use. If omitted, no change is made. |
|
N/A | |
| Color | Optional | The warning font background color to use. If omitted, no change is made. |
|
N/A | |
| Color | Optional | The warning font color to use. If omitted, no change is made. |
|
N/A | |
| Color | Optional | The warning table cell background color to use. If omitted, no change is made. |
|
N/A |
Formatting (10)13 additional
| Parameter | Type | Presence | Purpose | Options | Default |
| AutoFitBehavior | Optional | The Word autofit behaviour. If omitted, no change is made. |
|
Content | |
| List<String> | Optional | The column horizontal alignments. If fewer alignments are made than the number of columns, the last given value is used for the remaining columns. If omitted, no change is made. Supported values: Left, Right and Center. Usage: columnHorizontalAlignments=Left;Right;Center;...In Excel output files, columns may be automatically aligned based on their type (e.g. numbers are always right-justified), and all column headers are ALWAYS left-justified so their text is not obscured by filter drop-down arrows in the Excel UI. | N/A | N/A | |
| List<String> | Optional | The column vertical alignments. If fewer alignments are given than the number of columns, the last given value is used for the remaining columns. If omitted, no change is made. Supported values: Top, Centre and Bottom. Usage: columnVerticalAlignments=Top;Centre;Bottom;... Applies to Word, Report Studio and Excel output. | N/A | N/A | |
| Double | Optional | Override the table style's font size. This is achieved by setting the font size for each table cell. In Report Studio and HTML this is in pixels; in a Schedule (Word) it is in points. |
|
N/A | |
| CellFormat | Optional | The cell format to use. Options are: 'AllStrings', 'Auto' or 'NumbersAsStrings'. Auto automatically sets the format for the whole column, or it can be forced to a string with AllStrings. To preserve date / time formatting (with dateTimeFormat) but treat only number columns as strings, use NumbersAsStrings. |
|
Auto | |
| TableHorizontalAlignment | Optional | The horizontal alignment of the table on the page (does not affect Excel output). |
|
Left | |
| Double | Optional | The percentage of the available page that the table should occupy. |
|
N/A | |
| Boolean | Optional | Whether to repeat the header row at the beginning of each page. |
|
true | |
| String | Optional | Use Word's built in Table Styles (such as Grid Table 2 - Accent 1), or make your own in the Report Template. Built-in styles can be used in any document. Note that any custom styles you create, or customisations to the standard styles required that the styles exist in the input template XML (because they are not saved in Word documents by default). This can be achieved by assigning the style to a table, then delete the table and save the document. | N/A | Table Grid | |
| XlsxTableStyle | Optional | The XLSX table style to use in any XLSX output document. |
|
TableStyleMedium13 |
Additional (13)
| Parameter | Type | Presence | Purpose | Options | Default |
| Boolean | Optional | Change the critical font weight (true=strong, false=normal). If omitted, no change is made. |
|
N/A | |
| Double | Optional | Change the critical font size in points. If omitted, no change is made. |
|
N/A | |
| Boolean | Optional | Change the error font weight (true=strong, false=normal). If omitted, no change is made. |
|
N/A | |
| Double | Optional | Change the error font size in points. If omitted, no change is made. |
|
N/A | |
| Boolean | Optional | Change the fatal font weight (true=strong, false=normal). If omitted, no change is made. |
|
N/A | |
| Double | Optional | Change the fatal font size in points. If omitted, no change is made. |
|
N/A | |
| Boolean | Optional | Change the font weight (true=strong, false=normal). If omitted, no change is made. |
|
N/A | |
| Boolean | Optional | Change the info font weight (true=strong, false=normal). If omitted, no change is made. |
|
N/A | |
| Double | Optional | Change the info font size in points. If omitted, no change is made. |
|
N/A | |
| Boolean | Optional | Change the normal font weight (true=strong, false=normal). If omitted, no change is made. |
|
N/A | |
| Double | Optional | Change the normal font size in points. If omitted, no change is made. |
|
N/A | |
| Boolean | Optional | Change the warning font weight (true=strong, false=normal). If omitted, no change is made. |
|
N/A | |
| Double | Optional | Change the warning font size in points. If omitted, no change is made. |
|
N/A |
Conditional Formatting (35)
| Parameter | Type | Presence | Purpose | Options | Default |
| String | Optional | The macro is considered 'critical' if the output is equal to this value. | N/A | N/A | |
| String | Optional | The macro is considered 'critical' if the output is greater than or equal to this value. | N/A | N/A | |
| String | Optional | The macro is considered 'critical' if the output is greater than this value. | N/A | N/A | |
| String | Optional | The macro is considered 'critical' if the expression evaluates to true. Use 'value' as the macro output in the expression. | N/A | N/A | |
| String | Optional | The macro is considered 'critical' if the output is less than or equal to this value. | N/A | N/A | |
| String | Optional | The macro is considered 'critical' if the output is less than this value. | N/A | N/A | |
| String | Optional | The macro is considered 'critical' if the output is not equal to this value. | N/A | N/A | |
| String | Optional | The macro is considered 'error' if the output is equal to this value. | N/A | N/A | |
| String | Optional | The macro is considered 'error' if the output is greater than or equal to this value. | N/A | N/A | |
| String | Optional | The macro is considered 'error' if the output is greater than this value. | N/A | N/A | |
| String | Optional | The macro is considered 'error' if the expression evaluates to true. Use 'value' as the macro output in the expression. | N/A | N/A | |
| String | Optional | The macro is considered 'error' if the output is less than or equal to this value. | N/A | N/A | |
| String | Optional | The macro is considered 'error' if the output is less than this value. | N/A | N/A | |
| String | Optional | The macro is considered 'error' if the output is not equal to this value. | N/A | N/A | |
| String | Optional | The macro is considered 'fatal' if the output is equal to this value. | N/A | N/A | |
| String | Optional | The macro is considered 'fatal' if the output is greater than or equal to this value. | N/A | N/A | |
| String | Optional | The macro is considered 'fatal' if the output is greater than this value. | N/A | N/A | |
| String | Optional | The macro is considered 'fatal' if the expression evaluates to true. Use 'value' as the macro output in the expression. | N/A | N/A | |
| String | Optional | The macro is considered 'fatal' if the output is less than or equal to this value. | N/A | N/A | |
| String | Optional | The macro is considered 'fatal' if the output is less than this value. | N/A | N/A | |
| String | Optional | The macro is considered 'fatal' if the output is not equal to this value. | N/A | N/A | |
| String | Optional | The macro is considered 'info' if the output is equal to this value. | N/A | N/A | |
| String | Optional | The macro is considered 'info' if the output is greater than or equal to this value. | N/A | N/A | |
| String | Optional | The macro is considered 'info' if the output is greater than this value. | N/A | N/A | |
| String | Optional | The macro is considered 'info' if the expression evaluates to true. Use 'value' as the macro output in the expression. | N/A | N/A | |
| String | Optional | The macro is considered 'info' if the output is less than or equal to this value. | N/A | N/A | |
| String | Optional | The macro is considered 'info' if the output is less than this value. | N/A | N/A | |
| String | Optional | The macro is considered 'info' if the output is not equal to this value. | N/A | N/A | |
| String | Optional | The macro is considered 'warning' if the output is equal to this value. | N/A | N/A | |
| String | Optional | The macro is considered 'warning' if the output is greater than or equal to this value. | N/A | N/A | |
| String | Optional | The macro is considered 'warning' if the output is greater than this value. | N/A | N/A | |
| String | Optional | The macro is considered 'warning' if the expression evaluates to true. Use 'value' as the macro output in the expression. | N/A | N/A | |
| String | Optional | The macro is considered 'warning' if the output is less than or equal to this value. | N/A | N/A | |
| String | Optional | The macro is considered 'warning' if the output is less than this value. | N/A | N/A | |
| String | Optional | The macro is considered 'warning' if the output is not equal to this value. | N/A | N/A |
Time & Date (1)
| Parameter | Type | Presence | Purpose | Options | Default |
| String | Optional | The date/time format to use. Use the format specified here: https://docs.microsoft.com/en-us/dotnet/standard/base-types/custom-date-and-time-format-strings. When the format parameter is set to AllStrings, this is ignored unless you use NumbersAsStrings. Note however that this parameter only has an effect if all the values in the column are the same type. | N/A | yyyy-MM-dd |
Filtering & Sorting (4)5 additional
| Parameter | Type | Presence | Purpose | Options | Default |
| String | Optional | The condition on which each row is included. Fields should be referred to based on the column name in curly braces, for example: includeCondition ='{CreatedOn}'>'{StartOfLastMonth}'. | N/A | N/A | |
| String | Optional | If present, sorts alphanumerically by this column. | N/A | N/A | |
| String | Optional | If present, sorts reverse alphanumerically by this column. | N/A | N/A | |
| Int32 | Optional | Only display up to this number of rows. |
|
N/A |
Additional (5)
| Parameter | Type | Presence | Purpose | Options | Default |
| String | Optional | For advanced filtering, use the LogicMonitor API's filtering system. This feature is only supported through professional services. | N/A | N/A | |
| String | Optional | Specify the property that you want to filter on, e.g. system.sysinfo. If filterProperty is set, filterPropertyValue is mandatory. | N/A | N/A | |
| TildaOptionString | Optional | specify the value that you want to filter on, e.g. Microsoft Windows Server 2008 R2 Standard. May be specified as "filterPropertyValue=value" to match all devices where the specified property equals 'value', or "filterPropertyValue~=value" to match all devices where the specified property contains 'value'. Ignored if filterProperty is not set. | N/A | N/A | |
| String | Optional | Only include devices that match this LogicMonitor AppliesTo query. For example, "isCisco()" for Cisco devices. See LogicMonitor documentation for more details. Use backticks to surround the query, instead of double quotes. Note that if you reference a custom property in the query and that property name includes special characters (such as :, /, *, = or spaces) then you will need to use the getPropValue(" |
N/A | N/A | |
| Boolean | Optional | Eliminate duplicates if set to true. |
|
false |
Output (4)8 additional
| Parameter | Type | Presence | Purpose | Options | Default |
| List<String> | Optional | The column names to show. If the columns parameter is not specified, the Macro's default will be used. | N/A | N/A | |
| String | Optional | If present, and the table has no rows, the specified text will be inserted in place of the table. | N/A | N/A | |
| String | Optional | The worksheet to save the result in the output Excel document (if so configured). Excel does not allow blank names, names above 31 characters, and the following characters: :, /, \, ?, *, [, ] | N/A | Table | |
| Boolean | Optional | Whether to output the result in the output Excel document (if so configured). |
|
true |
Additional (8)
| Parameter | Type | Presence | Purpose | Options | Default |
| Char | Optional | The delimiter to use between multiple items in the output. | N/A | ; | |
| String | Optional | The text to display should the macro fail to execute. Note that a poorly-specified macro (e.g. omitting mandatory parameters) will still result in an error message. | N/A | N/A | |
| String | Optional | The name of a variable to create should the macro fail to execute. The variable will be a text variable, and will contain either the failure text (only if the failureText parameter is set), otherwise it will contain the exception / failure message. | N/A | N/A | |
Normal mode |
Boolean | Optional | Any macros that output lists can optionally (in Normal mode) output a jArray instead. |
|
true |
| String | Optional | The variable to store the result as. If the variable name ends 'Json' (any casing) its value is wrapped in json tags. That marks the value as JSON so it can be passed straight into a parameter that expects json content, and the RMScript editor also displays it with JSON highlighting. When several variables are stored at once each one is judged by its own name. | N/A | N/A | |
| String | Optional | The variable to store the result as, while hiding the output. Equivalent to 'storeAs=ThisValue, hidden=true'. | N/A | N/A | |
| Char | Optional | The delimiter used by storeAs to split a TEXT value, when there are multiple stored variables. For example, in this macro, we indicate that the value to be stored should be split by the asterisk when being stored: [String:value=a*b*c*d, storeAs=var1;var2;var3;var4, storeAsVariableDelimiter=*]. If splitting on this delimiter does not produce one value per variable, the '^' character is tried instead; that applies whatever this parameter is set to, and is what allows a single variable to hold a value containing a ';'. Note this delimiter is only used for a TEXT value. A list or a JSON array is instead shared out one element per variable, and a JSON object by its property values in order, so storing jObject('a',1,'b',2) as two variables gives 1 and 2. Any other type cannot be split across several variables at all. | N/A | ; | |
| String | Optional | The name of the STRING variable to store the result as and output (both will use the same format) into the report. Note that if you also use 'storeAsHidden' in the same macro, you should not expect the output to be hidden, as this parameter overrides that. As with 'storeAs', a name ending 'Json' has its value wrapped in json tags. | N/A | N/A |
General (4)20 additional
| Parameter | Type | Presence | Purpose | Options | Default |
| Boolean | Optional | Whether to de-camel-case the header row (i.e. convert 'MyHeaderText' to 'My Header Text'. |
|
false | |
| String | Optional | The table name (e.g. for XLSX output) | N/A | Table | |
| ThresholdAffects | Optional | What the threshold affects. |
|
Cell | |
| String | Optional | The threshold column. | N/A | N/A |
Additional (20)
| Parameter | Type | Presence | Purpose | Options | Default |
| String | Optional | Add a comment to make your document template more readable. The comment is discarded in the output document. | N/A | N/A | |
| String | Optional | The name of the LogicMonitor Connection. | N/A | N/A | |
| DateTimeOffset | Optional | Only include devices that were created before this time (UTC). | N/A | N/A | |
| String | Optional | The name of the DataSource that you want to filter by, i.e. only include devices that have this DataSource. One or more DataSource instances must be present on this device for it to be included, unless an instanceCount parameter is specified (e.g. instanceCountGe=0). Please note that there is a significant performance overhead associated with using this parameter. | N/A | N/A | |
| String | Optional | The DataSource instance alias that you want to filter by i.e. only include devices that have this DataSource instance alias present. When set, dataSourceExists is mandatory. | N/A | N/A | |
| String | Optional | The DataSource instance group that you want to filter by i.e. only include devices that have this DataSource Instance Group name present. When set, dataSourceExists is mandatory. | N/A | N/A | |
| String | Optional | The DataSource instance alias that you want to filter by i.e. only include devices that have this DataSource instance name present. When set, dataSourceExists is mandatory. | N/A | N/A | |
| List<String> | Optional | The Device Group or Device Groups (semi-colon separated). Use "/" or no value to reference the root folder. | N/A | / | |
| Int32 | Optional | Only include the devices where the number of matching instances is equal to the integer value specified. Applies when dataSourceExists is used. | N/A | N/A | |
| Int32 | Optional | Only include the devices where the number of matching instances is greater than or equal to the integer value specified. Applies when dataSourceExists is used. | N/A | N/A | |
| Int32 | Optional | Only include the devices where the number of matching instances is greater than the integer value specified. Applies when dataSourceExists is used. | N/A | N/A | |
| Int32 | Optional | Only include the devices where the number of matching instances is less than or equal to the integer value specified. Applies when dataSourceExists is used. | N/A | N/A | |
| Int32 | Optional | Only include the devices where the number of matching instances is less than the integer value specified. Applies when dataSourceExists is used. | N/A | N/A | |
| Int32 | Optional | Only include the devices where the number of matching instances is not equal to the integer value specified. Applies when dataSourceExists is used. | N/A | N/A | |
| Boolean | Optional | When specified only brings back DeviceGroups where the alerting is/is not enabled |
|
N/A | |
| List<String> | Optional | Return these properties, as a JArray of JObjects carrying exactly the properties named. Separate multiple properties with a semicolon. Use 'x as y' to give the output key a different name from the property, 'x.y' to reach a nested property, and 'all' on its own to return the complete object. The output is always a JArray of JObjects, in both normal and legacy mode. This is a separate parameter from 'property', not another name for it, and the two cannot be used together. |
|
N/A | |
| String | Optional | Return the specified property. May be one of the following or any custom device property:
|
N/A | DisplayName | |
Normal mode |
Boolean | Optional | In Normal Mode and for macros that output JArrays only, whether to convert a JArray of single-property jObjects into a flat JArray of values. |
|
false |
| String | Optional | Only include devices in this status. Supported values: Dead and Normal. | N/A | N/A | |
| DeviceListType | Optional | Whether to include Devices, Services, or both. |
|
Device |
Deprecated (5)4 additional
| Parameter | Type | Preferred Parameter | Purpose | Options | Default |
| List<String> | columnHorizontalAlignments | The column horizontal alignments. If fewer alignments are made than the number of columns, the last given value is used for the remaining columns. If omitted, no change is made. Supported values: Left, Right and Center. Usage: columnHorizontalAlignments=Left;Right;Center;...In Excel output files, columns may be automatically aligned based on their type (e.g. numbers are always right-justified), and all column headers are ALWAYS left-justified so their text is not obscured by filter drop-down arrows in the Excel UI. | N/A | N/A | |
| List<String> | columnHorizontalAlignments | The column horizontal alignments. If fewer alignments are made than the number of columns, the last given value is used for the remaining columns. If omitted, no change is made. Supported values: Left, Right and Center. Usage: columnHorizontalAlignments=Left;Right;Center;...In Excel output files, columns may be automatically aligned based on their type (e.g. numbers are always right-justified), and all column headers are ALWAYS left-justified so their text is not obscured by filter drop-down arrows in the Excel UI. | N/A | N/A | |
| AutoFitBehavior | autoFit | The Word autofit behaviour. If omitted, no change is made. |
|
Content | |
| List<String> | columnHorizontalAlignments | The column horizontal alignments. If fewer alignments are made than the number of columns, the last given value is used for the remaining columns. If omitted, no change is made. Supported values: Left, Right and Center. Usage: columnHorizontalAlignments=Left;Right;Center;...In Excel output files, columns may be automatically aligned based on their type (e.g. numbers are always right-justified), and all column headers are ALWAYS left-justified so their text is not obscured by filter drop-down arrows in the Excel UI. | N/A | N/A | |
| Int32 | take | Only display up to this number of rows. |
|
N/A |
Additional (4)
| Parameter | Type | Preferred Parameter | Purpose | Options | Default |
| List<String> | deviceGroup | The Device Group or Device Groups (semi-colon separated). Use "/" or no value to reference the root folder. | N/A | / | |
| List<String> | deviceGroup | The Device Group or Device Groups (semi-colon separated). Use "/" or no value to reference the root folder. | N/A | / | |
| List<String> | deviceGroup | The Device Group or Device Groups (semi-colon separated). Use "/" or no value to reference the root folder. | N/A | / | |
| Boolean | recurseDeviceGroups | Include devices in all child folders. |
|
true |
Examples (4)
Example 1
[LogicMonitor.DeviceTable: deviceGroup=PDL - Panoramic Data/Datacenter, columns=HostName;Description;Properties, style=Grid Table 5 Dark - Accent 4, autoFit=Window]Example 2
[LogicMonitor.DeviceTable: deviceGroup=PDL - Panoramic Data, columns=HostName;DisplayedAs;Type;Status;AlertsAreAcknowledged;AlertLevel;AlertsAreInSdt]Example 3
Only include devices currently in an error state
[LogicMonitor.DeviceTable: deviceGroup=PDL - Panoramic Data, columns=HostName;DisplayedAs;Type;Status;AlertsAreAcknowledged;AlertLevel;AlertsAreInSdt, includeCondition=`'{AlertLevel}' == 'Error'`]Example 4
Inserts a table of recently-added devices per top-level device group. See also the 'LogicMonitor Recently Added Devices' Report in the Report Template Library
[DateTime:storeAs=StartOfThisMonth, format=yyyy-MM-01, hidden=true]
Devices added after [DateTime:value={StartOfThisMonth},addMonths=-1,storeAs=StartOfLastMonth]
[Settings: LogicMonitor.DeviceTable.style=Grid Table 4 - Accent 2, LogicMonitor.DeviceTable.autoFit=Window, LogicMonitor.DeviceTable.columns=HostName;CreatedOn, LogicMonitor.DeviceTable.orderByDescending=CreatedOn]
[LogicMonitor.DeviceGroupList: storeAs=TopLevelGroups, deviceGroup=/, hidden=true]
[ForEach: values={TopLevelGroups}, storeAs=CurrentGroup]
Device Group: [String: value={CurrentGroup}]
[LogicMonitor.DeviceTable: deviceGroup={CurrentGroup}, recurseDeviceGroups=true, includeCondition = '{CreatedOn}'>'{StartOfLastMonth}', emptyTableText=No recently-added devices.]
[ForEachEnd:]