AlertAction Class

Represents an action taken in response to an alert rule.

Definition

Namespace: MobileTrack.Common.Models.Alerts
Assembly: MobileTrack.Common (in MobileTrack.Common.dll) Version: 0.7+45c8d9adb5970d727cceec44a5ed61aea0016e50
public sealed class AlertAction
Inheritance
Object    AlertAction

Constructors

AlertActionInitializes a new instance of the AlertAction class

Properties

ActionType Represents an action taken in response to an alert rule. e.g., "Email", "Webhook", "ServiceBus"
ErrorMessage An optional error message if the action failed.
ExecutedAt The DateTime when the action was executed.
Target The target of the action, such as an email address or endpoint URL.
WasSuccessful Indicates whether the action was successful.

Methods

CreateFailedAction Creates a new instance of AlertAction that represents a failed action during alert rule processing.
CreateSuccessfulAction Creates a new instance of AlertAction that represents a successful action during alert rule processing.

See Also