AlertRuleProcessResultErrorResult Method

Creates an instance of AlertRuleProcessResult to report a failure during the processing of an alert rule.

Definition

Namespace: MobileTrack.Common.Models.Alerts
Assembly: MobileTrack.Common (in MobileTrack.Common.dll) Version: 0.7+45c8d9adb5970d727cceec44a5ed61aea0016e50
public static AlertRuleProcessResult ErrorResult(
	string errorMessage,
	List<AlertAction>? actions = null,
	string? message = null,
	string? endpoint = null,
	int? httpStatusCode = null
)

Parameters

errorMessage  String
A message describing the failure.
actions  ListAlertAction  (Optional)
The actions executed during the processing stage up until the point of failure.
message  String  (Optional)
A message that was delivered to a remote endpoint.
endpoint  String  (Optional)
The URI or hostname where the message was delivered.
httpStatusCode  NullableInt32  (Optional)
The status code returned by the endpoint, if a HTTP request was performed.

Return Value

AlertRuleProcessResult
A fully initialized instance of AlertRuleProcessResult indicating that an alert rule failed during processing.

See Also