Class AlertRequest
Provides parameters for GetAlerts(AlertRequest) method.
Implements
Inherited Members
Namespace: Nevatech.Vsb.Repository.Entities
Assembly: Nevatech.Vsb.Repository.dll
Syntax
public sealed class AlertRequest : IValidator
Constructors
AlertRequest()
Declaration
public AlertRequest()
Properties
AlertGroupId
Gets or sets the identifier of alert group to filter alerts. If it is not set then all alerts are included.
Declaration
public int? AlertGroupId { get; set; }
Property Value
Type | Description |
---|---|
Nullable<Int32> |
AlertSourceTypeId
Gets or sets the identifier of alert source type to filter alerts. If it is not set then all alert source types are included.
Declaration
public int? AlertSourceTypeId { get; set; }
Property Value
Type | Description |
---|---|
Nullable<Int32> |
AlertTypeId
Gets or sets the identifier of alert type to filter alerts. If it is not set then all alert types are included.
Declaration
public int? AlertTypeId { get; set; }
Property Value
Type | Description |
---|---|
Nullable<Int32> |
Description
Gets or sets the alert description (wildcards can be used). If not set then all alerts are included.
Declaration
public string Description { get; set; }
Property Value
Type | Description |
---|---|
String |
EndTimeLocal
Gets or sets the date and time when requested time period ends in the reporting time zone. If not set, current time is used.
Declaration
public DateTime? EndTimeLocal { get; set; }
Property Value
Type | Description |
---|---|
Nullable<DateTime> |
ErrorMessage
Gets validation error message.
Declaration
public string ErrorMessage { get; }
Property Value
Type | Description |
---|---|
String |
IsObserved
Gets or sets flag indicating that alert has been observed by an administrator. If not set then all alerts are included.
Declaration
public bool? IsObserved { get; set; }
Property Value
Type | Description |
---|---|
Nullable<Boolean> |
SortField
Gets or sets the field that result will be sorted by.
Declaration
public AlertSortField SortField { get; set; }
Property Value
Type | Description |
---|---|
AlertSortField |
SortOrder
Gets or sets the result sort order.
Declaration
public SortOrder SortOrder { get; set; }
Property Value
Type | Description |
---|---|
SortOrder |
StartTimeLocal
Gets or sets the date and time when requested time period starts in the reporting time zone.
Declaration
public DateTime StartTimeLocal { get; set; }
Property Value
Type | Description |
---|---|
DateTime |
Methods
Validate()
Validates object properties returns the result.
Declaration
public bool Validate()
Returns
Type | Description |
---|---|
Boolean | True, if object state is valid. False, if one or more properties have invalid values. |