[AlertMagic.MetricsGraph:]NEW
Outputs a graph of aggregated AlertMagic Metrics.
Macro Compatibility
The macro can be used in all input document types and in Report Studio.
Usage
Available aggregations (granularity) are hourly, daily, or monthly. The default date range is the last calendar month. The custom metrics shown in AlertMagic (Dimension 1, Dimension 2, and Dimension 3) are not yet supported. Note that for the metricTypes parameter, there are no spaces in the names, but in the palette, you should use the names that appear in the legends (spaces between the words).
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 | |||
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 | |||
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 | If 'true', the reporting period will be the last calendar month and neither startDate nor endDate parameters may be 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 | |||
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 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 | |||
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 | |||
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 | |||
GranularityType | Optional | The time granularity. |
|
Daily | |||
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 | |||
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 | |||
Int32 | Optional | The InnerPlotHeightPercent |
|
75 | |||
Int32 | Optional | The InnerPlotWidthPercent |
|
85 | |||
Int32 | Optional | The InnerPlotXPosition |
|
10 | |||
Int32 | Optional | The InnerPlotYPosition |
|
10 | |||
Int32 | Optional | The AlertMagic Integration ID. Leave empty to obtain metrics for all Integrations. | N/A | N/A | |||
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 | ||
List<AlertMagicMetricType> | Optional | The metric types to add to the chart. |
|
All | |||
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 | |||
Int32 | Optional | The rotation in degrees. Only valid when enable3d is set to true. |
|
30 | |||
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 image title for visually-impaired users. | N/A | N/A | |||
Int32 | Optional | The title heading level. Don't specify if no heading is required. | N/A | N/A | |||
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 | |||
Int32 | Optional | The AlertMagic Version ID. Leave empty to obtain metrics for all Versions. | N/A | N/A | |||
VerticalPositionAlignment | Optional | The Vertical position alignment. |
|
Top | |||
VerticalPositionRelativeTo | Optional | What the vertical position is relative to. |
|
Inline | |||
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 | |||
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 output the result in the output Excel document (if so configured). |
|
true | |||
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 (2)
Example 1:
This example inserts a daily-aggregated graph for all the available metric types:
[AlertMagic.MetricsGraph: startDate=2025-05-01 12:00:00, endDate=2025-06-01 12:00:00, granularity=Daily, title=Daily Metrics]
Example 2:
This example inserts an hourly-aggregated graph with two metrics type selected and a custom palette:
[AlertMagic.MetricsGraph: startDate=2025-05-01 12:00:00, endDate=2025-06-01 12:00:00, metricTypes=IncidentsCreated;IncidentsUpdated, granularity=Hourly, palette=Incidents Created^limegreen;Malformed Notifications^red, title=Hourly Metrics]