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
elementId
intThe ID of the element
dataminerId
intThe ID of the DataMiner Agent
elementName
stringThe name of the element
organizationId
GuidThe ID of the organization on dataminer.services where the DMS with
dmsId
is part ofdmsId
GuidThe ID of the DMS on dataminer.services where the element with
elementId
is part oftitle
stringThe button text
Returns
- AdaptiveSubmitAction
The button that can be added in AdaptiveCards.AdaptiveActionSet.Actions of the AdaptiveCards.AdaptiveActionSet (AdaptiveCards.AdaptiveElement)