Method IncludeElement
- Namespace
- Skyline.DataMiner.Automation
- Assembly
- SLManagedAutomation.dll
IncludeElement(IActionableElement, params MailReportParameter[])
Adds the specified parameters of the specified dummy element to this report.
public void IncludeElement(IActionableElement dummy, params MailReportParameter[] @params)
Parameters
dummyIActionableElementThe element from which the specified parameters should be included.
paramsMailReportParameter[]The parameters to be included in the mail report.
Examples
For an example showing how to pass single-value parameters as well as table cells to a report, see below:
Element dummy1 = engine.FindElement("My Element");
MailReportOptions reportOptions = engine.PrepareMailReport("Report Name");
// Add single-value parameter
reportOptions.IncludeElement(dummy1, new MailReportParameter(dummy1, "Total Processor Load");
// Add table cell
reportOptions.IncludeElement(dummy1, new MailReportParameter(dummy1, "Bandwidth", "Eth0");
note
In the example above, the index argument has to contain the display key. If necessary, use the FindDisplayKey method on the element or the dummy to retrieve that key. See FindDisplayKey(int, string).
Remarks
Allows including table cells.
IncludeElement(IActionableElement, params string[])
Adds the specified parameters of the specified dummy element to this report.
public void IncludeElement(IActionableElement dummy, params string[] @params)
Parameters
dummyIActionableElementThe element from which the specified parameters should be included.
paramsstring[]The names of the standalone parameters to be included in the mail report.
IncludeElement(int, int, params MailReportParameter[])
Adds the specified parameters of the specified element to this report.
public void IncludeElement(int dmaid, int eid, params MailReportParameter[] @params)
Parameters
dmaidintThe DataMiner Agent ID of the element from which the specified parameters should be included.
eidintThe element ID of the element from which the specified parameters should be included.
paramsMailReportParameter[]The parameters to be included in the mail report.