Class AlertType
Represents a definition of specific alert type coming from an alert source.
Inherited Members
Namespace: Nevatech.Vsb.Repository.Entities
Assembly: Nevatech.Vsb.Repository.dll
Syntax
public class AlertType : DomainObjectBase, IValidator, IExtensibleDataObject, IEquatable<AlertType>
Examples
- Violation of service agreements A or B.
- Expiration of X.509 certificates stored in the system in 2 weeks with alerts generating every 7 days until certificate is replaced.
- Exceeding the number of transactions per minute through the service A or B over 100 with alerts generating every hour until stopped.
Constructors
AlertType()
Declaration
public AlertType()
Properties
ActiveHandlersCount
Gets the total number of enabled handlers which are assigned either to the alert type or one of the groups this alert type is a member of.
Declaration
public int ActiveHandlersCount { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
AlertSourceTypeId
Gets or sets the identifier of the subsystem that is going to generate alerts of this type.
Declaration
public int AlertSourceTypeId { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Configuration
Gets or sets the custom XML configuration used by alert source (generator).
Declaration
public string Configuration { get; set; }
Property Value
Type | Description |
---|---|
System.String |
FrequencyTimeInterval
Gets or sets the time interval length used to define maximum alert frequency. If events that trigger alert are happening more frequently, they will be ignored. In other words, FrequencyTimeInterval defines the minimum time interval in FrequencyTimeUnit units between two subsequent alerts of the same type and subtype.
Declaration
public int FrequencyTimeInterval { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
FrequencyTimeUnit
Gets or sets the time interval units used to define maximum alert frequency. If events that trigger alert are happening more frequently, they will be ignored. In other words, FrequencyTimeInterval defines the minimum time interval in FrequencyTimeUnit units between two subsequent alerts of the same type and subtype.
Declaration
public TimeUnit FrequencyTimeUnit { get; set; }
Property Value
Type | Description |
---|---|
TimeUnit |
IsEnabled
Gets or sets flag indicating that alerts of this type can be generated.
Declaration
public bool IsEnabled { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Name
Gets or sets the alert type friendly name.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
System.String |
ObjectType
Gets object type identifier.
Declaration
public override EntityType ObjectType { get; }
Property Value
Type | Description |
---|---|
EntityType |
Overrides
Methods
Equals(AlertType)
Determines whether the specified object is equal to the current object.
Declaration
public bool Equals(AlertType other)
Parameters
Type | Name | Description |
---|---|---|
AlertType | other | The object to compare with the current object. |
Returns
Type | Description |
---|---|
System.Boolean | True, if objects are equal. False, if objects are not equal. |
Equals(Object)
Determines whether the specified object is equal to the current object.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | The object to compare with the current object. |
Returns
Type | Description |
---|---|
System.Boolean | True, if objects are equal. False, if objects are not equal. |
Overrides
GetHashCode()
Returns the hash code for this instance.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | Hash code of the current instance. |
Overrides
ToString()
Returns a string that represents the current object.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | A string that represents the current object. |
Overrides
Validate()
Evaluates the state of this object.
Declaration
public override bool Validate()
Returns
Type | Description |
---|---|
System.Boolean | True if state is valid; otherwise, false. |