Class AlertRequest
Provides parameters for GetAlerts(AlertRequest) method.
Implements
Inherited Members
Namespace: Nevatech.Vsb.Repository.Entities
Assembly: Nevatech.Vsb.Repository.dll
Syntax
[DataContract(Namespace = "http://schemas.nevatech.com/sentinet/2011/02")]
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
[DataMember(EmitDefaultValue = false)]
public int? AlertGroupId { get; set; }
Property Value
| Type | Description |
|---|---|
| int? |
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
[DataMember(EmitDefaultValue = false)]
public int? AlertSourceTypeId { get; set; }
Property Value
| Type | Description |
|---|---|
| int? |
AlertTypeId
Gets or sets the identifier of alert type to filter alerts. If it is not set then all alert types are included.
Declaration
[DataMember(EmitDefaultValue = false)]
public int? AlertTypeId { get; set; }
Property Value
| Type | Description |
|---|---|
| int? |
Description
Gets or sets the alert description (wildcards can be used). If not set then all alerts are included.
Declaration
[DataMember(EmitDefaultValue = false)]
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
[DataMember(Name = "EndTime", EmitDefaultValue = false)]
public DateTime? EndTimeLocal { get; set; }
Property Value
| Type | Description |
|---|---|
| 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
[DataMember(EmitDefaultValue = false)]
public bool? IsObserved { get; set; }
Property Value
| Type | Description |
|---|---|
| bool? |
SortField
Gets or sets the field that result will be sorted by.
Declaration
[DataMember]
public AlertSortField SortField { get; set; }
Property Value
| Type | Description |
|---|---|
| AlertSortField |
SortOrder
Gets or sets the result sort order.
Declaration
[DataMember]
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
[DataMember(Name = "StartTime")]
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 |
|---|---|
| bool | True, if object state is valid. False, if one or more properties have invalid values. |