Struct ServerTimingMetric
Server timing performance metric.
Inherited Members
      System.ValueType.Equals(System.Object)
    
    
      System.ValueType.GetHashCode()
    
    
      System.Object.Equals(System.Object, System.Object)
    
    
      System.Object.GetType()
    
    
      System.Object.ReferenceEquals(System.Object, System.Object)
    
  Namespace: Lib.ServerTiming.Http.Headers
Assembly: Lib.ServerTiming.Abstractions.dll
Syntax
public struct ServerTimingMetric
  Constructors
ServerTimingMetric(String)
Initializes a new ServerTimingMetric.
Declaration
public ServerTimingMetric(string name)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.String | name | The metric name.  | 
      
ServerTimingMetric(String, Decimal)
Initializes a new ServerTimingMetric.
Declaration
public ServerTimingMetric(string name, decimal value)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.String | name | The metric name.  | 
      
| System.Decimal | value | The metric value.  | 
      
ServerTimingMetric(String, Decimal, String)
Initializes a new ServerTimingMetric.
Declaration
public ServerTimingMetric(string name, decimal value, string description)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.String | name | The metric name.  | 
      
| System.Decimal | value | The metric value.  | 
      
| System.String | description | The metric description.  | 
      
ServerTimingMetric(String, String)
Initializes a new ServerTimingMetric.
Declaration
public ServerTimingMetric(string name, string description)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.String | name | The metric name.  | 
      
| System.String | description | The metric description.  | 
      
Properties
Description
Gets the metric description.
Declaration
public readonly string Description { get; }
  Property Value
| Type | Description | 
|---|---|
| System.String | 
Name
Gets the metric name.
Declaration
public readonly string Name { get; }
  Property Value
| Type | Description | 
|---|---|
| System.String | 
Value
Gets the metric value.
Declaration
public readonly decimal? Value { get; }
  Property Value
| Type | Description | 
|---|---|
| System.Nullable<System.Decimal> | 
Methods
ToString()
Gets the string representation of metric.
Declaration
public override string ToString()
  Returns
| Type | Description | 
|---|---|
| System.String | The string representation of metric.  | 
      
Overrides
System.ValueType.ToString()