Class ServiceAgreementMetric
Represents a rule for collecting service performance metric accumulated over the specified time interval and limited with minimum and maximum values.
Implements
Inherited Members
Namespace: Nevatech.Vsb.Repository.Entities
Assembly: Nevatech.Vsb.Repository.dll
Syntax
public class ServiceAgreementMetric : DomainObjectBase, IValidator, IExtensibleDataObject, IEquatable<ServiceAgreementMetric>
Remarks
Service metric class defines a monitored performance metric with its acceptable limits. If observed metric goes outside of the specified boundaries, service agreement is considered to be violated. Metric is minitored over fixed time interval. This interval can be defined in seconds, minutes, hours, etc as defined in TimeUnit enumeration.
Constructors
ServiceAgreementMetric()
Initializes an empty instance.
Declaration
public ServiceAgreementMetric()
Properties
IntervalUnit
Gets or sets the units in which time interval is measured.
Declaration
public TimeUnit IntervalUnit { get; set; }
Property Value
Type | Description |
---|---|
TimeUnit |
IntervalValue
Gets or sets the time interval used for accumulating and aggregating service metric.
Declaration
public int IntervalValue { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
MetricMaximumValue
Gets or sets the metric's maximum value that satisfies the service agreement. If property is not set then metric's value is not limited.
Declaration
public decimal? MetricMaximumValue { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Decimal> |
MetricMinimumValue
Gets or sets the metric's minimum value that satisfies the service agreement.
Declaration
public decimal MetricMinimumValue { get; set; }
Property Value
Type | Description |
---|---|
System.Decimal |
MetricType
Gets or sets the type of the monitored service metric.
Declaration
public ServiceMetricType MetricType { get; set; }
Property Value
Type | Description |
---|---|
ServiceMetricType |
ObjectType
Gets object type identifier.
Declaration
public override EntityType ObjectType { get; }
Property Value
Type | Description |
---|---|
EntityType |
Overrides
ServiceAgreementId
Gets or sets service agreement identifier that metric belong to.
Declaration
public int ServiceAgreementId { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
Equals(ServiceAgreementMetric)
Determines whether the specified domain object is equal to the current object.
Declaration
public bool Equals(ServiceAgreementMetric other)
Parameters
Type | Name | Description |
---|---|---|
ServiceAgreementMetric | 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 domain 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. |