Skip to main content

Definition

Assembly: Microsoft.OData.Mcp.Core.dll Namespace: Microsoft.OData.Mcp.Core.Configuration Inheritance: System.Object

Syntax

Microsoft.OData.Mcp.Core.Configuration.AlertRule

Summary

Alert rule definition.

Constructors

.ctor

Syntax

public AlertRule()

.ctor Inherited

Inherited from object

Syntax

public Object()

Properties

Metric

Gets or sets the metric to monitor.

Syntax

public string Metric { get; set; }

Property Value

Type: string

Name

Gets or sets the rule name.

Syntax

public string Name { get; set; }

Property Value

Type: string

Operator

Gets or sets the comparison operator.

Syntax

public string Operator { get; set; }

Property Value

Type: string

Threshold

Gets or sets the threshold value.

Syntax

public double Threshold { get; set; }

Property Value

Type: double

Methods

Clone

Creates a copy of this rule.

Syntax

public Microsoft.OData.Mcp.Core.Configuration.AlertRule Clone()

Returns

Type: Microsoft.OData.Mcp.Core.Configuration.AlertRule A new instance with the same settings.

Equals Inherited Virtual

Inherited from object

Syntax

public virtual bool Equals(object obj)

Parameters

NameTypeDescription
objobject?-

Returns

Type: bool

Equals Inherited

Inherited from object

Syntax

public static bool Equals(object objA, object objB)

Parameters

NameTypeDescription
objAobject?-
objBobject?-

Returns

Type: bool

GetHashCode Inherited Virtual

Inherited from object

Syntax

public virtual int GetHashCode()

Returns

Type: int

GetType Inherited

Inherited from object

Syntax

public System.Type GetType()

Returns

Type: System.Type

MemberwiseClone Inherited

Inherited from object

Syntax

protected internal object MemberwiseClone()

Returns

Type: object

ReferenceEquals Inherited

Inherited from object

Syntax

public static bool ReferenceEquals(object objA, object objB)

Parameters

NameTypeDescription
objAobject?-
objBobject?-

Returns

Type: bool

ToString Inherited Virtual

Inherited from object

Syntax

public virtual string ToString()

Returns

Type: string?