Method GetAlarmsForElement
- Namespace
- Skyline.DataMiner.DcpChatIntegrationHelper.Common
- Assembly
- Skyline.DataMiner.DcpChatIntegrationHelper.dll
GetAlarmsForElement(int, int, string, Guid, Guid, string)
Creates a button that request the DataMiner bot to show the alarms of the given element
public static AdaptiveSubmitAction GetAlarmsForElement(int elementId, int dataminerId, string elementName, Guid organizationId, Guid dmsId, string title = "Alarms")
Parameters
elementIdintThe ID of the element
dataminerIdintThe ID of the DataMiner Agent
elementNamestringThe name of the element
organizationIdGuidThe ID of the organization on dataminer.services where the DMS with
dmsIdis part ofdmsIdGuidThe ID of the DMS on dataminer.services where the element with
elementIdis part oftitlestringThe button text
Returns
- AdaptiveSubmitAction
The button that can be added in AdaptiveCards.AdaptiveActionSet.Actions of the AdaptiveCards.AdaptiveActionSet (AdaptiveCards.AdaptiveElement)