Skip to main content

Definition

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

Syntax

Summary

Custom metric definition.

Constructors

.ctor

Syntax

.ctor Inherited

Inherited from object

Syntax

Properties

Description

Gets or sets the metric description.

Syntax

Property Value

Type: string

Name

Gets or sets the metric name.

Syntax

Property Value

Type: string

Tags

Gets or sets the metric tags.

Syntax

Property Value

Type: System.Collections.Generic.Dictionary<string, string>

Type

Gets or sets the metric type.

Syntax

Property Value

Type: Microsoft.OData.Mcp.Core.Configuration.MetricType

Unit

Gets or sets the metric unit.

Syntax

Property Value

Type: string?

Methods

Clone

Creates a copy of this definition.

Syntax

Returns

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

Equals Inherited Virtual

Inherited from object

Syntax

Parameters

Returns

Type: bool

Equals Inherited

Inherited from object

Syntax

Parameters

Returns

Type: bool

GetHashCode Inherited Virtual

Inherited from object

Syntax

Returns

Type: int

GetType Inherited

Inherited from object

Syntax

Returns

Type: System.Type

MemberwiseClone Inherited

Inherited from object

Syntax

Returns

Type: object

ReferenceEquals Inherited

Inherited from object

Syntax

Parameters

Returns

Type: bool

ToString Inherited Virtual

Inherited from object

Syntax

Returns

Type: string?

Validate

Validates the metric definition.

Syntax

Returns

Type: System.Collections.Generic.IEnumerable<string> Validation errors.