Class ServiceAgreementAlertType
Represents a link to alert type that needs to be generated, if specific service agreement violation is detected.
Implements
Inherited Members
Namespace: Nevatech.Vsb.Repository.Entities
Assembly: Nevatech.Vsb.Repository.dll
Syntax
public sealed class ServiceAgreementAlertType : DomainObjectBase, IValidator, IExtensibleDataObject, IEquatable<ServiceAgreementAlertType>
Constructors
ServiceAgreementAlertType()
Declaration
public ServiceAgreementAlertType()
Properties
AlertSubtype
Gets or sets the identifier of alert subtype (can be empty, but not Null). The subtype is used to distinguish alerts of the same type. For example, it can be the name of service agreement (if alert type contains multiple agreements), or metric name (if alerts from different metrics need to be distinguished).
Declaration
public string AlertSubtype { get; set; }
Property Value
Type | Description |
---|---|
System.String |
AlertTypeId
Gets or sets the identifier of alert type that needs to be generated.
Declaration
public int AlertTypeId { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
ObjectType
Gets object type identifier.
Declaration
public override EntityType ObjectType { get; }
Property Value
Type | Description |
---|---|
EntityType |
Overrides
ServiceAgreementId
Gets or sets the identifier of service agreement.
Declaration
public int ServiceAgreementId { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
ServiceAgreementMetricId
Gets or sets the optional identifier of metric within service agreement, if only that metric needs to be monitored. If Null, all metrics are monitored.
Declaration
public int? ServiceAgreementMetricId { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int32> |
Methods
Equals(ServiceAgreementAlertType)
Determines whether the specified object is equal to the current object.
Declaration
public bool Equals(ServiceAgreementAlertType other)
Parameters
Type | Name | Description |
---|---|---|
ServiceAgreementAlertType | 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
Validate()
Evaluates the state of this object.
Declaration
public override bool Validate()
Returns
Type | Description |
---|---|
System.Boolean | True if state is valid; otherwise, false. |