[LogicMonitor.Graph:]
Retrieve data relating to a devices, services etc. and display in chart form in a report.
Purpose
Retrieve data relating to a devices, services etc. and display in chart form in a report. Many of the parameters used by the LogicMonitor.Graph macro are also used by other macros, such as LogicMonitor.SummaryValue.
This macro should specify one of:
- device, host, hostId, hosts, group, groups, deviceId, devices, deviceGroup, deviceGroups or serviceName.
- graphName, graphId, overviewGraphName, overviewGraphId
- dataSourceName or dataSource
Macro Compatibility
The macro can be used in all input document types and in Report Studio.
Parameter | Type | Deprecation Message | Preferred Parameter | Presence | Purpose | Options | Default |
---|---|---|---|---|---|---|---|
List<String> | Deprecated | chartTypes | The type(s) of chart. You can specify more than one (separated by a semi-colon). If you specify fewer than the number of series, the last value will continue to be used for the remainder of the series. Permitted values: Point, FastPoint, Line, Spline, StepLine, FastLine, Bar, StackedBar, StackedBar100, Column, StackedColumn, StackedColumn100, Area, SplineArea, StackedArea, StackedArea100, Pie, Doughnut, Radar, Polar, BoxPlot, Funnel, Pyramid. For Pie and Doughnut chart types, the first column provides the slice name, the second column the slice size and all other columns are ignored. | N/A | N/A | ||
List<String> | Use instead of:
| Conditional | The type(s) of chart. You can specify more than one (separated by a semi-colon). If you specify fewer than the number of series, the last value will continue to be used for the remainder of the series. Permitted values: Point, FastPoint, Line, Spline, StepLine, FastLine, Bar, StackedBar, StackedBar100, Column, StackedColumn, StackedColumn100, Area, SplineArea, StackedArea, StackedArea100, Pie, Doughnut, Radar, Polar, BoxPlot, Funnel, Pyramid. For Pie and Doughnut chart types, the first column provides the slice name, the second column the slice size and all other columns are ignored. | N/A | N/A | ||
String | Conditional | When the 'overridePaletteType' parameter is set to 'Custom', you must specify a semi-colon separated list of HTML-style hex codes (or HTML colour names such as red), e.g. #FF0000;#00FF00;#0000FF (with or without the hash) to use as a custom override palette, which will apply to each line series plotted. This parameter is ignored unless you use 'overridePaletteType=Custom'. | N/A | N/A | |||
String | Deprecated | dataSourceName | The DataSource name. | N/A | N/A | ||
Int32 | Conditional | The DataSource instance group id. If set, the dataSource parameter must also be set. | N/A | N/A | |||
String | Conditional | The DataSource instance group name. If set, the dataSource parameter must also be set. | N/A | N/A | |||
Int32 | Conditional | The DataSource instance ID. If set, the dataSource parameter must also be set. | N/A | N/A | |||
String | Conditional | The DataSource instance name. If set, the dataSource parameter must also be set. | N/A | N/A | |||
String | Use instead of:
| Conditional | The DataSource name. | N/A | N/A | ||
Int32 | Conditional | The graph ID. If set, do not set the 'graphName' parameter. You can use -1 to use raw data when there is no graph in LogicMonitor but you must choose the data point name as it appears on the 'Raw Data' tab in LogicMonitor, rather than the name in the DataPoint definition. | N/A | N/A | |||
String | Conditional | The graph name. If set, do not set the 'graphId' parameter. | N/A | N/A | |||
Double | Conditional | The image height in centimetres (cm). If this is set, so should 'imageWidthCm' be. For Word output, this is equivalent to setting an absolute height in cm without locking the aspect ratio. | N/A | N/A | |||
Double | Conditional | The image width in centimetres. If this is set, so should 'imageHeightCm' be. For Word output, this is equivalent to setting an absolute with in cm without locking the aspect ratio. | N/A | N/A | |||
AdvancedAggregation | Conditional | The aggregation to use for inter-line aggregation if aggregateOverDevices or aggregateOverDataSourceInstances are true. |
|
All | |||
Int32 | Conditional | The overview graph ID. | N/A | N/A | |||
String | Conditional | The overview graph name. | N/A | N/A | |||
List<String> | Deprecated | websiteCheckPointName | The website checkpoint name or names (required when type is set to WebsiteCheckPoint). | N/A | N/A | ||
List<String> | Deprecated | websiteCheckPointName | The website checkpoint name or names (required when type is set to WebsiteCheckPoint). | N/A | N/A | ||
List<String> | Deprecated | websiteName | The website name or names (required when type is set to WebsiteOverview or WebsiteCheckPoint). | N/A | N/A | ||
List<String> | Deprecated | websiteName | The website name or names (required when type is set to WebsiteOverview or WebsiteCheckPoint). | N/A | N/A | ||
List<String> | Use instead of:
| Conditional | The website checkpoint name or names (required when type is set to WebsiteCheckPoint). | N/A | N/A | ||
List<String> | Deprecated | websiteCheckPointName | The website checkpoint name or names (required when type is set to WebsiteCheckPoint). | N/A | N/A | ||
List<String> | Use instead of:
| Conditional | The website name or names (required when type is set to WebsiteOverview or WebsiteCheckPoint). | N/A | N/A | ||
List<String> | Deprecated | websiteName | The website name or names (required when type is set to WebsiteOverview or WebsiteCheckPoint). | N/A | N/A | ||
Int32 | Conditional | The Widget id for dashboard graphs. The type parameter should be set to DashboardWidget. Finding the Widget id requires a few steps: you will need to use your LogicMonitor portal UI, enter developer mode in the browser, and find all 'li' elements (which are the Widgets) where the 'data_component_unique_name' attribute is like xxx_widget_xxx, where xxx are numbers. For example, 99_widget_123 is a Widget id of 123. | N/A | N/A | |||
String | Deprecated | xAxisTitle | Set the X Axis Label to the provided text. Required for all chartTypes, except 'Pie' and 'Doughnut'. | N/A | N/A | ||
String | Use instead of:
| Conditional | Set the X Axis Label to the provided text. Required for all chartTypes, except 'Pie' and 'Doughnut'. | N/A | N/A | ||
String | Deprecated | yAxisTitle | Set the Y Axis Label to the provided text. Required for all chartTypes, except 'Pie' and 'Doughnut'. | N/A | N/A | ||
String | Use instead of:
| Conditional | Set the Y Axis Label to the provided text. Required for all chartTypes, except 'Pie' and 'Doughnut'. | N/A | N/A | ||
Boolean | Optional | Whether to aggregate over DataSource instances. If specified, the aggregation parameter must also be specified. |
|
false | |||
Boolean | Optional | Whether to aggregate over devices. If specified, the aggregation parameter must also be specified. |
|
false | |||
Boolean | Optional | If 'true', the reporting period will be the last calendar month and neither startDate nor endDate parameters may be used. |
|
false | |||
Boolean | Optional | Use short (auto-scaled) labels for boundary legend items. When set, the 'boundaryLabelFormat' parameter is ignored. |
|
true | |||
Boolean | Optional | Whether the short (auto-scaled) boundary legend values represent 'data' (B, KB, MB, GB, and TB) and so 1024 is used as a multiplier, rather than 1000. When not representing data, the labels used are: K, M, B, and T. Has no effect unless the 'autoScaleBoundaryLabels' parameter is used. |
|
false | |||
Boolean | Use instead of:
| Optional | Whether to use short (auto-scaled) labels in Y-axes (e.g. 10K instead of 10000). Only has an effect when the 'yAxisLabelFormat' parameter is NOT set. |
|
true | ||
Boolean | Optional | Whether the short (auto-scaled) labels in Y-axes represent 'data'. In that case these labels are used: B, KB, MB, GB, and TB. When not representing data, the labels used are: K (thousands), M (millions), B (billions), and T (trillions). Only has an effect when 'autoScaleYAxisLabels' is true (the default for that parameter), otherwise ignored. |
|
false | |||
Boolean | Optional | Whether to auto-title, based on the LogicMonitor graph title. |
|
false | |||
Int32 | Deprecated | titleHeadingLevel | If auto-titling the graph, the heading level to use. |
|
N/A | ||
GraphAutoYAxisFromType | Deprecated | autoYAxisFromType | When set to ReportMagic, it ignores the 'yAxisMinimum' and 'yAxisMaximum' parameters, and those in the LogicMonitor graph, but instead focuses (effectively zooms in) more closely on the data's actual min/max, which can more clearly illustrate small variations in the data. |
|
LogicMonitor | ||
GraphAutoYAxisFromType | Use instead of:
| Optional | When set to ReportMagic, it ignores the 'yAxisMinimum' and 'yAxisMaximum' parameters, and those in the LogicMonitor graph, but instead focuses (effectively zooms in) more closely on the data's actual min/max, which can more clearly illustrate small variations in the data. |
|
LogicMonitor | ||
String | Optional | The number format for the min/max/mean values of LogicMonitor boundaries when used in the graph's legend titles. ONLY applies when 'showBoundaries' is used and applicable, otherwise ignored. | N/A | F2 | |||
Color | Optional | The chart area background color |
|
N/A | |||
Int32 | Optional | The ChartAreaHeightPercent |
|
100 | |||
Int32 | Optional | The ChartAreaWidthPercent |
|
80 | |||
Int32 | Optional | The ChartAreaXPosition |
|
0 | |||
Int32 | Optional | The ChartAreaYPosition |
|
0 | |||
Color | Optional | The chart background color |
|
N/A | |||
Color | Optional | The chart border line color |
|
Color [Black] | |||
ChartDashStyle | Optional | The chart border line dash style |
|
Solid | |||
Int32 | Optional | The chart border line width | N/A | 0 | |||
Int32 | Optional | The chart height in pixels |
|
400 | |||
ChartImageFormat | Optional | The chart image format |
|
EmfPlus | |||
Int32 | Optional | The chart width in pixels |
|
2560 | |||
Double | Optional | The number of pixels to clip from the bottom of the image. In PowerPoint, you must manually set the 'chartImageFormat' parameter to either Png or Jpeg, e.g. chartImageFormat=Png | N/A | N/A | |||
Double | Optional | The number of pixels to clip from the left of the image. In PowerPoint, you must manually set the 'chartImageFormat' parameter to either Png or Jpeg, e.g. chartImageFormat=Png | N/A | N/A | |||
Double | Optional | The number of pixels to clip from the right of the image. In PowerPoint, you must manually set the 'chartImageFormat' parameter to either Png or Jpeg, e.g. chartImageFormat=Png | N/A | N/A | |||
Double | Optional | The number of pixels to clip from the top of the image. In PowerPoint, you must manually set the 'chartImageFormat' parameter to either Png or Jpeg, e.g. chartImageFormat=Png | N/A | N/A | |||
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 Connection. | N/A | N/A | |||
Int32 | Optional | The DataSource ID. | N/A | N/A | |||
String | Optional | The description for visually-impaired users. This text also displays when the user hovers the mouse over the image in Word or a PDF viewer. | N/A | N/A | |||
List<String> | Deprecated | devices | The Device Display name or names. | N/A | N/A | ||
List<String> | Deprecated | deviceGroups | The Device Group or Groups. Use "/" or no value in the deviceGroup parameter to reference the root folder. | N/A | N/A | ||
List<String> | Use instead of:
| Optional | The Device Group or Groups. Use "/" or no value in the deviceGroup parameter to reference the root folder. | N/A | N/A | ||
List<Int32> | Deprecated | deviceIds | The Device ID or IDs. | N/A | N/A | ||
List<Int32> | Use instead of:
| Optional | The Device ID or IDs. | N/A | N/A | ||
List<String> | Use instead of:
| Optional | The Device Display name or names. | N/A | N/A | ||
Int32 | Optional | Optionally use to specify the doughnut radius when specifying 'chartType=Doughnut'. |
|
60 | |||
Boolean | Optional | Whether to more closely show the y-axis variance on charts. Use the 'dynamicYAxisVariancePercent' parameter to control the variance percentage. When set, the 'yAxisMinimum' and 'yAxisMaximum' parameters are ignored. When this parameter is set, the 'yAxisIsLogarithmic' parameter is ignored.Note: when the minimum data value is 0, the y-axis minimum is NOT adjusted. |
|
false | |||
Double | Optional | The variance percentage to use in conjunction with the 'dynamicYAxis' parameter to adjust the y-axis scale. For example, if the maximum y-axis data value was 10 and this parameter was set to 5, then the y-axis maximum is set to 10 + (5% of 10), which is 10.5. When this parameter and 'dynamicYAxis' is set, the 'yAxisMinimum' and 'yAxisMaximum' parameters are ignored.When this parameter and 'dynamicYAxis' is set, the 'yAxisIsLogarithmic' parameter is ignored. NOTE: final y-axis minimum and maximum values will be rounded to the nearest integer (whole number) |
|
1.5 | |||
String | Optional | The text for the new tab in the Xlsx document if the table is empty. | N/A | N/A | |||
Boolean | Optional | Whether to enable 3D. |
|
false | |||
DateTimeOffset | Optional | The end date in the format YYYY-MM-DD. | N/A | Midnight on the first day of this month | |||
Boolean | Optional | Whether to ensure the colours of all series in the chart are unique. Note that unique colours are still selected if no palette is provided for any series. |
|
false | |||
Boolean | Optional | Should NCalc expression evaluation throw error on Overflow |
|
true | |||
List<String> | Optional | The datapoints to exclude. | N/A | N/A | |||
Boolean | Optional | Whether to exclude periods of SDT from the macro results. Only works for Devices (not Websites, etc.). For the most accurate results, ensure that you have LogicMonitor permissions for ALL the Device Groups that the Devices are members of. When this is not the case, those Device Groups will simply be skipped. |
|
false | |||
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 | |||
List<FixedLine> | Optional | The semicolon-delimited list of lines of fixed y-value to add to the graph. Each should be in the format "name^value^color", e.g. fixedLines=Lower95th^10^Red;Mean^50^Blue;Upper95th^90^Red | N/A | N/A | |||
Flows.FlowDirection | Optional | The traffic flow direction. Used only with type=NetflowBandwidth. |
|
All | |||
List<String> | Optional | The traffic flow interfaces e.g. 1;2;3 for interfaces 1, 2 and 3. Used only with type=NetflowBandwidth. | N/A | N/A | |||
Boolean | Optional | Whether to include forecast data. |
|
false | |||
String | Optional | The time to forecast. |
|
7days | |||
String | Optional | The amount of data to use to inform the forecast. |
|
1month | |||
GraphType | Deprecated | type | The graph type. Defaults to Device. Options are: Device, WebsiteOverview, NetflowBandwidth, WebsiteCheckPoint and DashboardWidget. |
|
Device | ||
List<String> | Deprecated | deviceGroups | The Device Group or Groups. Use "/" or no value in the deviceGroup parameter to reference the root folder. | N/A | N/A | ||
List<String> | Deprecated | deviceGroups | The Device Group or Groups. Use "/" or no value in the deviceGroup parameter to reference the root folder. | N/A | N/A | ||
PowerPointImageHorizontalAlign | Optional | For PowerPoint output only, the ability to horizontally align images produced by macros, with vertical lines. No other image parameters apply (clipping, etc.). |
|
N/A | |||
HorizontalPositionAlignment | Optional | The horizontal position alignment. |
|
Left | |||
HorizontalPositionRelativeTo | Optional | What the horizontal position is relative to. |
|
Inline | |||
List<String> | Deprecated | devices | The Device Display name or names. | N/A | N/A | ||
List<Int32> | Deprecated | deviceIds | The Device ID or IDs. | N/A | N/A | ||
List<String> | Deprecated | devices | The Device Display name or names. | 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 inclination in degrees. Only valid when enable3d is set to true. |
|
50 | |||
List<String> | Optional | The datapoints to include. | N/A | N/A | |||
Int32 | Optional | The InnerPlotHeightPercent |
|
75 | |||
Int32 | Optional | The InnerPlotWidthPercent |
|
85 | |||
Int32 | Optional | The InnerPlotXPosition |
|
10 | |||
Int32 | Optional | The InnerPlotYPosition |
|
10 | |||
Color | Optional | The label background color |
|
N/A | |||
Color | Optional | The label color |
|
N/A | |||
Double | Optional | Set the chart label font size. |
|
16 | |||
List<String> | Optional | Optionally use to specify labels to add to the chart, formatted as: text^X^Y^alignment^font^fontSize^fontStyle^fontColor. Supported fonts are: 'Arial, Calibri, Comic Sans MS, and Ms Sans Serif'. Supported fontStyles are 'Regular, Bold, Italic, Underline, Strikeout'. Supported alignments are TopLeft, TopCenter, TopRight, MiddleLeft, MiddleCenter, MiddleRight, BottomLeft, BottomCenter, BottomRight. Font colours can be named fonts (such as Red) or hex-based colours (ARGB or RGB-formatted such as #FF0000 or #FFFF0000 for red). Note that alpha component is optional. | N/A | N/A | |||
String | Optional | Optionally use to specify the label text. Options include #PERCENT{P0} (e.g. for Pie/doughnut charts), #VALX and #VALY. The {P-number} specifies the number of decimal places to display. You can combine these and other symbols (e.g. '#VALX\n(#PERCENT %)' ). | N/A | N/A | |||
Color | Optional | The legend background color |
|
N/A | |||
Color | Optional | The legend border color |
|
N/A | |||
Double | Optional | Set the chart legend font size (default autofit). |
|
20 | |||
Int32 | Optional | The LegendHeightPercent |
|
100 | |||
LegendStyle | Optional | The legend style |
|
Column | |||
String | Optional | Optionally use to specify the label legend text. For other options, see the labelText parameter. | N/A | N/A | |||
Int32 | Optional | The number of characters that can be placed in a legend item before text wrapping occurs. Wrapping uses a 'word-break' method, so if the legend names do NOT contain spaces, no wrapping will occur. |
|
25 | |||
Int32 | Optional | The LegendWidthPercent |
|
20 | |||
Int32 | Optional | The LegendXPosition |
|
80 | |||
Int32 | Optional | The LegendYPosition |
|
0 | |||
Int32 | Optional | The line width |
|
2 | |||
ListColor | Use instead of:
| Optional | Set the border color(s) of the marker (for example, on line charts). If there are fewer values provided than there are series in your graph, the last one is repeated for the remaining series. | N/A | N/A | ||
ListColor | Deprecated | markerBorderColor | Set the border color(s) of the marker (for example, on line charts). If there are fewer values provided than there are series in your graph, the last one is repeated for the remaining series. | N/A | N/A | ||
List<Int32> | Use instead of:
| Optional | Set the border width(s) of the marker (for example, on line charts). If there are fewer values provided than there are series in your graph, the last one is repeated for the remaining series. | N/A | N/A | ||
List<Int32> | Deprecated | markerBorderWidth | Set the border width(s) of the marker (for example, on line charts). If there are fewer values provided than there are series in your graph, the last one is repeated for the remaining series. | N/A | N/A | ||
ListColor | Use instead of:
| Optional | Set the color(s) of the marker (for example, on line charts). If there are fewer values provided than there are series in your graph, the last one is repeated for the remaining series. | N/A | N/A | ||
ListColor | Deprecated | markerColor | Set the color(s) of the marker (for example, on line charts). If there are fewer values provided than there are series in your graph, the last one is repeated for the remaining series. | N/A | N/A | ||
List<Int32> | Use instead of:
| Optional | Set the size(s) of the marker (for example, on line charts). If there are fewer values provided than there are series in your graph, the last one is repeated for the remaining series. | N/A | N/A | ||
List<Int32> | Deprecated | markerSize | Set the size(s) of the marker (for example, on line charts). If there are fewer values provided than there are series in your graph, the last one is repeated for the remaining series. | N/A | N/A | ||
ListMarkerStyle | Use instead of:
| Optional | Set the marker style(s) (for example, on line charts) If there are fewer values provided than there are series in your graph, the last one is repeated for the remaining series. | N/A | N/A | ||
ListMarkerStyle | Deprecated | markerStyle | Set the marker style(s) (for example, on line charts) If there are fewer values provided than there are series in your graph, the last one is repeated for the remaining series. | N/A | N/A | ||
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 the legacy mode (default for Schedules), the variable created is a string and formatted. In the normal mode (default for Report Studio), the output variable is stored as a strongly-typed object, e.g. an Int32 or a List |
|
Legacy | |||
Int32 | Optional | If set, sets 'endDate' to the 'start' plus the specified number of months. | N/A | N/A | |||
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 | |||
Double | Optional | The image opacity (0 is transparent, 100 is solid). |
|
100 | |||
Boolean | Optional | For charts where all the series are areas (not stacked), order the series according to the mean y-axis values (largest first, descending). This is useful for charts where, depending on the data, 'larger' series would be rendered in front of smaller ones, thereby obscuring them in the chart. |
|
false | |||
OverridePaletteType | Optional | Force series colours to use various alternative palettes. Overrides all other settings such as 'EnsureColorsUnique'. When there are more series than the count of colours in each palette, the colours chosen will start again from the beginning of the palette. This parameter is useful for series where there are no colours set (or set to 'Auto' in LogicMonitor Widget graphs, for example). |
|
Default | |||
Double | Optional | The height of the page to take up with the graph. Always overrides 'imageHeightCm' |
|
N/A | |||
Double | Optional | The width of the page to take up with the graph. Always overrides 'imageWidthCm' |
|
N/A | |||
List<String> | Optional | A list of html-encoded (hex codes) colours for each series separated by ^ for the series name and colour, and semicolons for each series (see examples below). If not specified, a default Microsoft palette will be used. The 'OverridePaletteType' parameter will, if set, override this parameter. | N/A | Yes^#0d0;No^#d00;True^#0d0;False^#d00;OK^#0d0;Error^#d00;Unknown^#ddd | |||
Int32 | Optional | The perspective in percent. Only valid when enable3d is set to true. |
|
0 | |||
Color | Optional | Optionally use to specify the color of the collected ('other') pie slice. |
|
Color [LightGray] | |||
String | Optional | Optionally use to specify the label for the collected ('other') pie slice. | N/A | Other | |||
Double | Optional | Optionally use to specify the percentage threshold for the collected ('other') pie slice. |
|
5 | |||
PieLabelStyle | Optional | Optionally use to specify the doughnut radius when specifying 'chartType=Doughnut' or 'chartType=Pie'. |
|
Inside | |||
Color | Optional | Optionally use to specify the pie or doughnut line color when using 'pieLabelStyle=Outside'. |
|
Color [LightGray] | |||
Int32 | Optional | Optionally use to specify the pie or doughnut start angle in degrees from the top. |
|
0 | |||
Int32 | Optional | The point depth as a percentage. Only valid when enable3d is set to true. |
|
100 | |||
Int32 | Optional | The point gap depth as a percentage. Only valid when enable3d is set to true. |
|
100 | |||
Double | Optional | The point width (gap between bar or column chart items) | N/A | N/A | |||
Boolean | Optional | Whether to recurse Device Groups. Specify false to exclude child Device Groups. |
|
true | |||
Int32 | Optional | The rotation in degrees. Only valid when enable3d is set to true. |
|
30 | |||
Boolean | Optional | Whether to include the LogicMonitor boundaries in the legend titles. ONLY applies when 'type' is 'DashboardWidget'. |
|
false | |||
DateTimeOffset | Optional | The start date in the format YYYY-MM-DD. | N/A | Midnight on the first day of last month | |||
String | Optional | The hidden (does not show in document output) variable in which to save the output graph as base64-encoded text. This is useful because the [Variable.Image:] macro can then insert it into any document. The image is generated only once but can then be manipulated repeatedly with a variety of image-related parameters. Note: when this variable is set, the image format will be forced to PNG, i.e. the equivalent of: chartImageFormat=Png. The image is saved unclipped (i.e. without any clip parameters applied). | N/A | N/A | |||
String | Optional | The optional chart title, to appear in text above the chart graphic. | N/A | N/A | |||
Int32 | Use instead of:
| Optional | If auto-titling the graph, the heading level to use. |
|
N/A | ||
GraphType | Use instead of:
| Optional | The graph type. Defaults to Device. Options are: Device, WebsiteOverview, NetflowBandwidth, WebsiteCheckPoint and DashboardWidget. |
|
Device | ||
Boolean | Optional | Whether to use the cache (where supported). |
|
false | |||
Boolean | Optional | Whether to use ChartMagic (experimental) |
|
false | |||
Boolean | Deprecated | autoScaleYAxisLabels | Whether to use short (auto-scaled) labels in Y-axes (e.g. 10K instead of 10000). Only has an effect when the 'yAxisLabelFormat' parameter is NOT set. |
|
true | ||
PowerPointImageVerticalAlign | Optional | For PowerPoint output only, the ability to vertically align images produced by macros, with horizontal lines. No other image parameters apply (clipping, etc.). |
|
N/A | |||
VerticalPositionAlignment | Optional | The Vertical position alignment. |
|
Top | |||
VerticalPositionRelativeTo | Optional | What the vertical position is relative to. |
|
Inline | |||
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 | |||
List<Int32> | Deprecated | websiteIds | The website ID or IDs. | N/A | N/A | ||
List<Int32> | Use instead of:
| Optional | The website ID or IDs. | 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 | |||
Wrapping | Optional | Image wrapping. |
|
Inline | |||
Boolean | Optional | Whether to write output to a spreadsheet. |
|
N/A | |||
Color | Optional | Optionally use to specify the x axis font color. |
|
Color [Black] | |||
Double | Optional | Set the chart x-axis font size (default autofit). |
|
20 | |||
Double | Optional | Set the chart x-axis height as a percent of the chart area. By default, an automatic choice is made. |
|
N/A | |||
Double | Optional | The x-axis interval. Only works for whole numbers such as 1, 2, etc. (unpredictable results otherwise). | N/A | N/A | |||
IntervalAutoMode | Optional | Optionally use to specify the x axis's interval auto mode. |
|
FixedCount | |||
DateTimeIntervalType | Optional | Optionally use to specify the x axis's interval type. The 'xAxisInterval' parameter is ignored when this parameter is 'Auto' (the default). It is recommended that if you know the type of the date-oriented x-axis (such as months) then you set this parameter accordingly e.g. xAxisIntervalType=Months, and xAxisInterval=1 (to display each month on the x-axis). |
|
Auto | |||
Boolean | Optional | Whether the x axis's labels are automatically fitted. |
|
true | |||
Boolean | Optional | Overrides the default x-axis auto margin (which is true by default EXCEPT when there's an empty graph with 2 data points, e.g. a start and an end date). The auto margin extends the x-axis by the equivalent of 1 data point either side of the data, typically leaving a small gap between both interior sides of the axis and the data. Note that in the case of an EMPTY graph (no y-values, but where there is a date / data range), this can lead to an additional month each side of the axis, which may not be what you want to achieve. ReportMagic in this case AUTOMATICALLY disables the margins to produce the 'expected' x-axis range, hence why you may want to force this to true in case you do want the margins. |
|
N/A | |||
Int32 | Optional | Optionally use to specify the x axis's label angle. |
|
0 | |||
LabelAutoFitStyles | Optional | Optionally use to specify the X Axis label autofit style. |
|
DecreaseFont | |||
String | Optional | The X Axis label format. See https://docs.microsoft.com/en-us/dotnet/standard/base-types/custom-numeric-format-strings for more details. | N/A | yyyy-MM-dd | |||
Color | Optional | The x axis line color. |
|
N/A | |||
ChartDashStyle | Optional | The x axis line dash style |
|
Solid | |||
Int32 | Optional | The x axis line width. | N/A | N/A | |||
Boolean | Optional | Whether the X-axis major grid is enabled |
|
true | |||
Double | Optional | A number - (if specified, you must also specify xAxisMajorGridIntervalType) |
|
N/A | |||
DateTimeIntervalType | Optional | The major x-axis grid interval type. |
|
N/A | |||
Boolean | Optional | Whether the X-axis Minor grid is enabled |
|
true | |||
Double | Optional | A number - (if specified, you must also specify xAxisMinorGridIntervalType) |
|
N/A | |||
DateTimeIntervalType | Optional | The Minor x-axis grid interval type. |
|
N/A | |||
XlsxTableStyle | Optional | The XLSX table style to use in any XLSX output document. |
|
TableStyleMedium13 | |||
ChartValueType | Optional | The x value type. You can set this to 'String' which will disable the 'Auto' mode for the 'xAxisIntervalType' parameter. |
|
DateTime | |||
Color | Optional | Optionally use to specify the y axis font color. |
|
Color [Black] | |||
Double | Optional | Set the chart y-axis font size (default autofit). |
|
20 | |||
Double | Optional | The y-axis interval. Only works for whole numbers such as 1, 2, etc. (unpredictable results otherwise). | N/A | N/A | |||
IntervalAutoMode | Optional | Optionally use to specify the y axis's interval auto mode. |
|
FixedCount | |||
DateTimeIntervalType | Optional | Optionally use to specify the y axis's interval type. |
|
Auto | |||
Boolean | Optional | Whether the y axis's labels are automatically fitted. |
|
true | |||
Boolean | Optional | Optionally use to specify that the Y Axis is logarithmic. Note that any y values of 0 or below will cause an error. You may need to manually adjust the yAxisMinimum parameter. When the 'dynamicYAxis' parameter is set, this parameter is ignored and the axis is forced NOT to be logarithmic. |
|
false | |||
Int32 | Optional | Optionally use to specify the y axis's label angle. |
|
0 | |||
LabelAutoFitStyles | Optional | Optionally use to specify the Y Axis label autofit style. |
|
DecreaseFont | |||
String | Optional | The Y Axis label format. See https://docs.microsoft.com/en-us/dotnet/standard/base-types/custom-numeric-format-strings for more details. When this parameter is set, it overrides the 'autoScaleYAxisLabels' parameter (i.e. that one has no effect). | N/A | N/A | |||
Color | Optional | The y axis line color. |
|
N/A | |||
ChartDashStyle | Optional | The y axis line dash style |
|
Solid | |||
Int32 | Optional | The y axis line width. | N/A | N/A | |||
Boolean | Optional | Whether the Y-axis major grid is enabled |
|
true | |||
Double | Optional | A number - (if specified, you must also specify yAxisMajorGridIntervalType) |
|
N/A | |||
DateTimeIntervalType | Optional | The major y-axis grid interval type. |
|
N/A | |||
Double | Optional | Sets the Y Axis maximum (default derived from graph data). When both yAxisMinimum and yAxisMaximum are set, if either are not whole numbers, this MAY cause chart data to be rendered incorrectly. | N/A | N/A | |||
Double | Optional | Sets the Y Axis minimum (default derived from graph data). This value MAY be automatically adjusted when 'yAxisIsLogarithmic=true' and the data contains any 0 values, to avoid chart errors (logarithmic charts may not contain y-axis values of 0 or below). When both yAxisMinimum and yAxisMaximum are set, if either are not whole numbers, this MAY cause chart data to be rendered incorrectly. | N/A | N/A | |||
Boolean | Optional | Whether the Y-axis Minor grid is enabled |
|
true | |||
Double | Optional | A number - (if specified, you must also specify yAxisMinorGridIntervalType) |
|
N/A | |||
DateTimeIntervalType | Optional | The Minor y-axis grid interval type. |
|
N/A | |||
Double | Optional | Set the chart y-axis width as a percent of the chart area. By default, an automatic choice is made. |
|
N/A |
Examples (12)
Example 1:
Shows the CPU Usage graph, defined in the WinCPU DataSource:
[LogicMonitor.Graph: device=dev.panoramicdata.com, graphName=CPU Usage, dataSourceInstanceName=WinCPU]
Example 2:
Shows the CPU Usage graph, and uses a custom palette and y-axis label format:
[LogicMonitor.Graph: device=dev.panoramicdata.com, graphName=CPU Usage, dataSourceInstanceName=WinCPU, palette=Busy^#f84589, yAxisLabelFormat="00.00"]
Example 3:
[LogicMonitor.Graph: device=dev.panoramicdata.com, graphName=CPU Usage, dataSourceInstanceName=WinCPU, fixedLines=10%^10^LimeGreen;90%^90^LightCoral]
Example 4:
Shows the Queue Length graph, defined in the WinCPU DataSource:
[LogicMonitor.Graph: device=dev.panoramicdata.com, graphName=Queue Length, dataSourceInstanceName=WinCPU, includeDataPoint=Queue Length]
Example 5:
Illustrates use of a custom y-axis label:
[LogicMonitor.Graph: device=dev.panoramicdata.com, graphName=CPU Usage, dataSourceInstanceName=WinCPU, yAxisLabel=Custom Y Axis Label]
Example 6:
Shows the Maximum CPU across 2 devices: dev.panoramicdata.com and test.panoramicdata.com:
[LogicMonitor.Graph: devices=dev.panoramicdata.com;test.panoramicdata.com, graphName=CPU Usage, dataSourceName=WinCPU, aggregation=Max]
Example 7:
[LogicMonitor.Graph: device=dev.panoramicdata.com, dataSourceName=WinIIS-, overviewGraphName=Requests]
Example 8:
Generate a graph from the 'Raw Data' tab (NOT based on a defined graph) by using -1 as the graph ID and the data point name as shown in the tab (not the DataPoint definition):
[LogicMonitor.Graph: device=pdl-app-rm-test-06, graphId=-1, dataSourceName=WinLogicalDrivePerformance-, dataSourceInstanceName=WinLogicalDrivePerformance-C:, palette=PercentDiskWriteTime^#00CC33, chartTypes=Area, includeDataPoint=PercentDiskWriteTime]
Example 9:
Forecast graph example #1:
[LogicMonitor.Graph: device=dev.panoramicdata.com, forecast=true, forecastTrainingTime=1month, forecastTime=1month, graphName=CPU Usage, dataSourceInstanceName=WinCPU, includeDataPoint=CPUBusyPercent]
Example 10:
Forecast graph example #2:
[LogicMonitor.Graph: device=dev.panoramicdata.com, forecast=true, forecastTrainingTime=3months, forecastTime=1month, graphName=WinCPU, dataSourceInstanceName=WinCoreCount-CPU1, includeDataPoint=NUMBEROFCORES]
Example 11:
Forecast graph example #3:
[LogicMonitor.Graph: device=dev.panoramicdata.com, forecast=true, forecastTrainingTime=1year, forecastTime=7days, graphName=DNS Server Activity, dataSourceInstanceName=Windows DNS Server-default, includeDataPoint=TotalResponseSent]
Example 12:
Netflow example:
[LogicMonitor.Graph: device=PDL-FW-01, type=NetflowBandwidth]